{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

1
vote
1answer
247 views

Using Tikz Fit to draw a node covering a Tikz chains

A chain of nodes is drawn using tikz chains. I would like to draw a rectangle node covering the chain nodes (or, multiple rectangle nodes covering subsets of them). I am using tikz fit. ...
2
votes
3answers
164 views

Adding nodes to specific positions and without circles around them(but only labels)

Based on a previously asked question by me I already have the following code: \documentclass [11pt,a4paper] {article} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{amsmath,tikz} ...
1
vote
0answers
227 views

Drawing lozenges in Tikz [duplicate]

I'm creating a simple flowchart using Tikz, and I'd really like the "decision" nodes to be lozenge-shaped (think "tilted parallelogram") rather than square, in order to fit text better. Here's a ...
3
votes
1answer
655 views

pgfplots: Positioning “node near coord” at the bottom of the bar

I would like to position nodes near coords at the bottom of the corresponding bar, right by the X axis. Here's what I've got now: \documentclass{report} \usepackage{pgfplots} \begin{document} ...
2
votes
0answers
22 views

node at sloped path and/or not respecting every path/.style [duplicate]

I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
1
vote
1answer
237 views

how to draw double circle nodes in tikz more clear?

I like the drawing final states in Peter Linz's Book, more clear than final states in tikz. can do it with apply an option in tikz, or other packages?
5
votes
2answers
218 views

Typesetting digraph with weighted edges, varying vertex size, multiple lines in vertex

I would like to draw the graph displayed in the following picture with TikZ and also do some modifications: Firstly I want to carry the labels of the nodes to the inside as a second line. For ...
3
votes
2answers
213 views

anchor arrow start position

Attached below is the minimum working example. I would like the arrow to end at the west anchor of the node "operation". I tried anchor and few other possibilities but they don't seem to affect the ...
2
votes
0answers
63 views

Placing a node on top of lines in TikZ [duplicate]

I'm using TikZ to draw a polytope/simplicial complex and I'd like to label the vertices with their names (which are numbers). However, in the picture below, the node seems to be placed behind the ...
2
votes
2answers
564 views

[Tikz-]Qtree: force direction of single child to left or right?

I'm trying to draw a tree that has internal nodes with only one child, but which must be oriented. / \ /\ \ /\ Instead of the typical qtree where said children just "hang": ...
1
vote
0answers
42 views

How to set node label position with anchor [duplicate]

Actually, I write some notes about programming with Tikz and reading Jake's answer to this question, I asked myself how tikz places the "node label". I would like to reproduce: ...
11
votes
2answers
8k views

Adjusting font size with TikZ picture

Taking from the PGF manual, \begin{tikzpicture} \draw [help lines] (0,0) grid (3,3); \coordinate (a) at (rnd,rnd); \coordinate (b) at (3-rnd,3-rnd); \draw (a) -- (b); \node (c) at (1,2) ...
2
votes
1answer
464 views

How do I set top left position as the anchor for a node (TikZ)

Is there a way to position a node in terms of left/right coordinates of bounding rectangle? It appears to me that I can only specify center position.
5
votes
1answer
1k views

Drawing parallelogram with fixed angle, width and height?

I want to draw parallelograms with fixed angle, width and height, but it seems that trapezium in PGF/TikZ cannot specific the height without changing angles. \documentclass[tikz]{standalone} ...
9
votes
1answer
307 views

Custom, space-saving ellipse as TikZ node shape?

in some applications, one wants to use ellipses as node shapes in figures, e.g., when in the literature on a subject typically uses ellipses to denote certain things in figures. The problems with ...
20
votes
3answers
3k views

How can I set the TikZ label anchor explicitly?

I want to add a label to a node, but "inside" the node. Something like this: The manual seems to indicate it might be possible, although no actual key is named. The ... anchor point for the ...
10
votes
1answer
4k views

Increase the thickness of node border in TikZ

Suppose I have a node in the shape of a circle. How can I make its border thicker? \node[circle, draw=blue!80, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1};
3
votes
1answer
127 views

Node placement problem

This is my first question in tex.stackexchange. It might be relatively simple problem but I am having difficulties with the placement of the nodes inside graphics. The problem is that when I try to ...
8
votes
1answer
246 views

decoration nodes not being placed on the circle they are intended to be on

I "placed" some nodes on a circular path but they aren't showing up in the correct place and they aren't even on the circle. What is going wrong? \begin{document} \usepackage{tikz, pgfplots} ...
6
votes
1answer
153 views

circle node on an ellipse

I want to put this node on an ellipse at about the 35% mark \node[draw, circle, inner sep = .08cm, scale = .75] (location) {2}; \documentclass{article} \begin{document} \usepackage{tikz} ...
3
votes
2answers
732 views

Drawing a rectangular shape with a border around it in TikZ

Could anyone please tell me how do I draw a rectangular shape with a black border around it? I want that for all my rectangles in the following TikZ picture: \documentclass[tikz]{standalone} ...
12
votes
2answers
578 views

TikZ: shade also the border of a node

I would like to shade a node and the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
4
votes
1answer
736 views

multiline label for node

Is there way of producing multiline label for node: \node[label=below:{unit\\cell}] (one){\tikz{\draw (0,0)rectangle (1,1);}}; The example produces "wrong" label output: untitcell However, ...
7
votes
1answer
2k views

Size of TikZ ellipse node

When I set the minimum size of an ellipse in a tikzpicture environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself. Is there any way around it? ...
5
votes
1answer
130 views

Creating a strikeout command

I am trying to create a command that works in mathmode which simulates a strikeout diagonally while leaving the math display intact. \documentclass{article} \usepackage{amsmath,amssymb} ...
9
votes
1answer
594 views

TikZ: adding nodes to a circular diagram from smartdiagram package

This is what I would like to achieve: My MWE is below: \documentclass{article} \pagestyle{empty} \usepackage{lmodern} \usepackage{smartdiagram} \usetikzlibrary{shapes.geometric} ...
2
votes
0answers
458 views

How to draw clipart icons in tikz? [closed]

Is there a way to draw clipart icons in tikz? Or is there a way to export them or should I use some other software for this purpose? I want to draw the following 5 icons:
5
votes
1answer
167 views

Fill a node shape

I am trying to fill a custom shaped node but as can be observed in the example below the fill does not occur naturally rather it uses its default shape to fill. Any insights? ...
4
votes
1answer
156 views

Positioning node at end of line

The following code fails to do what I want: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric,calc} \begin{document} \tikz{% \draw (0,0) -- (\textwidth, 0) node[draw, inner ...
4
votes
2answers
1k views

Overriding node draw style inherited from every node style messes up positioning

I have been trying to draw a tree with TikZ. All nodes should be circles, so I use the every node style. There are some additional labels on some nodes, which have to be exceptions. I have tried this: ...
5
votes
2answers
190 views

TikZ, node with multiple lines around

I want to draw a circle node using tikz that has more than two lines around. I found this question: TikZ - multi-color double circle node with its very good accepted answer. Unfortunately, I have no ...
8
votes
2answers
712 views

How put tick and cross mark around a node in tikz?

I want to draw something like this: This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{trees} \tikzstyle{bag} = [text width=8em, text ...
3
votes
1answer
274 views

TikZ node positioning in Beamer ignores x coordinate

I have the following frame in beamer: \begin{frame}{Language} \begin{block}{} \begin{align*} \onslide<1->{ &\text{Types} & T &::= B | T \to T \\ } ...
5
votes
1answer
782 views

Tikz: How to split Nodes and position Text in it

I have a really big problem: I need a TikZ node that looks like that: but i have no idea how to split the node like that. Esecially the "more text" is a big problem. All i tried ended in errors. ...
2
votes
1answer
201 views

TikZ node in normal text

I would like to place a TikZ node inside normal text to get the fancy boxes. But the box is on the same baseline. I would like to get the text on the baseline. What can I do? \documentclass{article} ...
8
votes
1answer
274 views

Automatically place right angle indicator on normal vector

I'm trying to draw a normal vector on a curve, and use the usual "dot in an arc" symbol to indicate that. Here is what I have so far, which looks alright, but needed manual adjustment of angles and ...
3
votes
1answer
214 views

generate schematic diagram with shapes and curved path

I wish to generate the following figure: So far I have managed: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture}[transition/.style = ...
1
vote
0answers
34 views

Undefined control sequence, when using font in tikz node [duplicate]

I get the following error when using font keyword in TikZ node Undefined control sequence ...t=\small,black,rotate=90] at (-1/4,22/4) { where the code is, \node[font=\small,black,rotate=90] at ...
2
votes
1answer
121 views

positioning nodes according to their sizes in tikz?

I produced the following output using the tikz code shown below. What I want is for the arrow on the right to have a fixed length relative to the rightmost symbol, not relative to the center of the ...
10
votes
1answer
424 views

TikZ path labels and --cycle

\draw (0,0) -- node{a} (2,0) -- node{b} (2,1) -- node{c} (0,1) -- cycle; I can't find a simple way to make a label on the last edge. What I want is something like \draw (0,0) -- node{a} (2,0) ...
5
votes
1answer
215 views

How to put node in an accurate place? How to use different style of font in TikZ?

I want to draw something like this: This is my code: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} %\usepackage[active,tightpage,floats]{preview} ...
5
votes
1answer
187 views

Controlling arrow distance from the destination node in TikZ

I'm trying to draw a simple diagram in TikZ. I used a code example from the documentation (code below). As you can see on the graphic: there is a problem with arrows that are not touching the ...
8
votes
2answers
314 views

How to draw container box in TikZ? How to get it with rounded corner?

I want to draw something like this: This is what I am able to draw: This is my TikZ code: \documentclass{article} \usepackage{verbatim} \usepackage[active,tightpage,floats]{preview} ...
4
votes
1answer
2k views

How to place label in middle of line (above and below) with TikZ

\fbox{ \begin{tikzpicture}[scale=1,auto=center] \node[circle,fill=gray!20] (n1) at (2,8) {Node A}; \node[circle,fill=gray!20] (n2) at (8,8) {Node B}; \foreach \from/\to in {n1/n2} \draw ...
11
votes
3answers
571 views

pgfplots - Add offset to pins

I'm trying to make a bar plot for an optimization parameter in quantum physics. To be more informative, the graph should display the values of these parameters above the bars. So far I did ...
6
votes
1answer
147 views

Simultanious use of relative positioning and “of” notation

A rather high node has a not so high node on its rigth side. I like the positioning and sizes, but i want both node to share the same Y-Axis of their north border. \tikzstyle{big} =[rectangle, ...
6
votes
1answer
2k views

How to get larger fonts than \Huge in nodes with tikz?

I need to write large fonts which are included in nodes of a tikzpicture. When I change scale, everything changes but not fonts. Here´s my code: \documentclass[10pt,a4paper]{book} \usepackage{tikz} ...
8
votes
1answer
2k views

How to introduce a line break in a TikZ node label?

I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked: 1: \node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} ...
3
votes
1answer
467 views

How to place a textnode at the center of a drawed rectangle

A rectangle label does not appear inside the rectangle but on the corner of it. \tikzstyle{every node} = [align=center] \begin{tikzpicture} \draw (0, 0) rectangle (2, 2) node [center] ...
8
votes
1answer
284 views

how to use bullets and new line in a rectangle block of tikz? and how to draw arrows from particulat location of rectangle split node?

I want draw something like this: And this is what I am getting: I am facing three difficulties: How to get bullets inside a block? and how to use different font for the same? How to draw these ...