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.

2
votes
0answers
20 views

Multi part nodes in `forest` tree [on hold]

In forest I like to use multi part nodes. In experiments I use the following simple MWE: \documentclass[tikz, margin=3mm]{standalone} \usepackage{forest} \usetikzlibrary{shapes.geometric, } \begin{...
1
vote
1answer
31 views

Nodes: oblique pointing

I was able to plot the picture on the right(not the same fruits though): I have a problem. The arrow on the left is not correct in my plot. How can I make it oblique? \documentclass{article} \...
3
votes
1answer
53 views

Drawing: nodes and arrows

Hello fellows and folks! I need an extra help with the following picture: Since this picture has copyrights, I found similar free icons of copyrights. Could you give me a hand with the nodes and ...
1
vote
2answers
30 views

More white space - only to the left and to the right - about a label in a node

I want a bit more white space to the left and right of the labels 7 and the same white space above and below the labels 4. (Is the default shape of nodes squares?) \documentclass{amsart} \...
2
votes
1answer
27 views

Place node in the middle on an arc during a foreach statement

This question is akin to this one, The difference being that I want to place my nodes during a foreach loop. MWE: \documentclass[border=5pt,tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
1answer
31 views

Pgfplots Interrupt Bounding Box by applying a style to a node

I would like to be able to use \addplot ... node {<node text>}; and have the node not affect the bounding box. That is, the bounding box should be what it would be with just: \addplot ... ; ...
0
votes
2answers
26 views

How to set the distance between the halfway label and arrow in tikz?

I know that I can use \begin{tikzpicture} \draw (0,0) to node[midway, above=..., left=..., rotate=45] {A} (1,1) ; \end{tikzpicture} to set the position of the label, but it is very tedious to ...
0
votes
1answer
29 views

Adding circle to tikz graph with arrows

In continue to the great answer provided in: Changing a tikz figure to have more blocks I'd like to modify this figure and add an "adder" node with arrow and text, and also add a text near the ...
5
votes
2answers
109 views

TIKZ - changing one block into parallel multiple blocks

I have the following code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, ...
0
votes
1answer
80 views

Draw lines without arrows between nodes

The answer referenced is https://tex.stackexchange.com/a/45735/180050 and is essential for this question. In the given answer, it shows how you can easily make directed edges between specified nodes. ...
2
votes
1answer
39 views

Repeat nodes in tikz rectangle iteratively

So I want to fill a rectangle, like below, but without all the hassle of forlooping and getting coordinates. I want a magic command that places my symbol repeatedly inside a rectangle. Preferably ...
0
votes
1answer
31 views

LaTeX Tree Diagram

I'm trying to recreate the diagram on this website: http://www.njohnston.ca/2013/04/the-minimal-superpermutation-problem/ and am finding difficulty with joining all the nodes in the third row to a ...
1
vote
1answer
49 views

My TikZ output is omitting nodes

I really don't understand why this is happening, so I thought it was a bug from TeXStudio, but when I went on TeXShop and created a MWE it persists. I have the following code: \documentclass[border=...
7
votes
1answer
96 views

tikzmarknode and vphantom take up horizontal space

A tikzmarknode combined with a vphantom character takes up horizontal space. Minimal but nonetheless noticeable. \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document}...
2
votes
1answer
43 views

\tikzmarknode lines with hooks

I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure ...
3
votes
2answers
124 views

TikZ: How to reverse arrow direction without switching start/end point?

Assumed we have this MWE from user Caramdir: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,calc,decorations.markings,decorations.pathmorphing,arrows.meta} \begin{document} \begin{...
7
votes
3answers
259 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
1
vote
2answers
39 views

Drawing node within node (Tikz)

I don't get any error for the compiling, but I don't get what I expected either, which was for my second node to show up with the same set of numbers as my first node. Can someone please let me know ...
3
votes
1answer
237 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
39 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
30 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 ...
7
votes
1answer
106 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
68 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
22 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
166 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
61 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
83 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
64 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
56 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
102 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
202 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} \...
10
votes
3answers
430 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
68 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
320 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
136 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
41 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
119 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
165 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
50 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
94 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
240 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
49 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
28 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
41 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
33 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
77 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
60 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
60 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
37 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 ...