Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

Using Tikz-cd “to path=” to Illustrate Composition of Natural Transformations

I'm having two issues in Tikz-cd in trying to make the following picture: which appears in Categories for the Working Mathematician by Saunders Mac Lane. I've looked at the documentation for Tikz-cd, ...
2
votes
2answers
28 views

node placement relativ positioning

i'm trying to draw a schematic with a gain that has \times 2 inside of it. The description places the text far above the element. I tried to place a node exactly where the amp is, but it seems to be ...
2
votes
0answers
49 views

how to remove all space around a text?

I need sans serif text inside nodes to be "perfectly" left aligned in a tikzpicture environment. This code illustrates my problem: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \...
1
vote
1answer
40 views

Text placed at distance from line, given radius and angle

Assume a line from A to B. At p% (or p mm/cm) of the distance from A to B, starting from A, I want to "turn" using a radius r and an angle y relative to the AB direction (y=0 is in the direction of ...
2
votes
1answer
40 views

Tikz text in Nodes

I found the following code for the representation of a Neural Network in another thread: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,...
2
votes
2answers
67 views

Parallel tikz lines and node placement (network graph)

I am trying to recreate (the less than pretty) figurebelow Using the code at the bottom of the post I was able to come up with the following solution I have some gripes with this solution, which I ...
0
votes
3answers
67 views

pgf-plot node at the center-south of the image

I use this code for drawing plots. \documentclass{article} \usepackage{pgfplots} \usepackage{fancybox} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,samples=200] \...
1
vote
1answer
48 views

Tikz: positioning of plot within node?

I would like to use \begin{axis} and \addplot within a node, as follows: \begin{tikzpicture}[xscale=0.5,yscale=0.5] \pgfmathdeclarefunction{gauss}{2}{ \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)...
2
votes
1answer
45 views

Positioning a node alongside a curve

What am I doing wrong ? Changing the value next to pos= doesn't move the node... \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \begin{...
2
votes
0answers
48 views

Evaluate variables for positioning multiple times

Here is a working code (I'll describe it just after) : \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{graphics} \usepackage{tikz,pgfplots} \...
1
vote
0answers
46 views

Custom checkbox symbol

Consider the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[line width=3pt,rounded corners] (0.75,1)--(0,1)--(0,0) -- ...
4
votes
2answers
65 views

Node positioning in Venn diagram

Consider the following MWE: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle ...
2
votes
1answer
70 views

How to draw a tree diagram using tikz in which the nodes overlap?

I'd like to use the tikz package to draw a tree diagram (see my code until now below). My issue is that the nodes all are restricted to their own matrix column, so my diagram becomes too broad to fit ...
2
votes
2answers
74 views

Completing the loop in tikz

I am trying to complete my cyclic diagram, but my last bit of tikz code reverses my arrow direction and does not complete the diagram. I know that only my last arc is wrong, but I do not know how to ...
2
votes
2answers
119 views

Distance between horizontal tree levels

My problem is that the following tree produced with tikzpicture squeezes my nodes way too close together, as you can see in the picture below. I have been trying to use level distance to move the them ...
4
votes
2answers
134 views

Use evaluate option of \foreach to display integers not floats in TikZ

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->] (-2,0) -- (2,0) node[right] {$x$}; \draw[->] (0,-2) -- (0,2) node[above] {$y$}; \...
3
votes
1answer
55 views

Alignment of labels in tikz nodes

