Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-node]

The tag has no usage guidance.

0
votes
1answer
31 views

Creating a node

I am trying to create a node as shown in the below figure. Could anyone help me how to create it? Thank you in advance
2
votes
1answer
26 views

How to draw an arrow from a node to itself with a label lay above the arrow?

I know how to draw an arrow from a node to itself: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node (a) at (0,0) {}; \draw[->] (a) to[in=150, out=30, looseness=...
2
votes
1answer
24 views

Problem with inner sep and minimum height of TikZ node

Consider this code, which is a simplified version of this answer: \documentclass[tikz,margin=3mm]{standalone} \def\innersep{.3333em} \begin{document} \begin{tikzpicture}[every node/.style={draw,text ...
0
votes
1answer
60 views

How can I nest multiple groups of nodes with the tikz package? [on hold]

For generating nodes with the tikz package, I'd like to nest some. I've tried the environ package to convert the \node command into an environment like so: \NewEnviron{NodeEnv}[2]{ \node[#1](#2){\...
7
votes
1answer
72 views

TikZ node shape depends on inside text

In one of my previous answers, my first proposal \documentclass[tikz]{standalone} \usetikzlibrary{quotes,angles} \begin{document} \begin{tikzpicture} \draw (0,-4)--(0,4) node[above] {$Im$} (-4,0)--(...
4
votes
2answers
59 views

Even-length cycle laid out as a star

For demonstration purposes, I want to obtain a graph of C10 shaped as a star. I have been working on this for much longer than I should have. I currently have this: \begin{figure} \centering \...
1
vote
1answer
19 views

Compiling problem, connecting nodes thru edges is not working

I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on ...
5
votes
2answers
151 views

hrule into tikz circle node

I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try: \documentclass{standalone} \...
1
vote
1answer
52 views

Creating tree of trees in TikZ

I would like to create a tree in TikZ whose nodes are trees themselves. I have the following piece of code: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \tikzset{% ...
3
votes
3answers
62 views

Vertical alignment of text in a node (TikZ)

I am using the TikZ code given in this answer. I would like the text in each rectangle to be on the top left of the rectangle. I already managed to bring the text to the left by replacing align=center ...
1
vote
1answer
59 views

tcolorbox not centering in absolute positioning tikz node

Alright people, I've stumped myself again. It appears (to me at least) that tcolorbox has some outside margins or padding that I don't know how to control. I use tikz absolute positioning to format ...
3
votes
1answer
47 views

pattern=grid, how to simple increase grid steps

i have the following mwe: \documentclass[tikz, margin=3]{standalone} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture}[pattern color=gray!50] \node (s) [draw=gray!50, thick, ...
2
votes
1answer
26 views

How to vertically center nodes' text for nodes positioned via above

I have 2 nodes of different height. They are positioned relative to the nodes below them, b1 and b2, which are the same height and have the same y value. I want b1, b2 to have the same horizontal ...
3
votes
3answers
94 views

How to line up adjacent nodes in tikz that share a border

Here is how I'm drawing it currently: \documentclass{article} \usepackage{tikz} \usepackage[paperwidth=15cm]{geometry} \begin{document} \noindent \begin{tikzpicture} \node[draw,rectangle,text width=...
4
votes
2answers
180 views

Having arrows entering and leaving at different points on a single node

I wish to essentially remake the below image using TikZ, but with more colors and using a different language inside the boxes. I've tried the following: \documentclass[tikz]{standalone} \...
9
votes
3answers
315 views

How to fill a split node with two different colors?

I have that issue when try to fill a split node with two different colors. After using rectangle split part fill={red,blue} as an node argument the drop shadow overlap the node because I don't use the ...
6
votes
1answer
63 views

How to add title at custom position in Latex pgfplot?

I tried to add title at custom position of a pgfplot from a CSV (https://drive.google.com/file/d/1xnF8rG9J50ZIxl9K04k6nksvjWoWrfHe/view?usp=sharing) file, but nothing came out. I tried several ways, ...
7
votes
5answers
312 views

TikZ: Alligning two Tikz pictures and align parentheses to nodes

I tried to draw two graphs with Tikz. How can I align them vertically to each other? I want the knots to form the center, such that all six nodes align vertically. Furthermore I want to align the ...
5
votes
2answers
111 views

How to add a white background to an angle label in Tikz?

I'm drawing a diagram for a project, but with the n vector going through the angle label it isn't very clear, I'd like to add a white background to the alpha label so it's easier to see. Thanks, see ...
1
vote
1answer
33 views

Position matrix horizontally in the center

I would like to position tree in the north-center of the page, but for some reason advancing x coordinate of the node-0 doesn't change anything. Using relative positioning to draw the node-0 in the ...
4
votes
2answers
92 views

Locating north west corner of text area

I would like to locate the exact position of the north west corner of the text area. Using \layout (see image in Notes section), it seems that the required offset from current page.north west is ...
7
votes
2answers
134 views

How to represent discontinuous data (Interrupted Plots) with pgfplots?

I want to plot a large set of data points generated from a numerical experiment. The plot looks like a step function, that is, for an interval in x-axis, it takes a constant value. The code is (for ...
3
votes
1answer
48 views

Line from Origin to Nodes at circles centers

I want to produce a figure like this: with this code: \begin{tikzpicture} \draw (0,0) circle [radius=10.75cm]; \draw (0,0) circle [radius=4.2cm]; \begin{scope}[even odd rule] \draw[fill=gray!20,...
2
votes
2answers
72 views

Align two rectangle split horizontal nodes vertically

I'd like to be able to align vertically two or more rectangle split horizontal nodes such that the central vertical lines align. As far as I can make out, the coordinates for those lines aren't known ...
3
votes
1answer
124 views

How to justify the text in tikz node?

The text in the node in left-aligned. How can I make it justified? \documentclass[20pt]{extarticle} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{paperheight=50cm,paperwidth=50cm,margin=...
0
votes
0answers
43 views

Use tikz node `pos`-key on later reference to node

I want to use e.g. \node[pos=0.8]{MYNODE}; after the node has been defined inside e.g. \draw: Consider the following \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{...
4
votes
1answer
27 views

Lines not correctly aligned with nodes

my custom draw lines are not pointing to the nodes but to somewhere else, I don't know why and how to fix it: \documentclass{standalone} \usepackage{tikz} \tikzset{ every label/.style={ ...
2
votes
1answer
37 views

Method to quickly place text at specific locations on figure

I slightly modified the code written for a second order step response found here. I wanted to add extra text around the figure. I have to through many iterations before I get the placement right. I ...
1
vote
1answer
25 views

Fine tune node text placement in Block Diagram

In the code below, how do I go about fine-tuning the placement of the text: CODE \documentclass{article} \usepackage[landscape]{geometry} \usepackage[table]{xcolor} \usepackage{url} \usepackage{...
1
vote
1answer
71 views

How do I draw an optionally colored circle/square/ellipse around a symbol

In this thread, @HenriMenke showed how to put a circle around a symbol. It's easy to modify his code to color the circle, see below, but I don't understand how to make the color an optional ...
3
votes
1answer
57 views

Why does the node style newcommand not work in tikz-qtree?

To reuse the labeled node style in tikz-qtree, I have defined \newcommand{\lnode}[3]{\node [label = {#1} : {$#2$}] {#3};}. However, \lnode does not work as in \Tree [.\lnode{above}{[1,5]}{$x$} .... ...
2
votes
1answer
46 views

Reduce length of arrow from block diagram

In the code below, the arrows going into and out of the block diagram box are too long. How do I go about reducing the length of the arrows? CODE: \documentclass{article} \usepackage[landscape]{...
2
votes
1answer
36 views

Centralize with includegraphics

I'm having trouble with the beamer. I want to put a background image. The image is not too large, so I can not put the size of the page so it is not distorted. The problem is that using scale=1, I ...
3
votes
1answer
76 views

Make tikz nodes touch bottom to top edge

I have two tikz nodes like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \usepackage{amsmath,bm,times} \newcommand{\mx}[1]{\mathbf{\bm{#1}}} % Matrix ...
3
votes
2answers
142 views

Edge coordinates of a regular polygon shaped node

I want to have two inverse triangle side by side. In between, there shall be horizontal arrows in between. Which coordinates do I have to specify in order to address the edges of the shape instead of ...
1
vote
1answer
34 views

Size calculation of node not as expected

I'm trying to place two similar shapes side by side and something exactly in between both. But instead the two shapes (A and B) overlap. minimum sizes seem to be ignored here (was just for testing). I ...
3
votes
1answer
184 views

Tikz Node Text Formatting Problems

I have encountered a strange problem with text formatting within Nodes in Tikz. I want to use nodes to create information boxes within Tikz diagrams, for example as in the TikZ & PGF Manual v3.0....
1
vote
1answer
32 views

How to draw a brace after a node of variable size in tikz

I have a way to denote functors in my articles. To do so I use the following piece of code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \...
0
votes
1answer
52 views

How do I decouple child nodes in tikz trees into separate node elements?

Assume I have a tree of the following form: \node (r) {Root} child { node (c1) {Left Child} } child { node (c2) {Right Child} } ; Now, I want to put this into a beamer frame and apply \only ...
7
votes
3answers
226 views

Dyck paths behaving as nodes

I am sort of having two main issues with Dyck paths. I'm trying to get to the image on the left (which I edited it with Paint), and what I currently have is the image on the right. I believe that what ...
3
votes
2answers
767 views

How set TikZ circle radius in \node[circle]?

I know that with TikZ, we can specify the radius of a circle when a \draw command is used, as in: \draw[fill] (1,2) circle (3pt); But how does one indicate the radius when you draw the circle by ...
5
votes
2answers
119 views

TikZ: redefine/update node label

I need to draw many nodes with labels that I can calculate from their indices. However, a small amount of them do not follow the rule, thus I need to assign their labels manually. Can I do that ...
1
vote
1answer
70 views

How to conditionally rotate a label in TikZ?

I want to create a macro that puts a label in a TikZ \draw environment; that rotates with the law: alfa<180, then rotate=alfa, else rotate=alfa-180. My code (where #7 is the angle, and #6 is the ...
4
votes
1answer
51 views

Prevent tikz node intersection

I'm making a macro to generate a tikzpicture depending on the arguments passed into the macro. I want to be able to draw a \node only if it won't intersect with a specified x coordinate. So say my ...
0
votes
1answer
191 views

Positioning of Node Labels

\documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw=black] (t) at (0,0) {}; \foreach \i in {0,1,...,359}{ \node[label={\i:$\circ$}] at (...
1
vote
1answer
75 views

Positioning Graphic within Tikzpicture

I'm making a LaTeX presentation for the first time, and I'm trying to make a flowchart including a graphic, but for some reason the positioning of the graphic is above and to the right of where it ...
3
votes
1answer
92 views

From tree, I cannot make arrows from each node and give the color for each floor and give a layer to that

I want to draw a tree like the below. \documentclass[article] \usepackage{tikz} \usetikzlibrary{shapes,arrows,trees} \begin{document} \begin{tikzpicture}[level distance=2cm, level 1/.style={sibling ...
1
vote
1answer
141 views

How to make the design of this path in TikZ (Critical Path Method design)?

Please consider the following picture: I would like to create those nodes using the tikzpicture environment. Each must have a dividing line in the middle so that the node is divided into three ...
6
votes
2answers
293 views

Fill a triangle with nodes on the corners

I'm drawing three nodes and connecting them to a triangle: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node [ circle, draw ] (A) at ( 1, 0) {A}; ...
2
votes
1answer
96 views

Problem with node shape (diamond)

I am drawing a flow chart. Diamond-shaped nodes don't come out right. My minimal working example is below. There are no problems with ShareLaTeX, but it doesn't work on my computer. \usepackage{tikz} ...