{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

6
votes
1answer
774 views

How to make a pgfplots stacked xbar plot with bar-“explicit meta” labels computed from input table data

I am making a pgfplots stacked xbar plot where each bar has a distinct label, in addition to a numeric bar length. Each pair of bars also has a common label. I would like to mark each bar with its ...
8
votes
1answer
491 views

Label automatically positioned so that it doesn't overlap anything

I produce automatically generated LaTeX-files with nodes and links. Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
5
votes
1answer
333 views

Shrinking text in a node, such that the minimum width and minimum height are the actual width and height of the node

I want to shrink the text in a node such that the minimum height and width are the actual width and height of the node. I found this Shrinking text to the width of a node within a tikzpicture, but I ...
3
votes
2answers
643 views

How to align rows in Tikz nodes & tabular environment

In the attached image, you can see the text is not aligning properly. At the end it started to align as required. Sorry I can not reduce the MWE any more. since the preamble in big so I will put ...
5
votes
1answer
396 views

Is it possible to refer to node label and reuse it for labeling other nodes in tikz?

I would like to "reuse" some nodes' labels, as in example below \documentclass[a4paper,12pt,oneside,titlepage]{report} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ label ...
7
votes
2answers
433 views

How to put environment text inside node?

Consider a simple environment in the documentclass as \newenvironment{abstract}{ \node (tbl) { }; } The content of \begin{abstract} Content \end{abstract} will goes ...
2
votes
1answer
1k views

tikz, tikz circuits, relative coordinates

I am trying to draw a dimensioned line, <---- 2 cm ---- > in the x, and y directions on a circuit diagram. Using absolute coordinates, there is no problem. However, the display is faulty using ...
3
votes
1answer
407 views

Name tikz circuit symbol node

Consider the following minimal example in with TikZ circuit library \documentclass{article} \usepackage{tikz} \usetikzlibrary{circuits.ee.IEC} \begin{document} \begin{tikzpicture} [circuit ee ...
14
votes
3answers
12k views

How to increase the horizontal distance between nodes?

I've got this Tikz picture and I'd like to increase the horizontal distance between the nodes while keeping the vertical distance unchanged. I know how to do it by placing the nodes manually using ...
4
votes
1answer
380 views

How to modify just some nodes' styles in chemfig

In the following molecular drawing, I want to only circle the rightmost OH of the first molecule and the leftmost H of the second, to show that they are the ones that are involved in the formation of ...
2
votes
2answers
671 views

TikZ – How to create nodes

Based on one of the example posted How to create new table environment, I modified to my needs, \documentclass{article} \makeatletter \usepackage[labelformat=empty]{caption} \usepackage{tikz} ...
3
votes
1answer
344 views

newcommand with argument produces unwanted extra space within tikzpicture

I am creating some pictures I want to use within nodes. When I use a \newcommand with an argument, extra space is added and I can't get rid of it. \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
362 views

Ref a picture within a node

I would like to know if we can reference a (tikz)picture within a node from another picture. In this way, I could create a PDF with multiple pictures which give details of each node from my first ...
7
votes
1answer
3k views

Change node distance for particular nodes

How do you change the node distance to the left for a \node[state] (q4) [below left of=q3] {$homing$}; Ok, it's a little bit on the left, but I want it to move it more to the left. How ...
17
votes
3answers
8k views

How to set exact radius for a node?

I have a bunch of nodes and would like to size them so that their areas represent some numbers I have (so that if I have two nodes with corresponding values 1 and 2, then the second node's area should ...
5
votes
1answer
2k views

Tikz right-angle edges between nodes

In the example below I'd like to have angled edges which just go vertically and horizontally. My aim is to get the edges like in this image (the rounded edges are not a must) : Here is my minimal ...
4
votes
1answer
517 views

Creating definition of new shapes in PGF/TikZ

Can somebody help me out with declaring these shapes for nodes? : Need them as model for creation another shapes for symbols. Picked up those what I'm not able to define.Sorry there will be no MWE, ...
6
votes
4answers
2k views

TikZ Node with multiple shapes

My use case is drawing a ticked box in line with normal text like this: "Hello ☒ World." (unicode example, your mileage may vary). One solution I managed to come up with is the following rather ...
4
votes
3answers
1k views

Tikz,PGFplots: drawing in node's cs placed on plot

I'm trying to place some arrows which should be placed alongside the graphs. I place nodes on the graph using node[pos=0.2,above] (point1) {} Then I want to draw in that coordinate system \draw ...
6
votes
1answer
495 views

Nodes won't position as they should in pgfplots

When I use the example of the pgfplots manual it looks different from what is shown in the manual: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
136 views

Draw inside nodes to get BPMN gateway shapes

This question is a follow up to How to draw inside a TikZ node, using node style? I am trying to get the AND and XOR gateway from BPMN as seen here ...
3
votes
1answer
497 views

Making use of entire page in TikZ

I am using the TikZ package to create stacked timelines. See example below. Whenever I make some small modification to the timelines, I have to spend lots of time adjusting all the coordinates. If ...
2
votes
1answer
208 views

can the to-path in pgf/tikz circuits be used to name a node

I am trying to define a few components for my circuits library to use with the circuit.ee library, and I have a couple of questions: Does the to-path create a node on its path or just a complex path ...
8
votes
1answer
1k views

Cloud with lines as filling in TikZ

I am trying to draw specific portions of a Petri Net with TikZ. For parts of the subnet where the structure does not matter to me I'd like to use a cloud node filled with parallel lines (inspired by ...
5
votes
1answer
1k views

Define node at relative coordinates of \draw plot

I am not able to fix that simple plot. I think I missed something, but I can't point out what ! Could you tell me why (a) is not at midway of the red line ? \documentclass{article} ...
10
votes
3answers
999 views

Drawing a proper shadow for overlapping objects

I draw images that are composed of several overlapping nodes. If I add a drop shadow to each node, the shadow of the second node is drawn over the first node, as seen in the picture below (which ...
11
votes
1answer
3k views

TikZ Styles that set Nodepart Styles

In the following, I'm using user-defined macros to set the type style for the nodeparts for class nodes (\texttt{\textbf{#1}}), interfaces (\texttt{\textit{#1}}). Using the \tikzset command I also ...
12
votes
1answer
2k views

Bending arrows in Tikz

In Tikz, I would like to bend an arrow like the one between $H_2O$ and $O_2$ in this figure: I'm able to have a bended line between $H_2O$ and $O_2$, but it's not touching the photophosphorylation ...
1
vote
1answer
1k views

Why does 'every node' not work inside a scope environment?

I just tried the following and was suprised it didn't work: \begin{tikzpicture} ... some commands \begin{scope}[very thick, every node=./style={circle, fill=white, minimum size=1.2mm, inner ...
5
votes
2answers
739 views

Edit TikZ Chains to add labels and maintain the option to add individual styles

I find a code that redefines the way one defines a chain (\chainin), and allows one to include labels in the chains. However, this code disables the style options (by and with keyword). However, I ...
10
votes
3answers
2k views

Put a node behind another in a TikZ diagram

I want to place a node, that is kind of a note, behind another node. However, I need to put the reference node before the note, so I can place the note in a relative position to the reference node. ...
7
votes
2answers
2k views

pgf(plots) node shadow/opaque pin

Is it possible to place a shadow/fill/opaque setting on text of a node pin? I know I can do that with the actual node, but I am using \node in pgfplots to mark some stuff on graphs, and it would be ...
4
votes
1answer
529 views

TikZ: Rectangle spanning a submatrix, as a node

I specify the corners of a rectangle, spanning a certain submatrix of a matrix, and want this rectangle to be a node. The minimal example is: \documentclass{standalone} \usepackage{tikz,pgf} ...
3
votes
1answer
756 views

How to draw arrow and loop with rounded heads instead of arrow shapes?

Can any one help me with this. I want to draw an arrow and a loop with rounded nodes as in the image? I am waiting for your expertise.
6
votes
1answer
3k views

Package pgf Error: No shape named X is known

I can't get this document to compile: \documentclass{article} \usepackage{tikz} \usetikzlibrary{snakes,arrows,shapes} \begin{document} \begin{tikzpicture}[>=latex',line join=bevel,] ...
4
votes
1answer
3k views

Using [midway] to label a curved path at its centre

I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to ...
23
votes
4answers
4k views

How to place a node in the middle of an arc?

I think it is a simple question, but I didn't find the answer yet. The code I'm using is the following: \draw[->](1,0) arc(0:-30:1) node[midway]{$30$}; But in this way the node is placed at the ...
15
votes
2answers
548 views

How to center a typewriter (ttfamily) '+'

I would like to draw a circular TikZ node with + in its center, but font=\ttfamily moves it up. Why? How to solve it? \documentclass[border=3mm]{standalone} \usepackage{tikz} \begin{document} ...
28
votes
1answer
369 views

How can I know if a node is already defined?

I think I've seen this question before, but I can't find it. The problem is simple; before I assign a name to a node I would like to know if the name is already used. I think when a node is created ...
4
votes
1answer
1k views

pgfplots: nodes near coords only for one plot

Does anyone know how to set up pgfplots to print nodes only for one and not for all plots? For example, in 1 I would like to see the nodes only for the test-plot and not for the trend-plot. You will ...
17
votes
3answers
5k views

TikZ - multi-color double circle node

How do I draw a node with a double circle shape where one circle has a different color than the other circle? A single \node[whatever] {content} would be nice!
7
votes
1answer
2k views

Center nodes near coords in a stacked ybar plot

I'm trying to center the node values, at the middle of each bar, in a stacked plot. However I can only put those nodes in the top of each bar. Is it possible to move those down? To the center of each ...
8
votes
1answer
960 views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} ...
4
votes
2answers
432 views

Redraw a kernel scheme diagram

I'm trying to redraw a kernel scheme diagram for a university lecture note. This is how far I got: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
10
votes
1answer
1k views

TikZ: connecting nodeparts

I'm new to TikZ. Last couple of hours in fact. I was wondering if there was a way of connecting nodeparts from different nodes. Here's an example \documentclass{article} \usepackage{tikz} ...
13
votes
1answer
957 views

TikZ style attribute for adding default node text?

Is there a TikZ style attribute for adding default text to a node? For instance, I want to be able to do something like the following: \begin{tikzpicture}[% stuff/.style={% draw, text=Bla ...
9
votes
1answer
224 views

tikzpicture has a node whose text is a tree: unevenly formatting

I want to typeset a picture similar to the following one, using tikz. For that purpose I have written the following latex document \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{chains} ...
6
votes
1answer
744 views

Customizing the splitting line when using nodes with multiple text parts in TikZ?

I'm wondering, is it possible to customize the splitting line when defining a node which has multiple text parts? For instance, instead of a solid line, I would like it to be dotted or dashed. For ...
17
votes
1answer
3k views

Creating node shapes

I am currently learning how to use TikZ/PGF to make some figures for a project report, and so I have a question: Is there is a practical way of making a particular object into a node? The object ...
6
votes
1answer
773 views

Consistent Pgfplot Labels Positions with/without Gnuplot

I like that I can place a node at the end of plot and the node appears relative to the last point on the graph. When the domain is specified in increasing order \DomainMin:\DomainMax, the label gets ...