Questions tagged [node-connections]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
64
votes
3answers
48k views

Add more anchors to standard TikZ nodes

I frequently find myself needing more than the standard anchors TikZ nodes provide, i.e. north, north east, east and so forth. I usually use coordinate calculations for this, as in the example below, ...
57
votes
3answers
55k views

Tikz - How to Draw Boxes Around Set of Nodes

How to draw the boxes as shown in the attached image? I could only manage to draw the chart but could not highlight the desired node / nodes with a rectangle box. Preferably dotted. I could not draw ...
40
votes
3answers
45k views

TikZ: Using Loop to Draw Grid of Nodes

I am trying to draw an Ising model (in my case, a grid of nodes with an undirected edge between adjacent nodes on the same row or column) using TikZ. I have the grid of nodes working nicely using a ...
17
votes
2answers
12k views

Tikz - How to connect nodes

\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture} \draw (0,2.5) node[minimum height=1cm,minimum width=3cm,draw] (A) {A}; \draw (5,0) node[...
14
votes
2answers
12k views

Path From and To Same Node in tikz Flowchart

I'm working on creating flowcharts directly inside LaTeX documents using tikz. I am admittedly an extreme novice with tikz, although I have quite a bit of experience using LaTeX. My problem is when ...
12
votes
3answers
1k views

connect nodes that it looks like circle

I have 3 nodes placed on a circle. These nodes are differently shaped. I want to connect them and want the arrows to look like a circle, because it is a repeating process. I can connect them with ...
10
votes
2answers
5k views

Block Diagrams Multi Input - Multi Output Components in TikZ

My problem is to define blocks (mainly rectangles) that has labels in them in terms of matrices (mostly block diagonal) such that the n-many arrows that goes in this rectangle visually is at the same ...
8
votes
1answer
1k views

Placing anchor before and after text in multipart rectangle

In the following graph, i would like the arrows to be originated inside the box and not in the border, possibly aligned and next to the text (for example, right after the word "Pointer:". Here is ...
7
votes
4answers
2k views

Map with explaining pictures

I try to achive something like this: It is a photo I made in the local zoo. Sorry for the poor quality. I like the idea of a map containing explaining images and try to do the same with beamer. ...
7
votes
2answers
3k views

TikZ-tree: edge-alignment in horizontal org-chart

I'm working on some sort of org-chart/hierarchy-tree and ran into issues with the edge-alignment. As a guideline I used the family-tree-TeXample. See the TeX.sx-dicussion here. However, the text in ...
7
votes
3answers
712 views

Horizontal - Vertical connectors in a tree (in place of slanted lines)

Here is the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
7
votes
1answer
1k views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

I just started using LaTeX yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): Can I change the page size to ...
7
votes
1answer
894 views

Draw a simple figure with arrows

I have been trying to get this figure: Can you offer me some guidance as to how to correct my code and also get the arrow heads in the center of the lines? Thanks. Here is my code: \documentclass[...
7
votes
1answer
893 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
6
votes
2answers
3k views

individual path distance between nodes

I have been using the Tikz package to draw NFA's and DFA's, and it's a good package to do so with, but sometimes I have to be extra creative in my setup of it. It would be much easier if there was a ...
6
votes
3answers
3k views

Tikz foreach with two variables and the remember option

The question is really simple but I am a beginner in the world of tikz. I have the following example and I am trying to simplify the connections of the nodes. Here the working example: \...
6
votes
1answer
6k views

FlowChart with TikZ

I'm trying to build a flowchart using the tikz environment but I'm having some trouble connecting the "No" line from decision to int (and from update to int). How can i draw a line avoiding ...
6
votes
1answer
256 views

Tikz: writing a line from an point lying on a bent arc in a direction that is perpendicular to the tangent of the bent arc

I am trying to annotate bent arcs of a graph. There should be a link from the bent arc to the text of the annotation. Moreover the link should be perpendicular to the tangent to the bent arc. Here is ...
5
votes
2answers
277 views

TikZ: drawing balancing diagrams like SolveMe Mobiles

I want to draw a diagram like this: In general, the diagrams in SolveMe Mobiles (section Play) I suppose I can do with raw code, but I want to do with custom command like: "make horizontal line", "...
5
votes
1answer
532 views

Connecting normal lines with decorated ones

I've got a problem, I've tried it a lot and I've investigated about it but I haven't found the answer. I've got a code like this.... \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
5
votes
2answers
693 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} \usepackage[magyar]{...
5
votes
1answer
248 views

Smooth connection between tikz lines in foreach loop

I am trying to draw a diagram of a square wave. To do this easily I used a foreach loop to recreate a part several times. However, the flat line before and after the square wave pulse does not connect ...
5
votes
2answers
711 views

Two-lined brace in tikz node

I want to produce a timeline in the tikzpicture environment that looks like this: But my code, gives me the following: So I need the brace around both lines of my node! My code now looks as follows:...
5
votes
1answer
3k views

Gradient color on TikZ tree

Mindmap creates connection line composed of the parent/child colors. Is it possible to apply such effect on normal parent/child trees to connect the parent and child nodes with a gradient of their ...
5
votes
2answers
1k 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 ...
5
votes
1answer
153 views

Tikz connecting nodes with draw to problem

I am trying to make a series of nodes that are all connected to each other in tikz. This is an MWE: \documentclass{standalone} \usepackage{tikz, pgfplots} \begin{document} \begin{tikzpicture} \...
5
votes
1answer
4k views

What's the difference between xshift/yshift and relative coordinates while drawing an arrow between nodes?

Last night I crafted this piece of LaTeX, using relative coordinates to join nodes with arrows: \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usetikzlibrary{positioning} %for [above], [...
5
votes
1answer
963 views

Creating a (tensor) network using TikZ [duplicate]

I am trying to draw a very simple network diagram. My code: \begin{tikzpicture} \node[draw, shape=circle] (v0) at (0,0) {$v_0$}; \node[draw, shape=circle] (v1) at (1,0) {$v_1$}; \...
5
votes
1answer
1k views

PGFplots: dashed lines

How can I do to draw vertical dashed lines which connect markers of one serie with the respective one of the other serie? X axes for both plot is the same. MWE: \documentclass[]{standalone} \...
5
votes
1answer
578 views

How to connect different own TikZ macros together + default names of node

I will ask you for solution about a little bit more complex problem. Maybe it isn't so hard as it seems to be but, for me it is hard one. Let's say that i want to create four own macros \objecta, \...
5
votes
1answer
667 views

TikZ: placing a line (transformed into a sinusoidal shape) parallel to an edge connecting nodes

I am drawing a little sketch, where a line enters a circle, and three other lines come out. Above each line, there is to be a tittle sinusoidal curve (almost as if I used a construct like \node (a) ...
5
votes
1answer
134 views

Connecting scopes with braces and arrows

I'm working in a tikz figure that so far is like that: Produced with the following code: \documentclass[tikz,border=9]{standalone} \usetikzlibrary{matrix, calc, backgrounds, decorations....
5
votes
1answer
786 views

tikz : edge loop and rotate

Here is my example : \documentclass{standalone} \usepackage{tikz} \def\test#1{\node[circle,draw](#1) at (0,0) {#1}; \draw[->] (#1) edge[in=40,out=-40,loop] ();} \begin{document} \begin{...
4
votes
1answer
4k views

tikzpicture vertical line from one node to the other [duplicate]

Assume there are two nodes A and B, with B below A. These nodes are of different width. Connecting A.south to B.north results in a slanted line. I wonder how I can connect A.south to B with the ...
4
votes
2answers
1k views

straight edge between big nodes in tikz

I have two rectangle nodes and want to put an edge between them. I want the edge have its arrow between the top center and the top left end of the lower node. I tried to do this with specifying in and ...
4
votes
1answer
974 views

Add more anchors to standard TikZ nodes with TikZ 3.0

In order to define additional anchors in TikZ, I use the code from this popular answer. Unfortunately, after updating to TikZ 3.0, the code does not work anymore. I now receive several errors and my ...
4
votes
3answers
497 views

nodes vs coordinates. lines are drawn inside nodes

The plot tries to draw the joints and links of a robotic manipulator. Initially I defined the points for the joints as nodes and this resulted in some shift when lines were later drawn between them. ...
4
votes
1answer
2k views

Drawing grids filled with random selected colors and connecting them

What I'm trying to do is to draw to 4 x 4 grids side-by-side to represent the concept of bootstrap, from statistics. So, what I would like to do is to draw them and fill each cell of each grid with a ...
4
votes
1answer
1k views

How can I create this kind of flow chart?

I am creating a beamer presentation. I try to create a tikz flow chart. Here is my production. T_T Actually, what I want to do is Be grateful with any help! So frustrated now. \documentclass{...
4
votes
2answers
286 views

seamlessly connect angled edges

I try to draw a very thick edge between two specific anchors of nodes. In reality, they target segments of multipart nodes, but I kept it simple for this example. \documentclass[tikz]{standalone} \...
4
votes
1answer
501 views

Connect nodes with curly braces in TikZ

I would like to know how to connect nodes with curly braces in TikZ. The picture below shows what I want to do: And this is what I already got: \documentclass[class=minimal,border=0pt]{standalone} \...
4
votes
1answer
298 views

Tikz - \graph command explicitly place one parent node below another parent node (connected to same child)

In the following Tikz flow diagram constructed specifically using the automatic placement of graphs using \graph construct (i.e. instead of placing nodes using the fit library), , how can I have ...
4
votes
0answers
57 views

Draw circle connection bar between two (or more) nodes of different tikzpictures

I tried to find something as identical as possible to this question but did not find it. If so, please let me know. I want to connect two nodes that are in different tikzpicture environments through ...
3
votes
2answers
772 views

how to connect these antennas wirelesslly?

I know the qustion in little strange, but i need to connect between these three antennas by wireless channel (with distance d as a name) and (what is the possible options) also whats is the possible ...
3
votes
2answers
885 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
3
votes
2answers
120 views

connect to node shapes

i adjusted some code but now i reached my borders. i'd want to rotate the following shape with 90 degree, so it looks upwards afterwards. but my problem is to put the connection lines also from west ...
3
votes
2answers
1k views

Tikz: Simple decision tree (node connections)

I am trying to reproduce the following So far I got this: \begin{tikzpicture}[] \small \node[] (AB) {$A \succeq B$}; \node[]{} child{node[chance]{C} edge from parent node[above]{1-...
3
votes
1answer
217 views

Linking text nodes in a page

I'd like to know what package can link nodes in different parts of a page. To simplify my question I uploaded an example extracted of tkz-linknodes manual (AlterMundus). Please note that the page ...
3
votes
1answer
53 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,...
3
votes
1answer
61 views

Make table with connections between different rows

I try to make the following table: And for this I made just a simple table \begin{longtable}{cccc cccc cccc cccc} {ho} & {ha} & {he} & {hi} & {bo} & {ba} & {be} &...