Please consider the following example. \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{fontspec} \usetikzlibrary{decorations.text} \usetikzlibrary{positioning,decorations.pathreplacing,...
0
votes
1answer
32 views

How to globally change the color of tikz nodes?

I see here: How to specify a fill color in RGB format in a node in tikzpicture? It is possible to change the color of a node locally. However, I would like to add a background color globally to all ...
1
vote
1answer
41 views

Multiple tikz chain alignement

I would like to display this result : This is my code : \begin{tikzpicture} \begin{scope}[start chain=1 going below, start chain=2 going right, start chain=3 going right] \node[on chain=1] (...
3
votes
1answer
54 views

Hiding partially a curve/path/edge

I would like to hide the b-i edge when it passes all between the edges f-l and h-c ( not only at the intersection). I would need a solution that doesn't force me to compute manually the slope at (f) ...
0
votes
1answer
22 views

edgeworth box can't draw node

I would like to draw in a caption on the top, bottom, left and right of this graph. Unfortunately I can't seem to draw anything at all: MWE: \begin{document} \begin{tikzpicture} \begin{axis}[axis x ...
3
votes
2answers
56 views

Draw axis in block diagram

I would like to add plots inside TikZ nodes. Here is a minimum working example of the code I already have. \documentclass[]{standalone} \usepackage{pgf,tikz,pgfplots} \usetikzlibrary{calc,positioning}...
1
vote
2answers
44 views

How do I draw only the beginning and the end of an arrow from one node to another?

I am trying to create a node-network using pdflatex and have something very specific in mind. Below, you can find my current minimal example as a tex file that I have a problem with (compilable with ...
0
votes
0answers
58 views

TikZ Graph with Graphdrawing and Layered Layout: Nested Nodes do not work at all

I am using TikZ with the libraries graphs and graphdrawing together with the grid layout to generate graphs where the nodes are placed automatically by libraries. Everything, except one thing, works ...
4
votes
3answers
309 views

Tikz-cd diagram arrow passing under a node - not crossing it

I'm drawing some commutative diagrams, and some of my diagonal arrows are crossing nodes on their way. I would like to have a sort of "crossing under", to force the arrow not to show while crossing ...
2
votes
1answer
58 views

How to obtain rounded rectangle textbox and add connectors in chronosys timeline?

I am trying to modify a chronosys timeline obtained from here to obtain a rounded rectangle and connectors such that the textbox and the range are connected with their midpoints as shown in an example ...
2
votes
1answer
44 views

tikz node exceeding axis

I have an axis environment in a tikzpicture with a straight line exceeding the axis. At the end of the line I add a node whose text partially also exceeds the axis and is clipped. Clipping the line is ...
3
votes
4answers
84 views

Draw a cyclical graph with nicely aligned edges using nodes in tikz [duplicate]

I would like to draw a cyclical graph in tikz using nodes and edges as hassle free and with as little code repetition as possible. However, the resulting edges do not align nicely with respect to the ...
2
votes
1answer
39 views

How to color each item per slide and revert back to black on other slides?

I want to highlight by color each item per slide so that it appears animated. That is to say I have two items under the label A. Now I want to highlight the first item with the color red on slide 2. ...
3
votes
1answer
53 views

How to get both transparency and rounded corners in tikz picture without using additional packages?

I am trying to create a tikz image that has rounded corners and transparency at the same time. The problem I face with the MWE given below is I can have either transparency or rounded corners, but not ...
2
votes
1answer
37 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
0answers
39 views

Node position adjusting with math

It's been a while and I'm getting back into circuitikz. I'm trying to make a simple block diagram, here is my code. \begin{tikzpicture}[auto, node distance=3cm,>=latex'] \node [input] at (0,0) (...
3
votes
1answer
46 views

Problem on coloring nodes with [fill=black!\pgfmathresult] in tikz

I tried to use tikz to fill nodes with colors according to values in an array file, but I failed to fill nodes with right color when fixing node position by [at (a,b)]: \begin{document} The data in ...
3
votes
1answer
159 views

rearrange tikz dashed rectangle blocks

I have the following tikz code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, chains, ...
1
vote
1answer
165 views

Put exam \answerline blanks as nodes inside \tikzpicture

The exam class allows you to leave spaces for students to write answers, using the answerline command. Furthermore, when \printanswers is enabled, an file can be generated that fills in these blanks ...
4
votes
2answers
135 views

Straighten subgroup lattice

I would like to straighten out the top node and the bottom node so that they create a more tidy lattice. I found this post here, but I wasn't able to follow what was going on. I just think that my ...
0
votes
1answer
33 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=...
1
vote
0answers
34 views

pgfplots: How to set “axis on top” only for abscissa and ordinate, but not for grid? [duplicate]

I try to format a ybar diagram nicely. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar ...
2
votes
1answer
90 views

pgfplots: “axis on top” will cross out ybar value nodes?

Assumed we have a simple ybar diagram including ymajorgrids. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
1
vote
2answers
111 views

How to place nodes around a circle from some initial angle?

The code below generates 6 nodes placed around a circle at angles 60, 120, 180, ..., 360 with labels 1, 2, 3, ..., 6, respectively. However, I would like to place these 6 nodes in the way (where the ...
7
votes
3answers
276 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 ...
5
votes
1answer
233 views

Flow chart document symbol

I am doing an old-style flow chart with TiKz, and I am defining my nodes with the \tikzstyle command (example \tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,...
1
vote
2answers
47 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 ...
1
vote
2answers
49 views

Draw sloped and above path text between two edge-connected nodes with “circle connection bar option”

I wish to draw the text "USA" on path_1 using options as it was drawn "USA" in path_2, but draw without using nodes,only using edge in path_1. \documentclass{article} \usepackage{tikz} \...
1
vote
1answer
59 views

With Tikz, how can you center a scope that varies in size below or next to a node?

I'm looking for a way to center the scope local bounding box=Node4-0 below Node3-0. Also I'd like to put a fixed distance between the scopes surrounded by a red outlined box, like what happens with ...
0
votes
1answer
33 views

How to use package setspace whit package hyperref, like this: \ node {\ href {https://google.com} {\ begin {spacing} {2} Text \ end {spacing}}}?

How to use package setspace whit package hyperref. because I've been getting the following error below when I try to generate the tex file described in my MWE: ! Missing \endgroup inserted. \...
2
votes
1answer
88 views

Tikz diagrams and node placements

I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. ...
2
votes
0answers
58 views

How to define new anchor border in new shapes with tikz-pgf

I'm trying to build a libray of symbols by means of defining new shapes in pgf-tikz. To be honest, it's being a enormous task for me because I don't understand lot of things of code to do it. ...
2
votes
2answers
47 views

Apply foreground effect to the node child of a mindmap or background to the arm of the parent node

I need the node child's "Tree" arm not to overlap the node child "BIRD'S TO ...". I've been trying to load the library backgrouns and use "on backaground layer" in the options for the child "Tree" but ...