6
votes
2answers
124 views

TikZ: Relative positioning of nodes

I am working on script to build chart depending on the input data and one of the troubles is to place node right of the rightest node. This is MWE: \documentclass[border=.5cm]{standalone} ...
4
votes
1answer
40 views

Fit node to another node in a seperate scope that has been shifted and canvas transformed

I want to fit a node to another node which is defined in a different scope which has been subject to the options "(x)shift and transform canvas" (see example code and image). Without any canvas or ...
12
votes
5answers
258 views

How to force nodes on different lines to have equal y-positioning

I have, hopefully, a very simple question. I use tikz to make a figure for confirmatory factor analysis (CFA). In the minimal example there a 6 arrows going from the circle to a fixed place. However, ...
7
votes
1answer
70 views

How to compute xslant and yslant

There must be an easy way to compute the required values of xslant and yslant to obtain the text in the "correct plane". Below I have guessed at then, but that is a very tedious process. The desired ...
2
votes
0answers
50 views

Package PGF Math Error: Unknown function 'north' (in 'north west')

I have created the following shape (it has some more features but the error is always the same), based on a rectangle. \pgfdeclareshape{set}{ %Like in rectangle but without all the separators ...
1
vote
1answer
75 views

Absolute positioning in TikZ3

I am also submitting the solution, please, save your time and energy on this Question. My problem is this. The absolute positioning stopped to work in some cases after upgrading TikZ2 to TikZ3. ...
3
votes
1answer
88 views

define manually the position of a pgfplots plot inside the TikZ picture

I just started using matlab2tikz for the graphics in my thesis and got stuck with a probably simple problem: I have a plot of a function and an inset (zoom-in) on it. Both the main plot and the inset ...
2
votes
1answer
28 views

Position some yticks to the right, and some others, to the left

I am trying to position the yticks to the left and right of the axis, depending on a comparaion to a reference value. Say in the following plot, I want to position the positive ylabels to the left, ...
5
votes
3answers
218 views

Table with arrows between cells

I want to create a table with arrows between some cells, for which I've used tabularx and TkiZ. I have the following problems: Text in cells aligned vertically to the center and at the same heigh ...
6
votes
2answers
171 views

Relative positioning of edge labels in Tikz

I have a graph with multiple edges that originate at the same y-level (possibly at different angles) and end at different y-levels. I would like to position the edge labels at the same y height. ...
2
votes
0answers
56 views

TikZ node positioning on edge parameter/label

I wonder if there exists a trick to position a graph node (relative), based on a parameter (label?) of an edge leading to it? I mean a kind of time diagram, i.e. for example I have a timed automat, ...
0
votes
0answers
25 views

How does 'right=of' and 'right of=' work, and what does 'node distance=' do? [duplicate]

I have three variants of the same code and I varied the following three cases: right of= together with node dimension=1.6cm -- looks fine right=of together with node dimension=1.6cm -- nodes too ...
6
votes
3answers
203 views

TikZ: Bottom right align text in rectangle

I am making some graphical models with tikz, and I have added a rectangle (plate./style) around three nodes. As you can see in the picture the text "N" is vertically/horizontally center aligned. I ...
7
votes
1answer
204 views

How to combine equations and graphical calculus in TikZ?

I am writing an article about category theory and a lot of my equations are graphical, like this: Straight lines (and later, bent lines and circles) represent morphisms in an abelian category. But ...
0
votes
2answers
82 views

Relative positioning of node with TikZ Positioning

I am trying to replicate an automata with tikz and was wondering if there is a keyword that would allow be to mimic the position of the states with relative positioning without a "dummy" node. Below ...
2
votes
2answers
160 views

scopes on chain: node distance not working

I have defined a few commands that each output a bunch of TikZ nodes that, combined, conceptually represent a single node/object. In order for the generated nodes to be treated as a cohesive whole, I ...
2
votes
1answer
79 views

How to place a node of a certain shape with one side on a line in TikZ

I would like to have an arrow shaped node to be positioned with its tail on the vertical axis of my reference frame. Here' were I got: \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
196 views

How to place text with tikz under beamer at an absolute position on the slide

I want to place some text on a beamer slide next to a figure. The problem is that if I simply use tikzpicture environment, LaTeX places the text after whatever is placed before, be it hidden or shown. ...
7
votes
4answers
181 views

Tikz labels are shifted dependent on the letters size

General description of the intrinsic behavior The labels in a tikz picture are shifted (e.g. by above) exactly to the extreme of the letters in the labels, i.e. it takes the descender (see ...
8
votes
1answer
332 views

Tikz callout: positioning start of pointer

The pointers of my Tikz callout rectangles always start in the middle of the rectangle. But that kind of pointer sometimes gets in the way of other objects (e.g. the pointer start should be more to ...
3
votes
1answer
127 views

Use [midway], [near end] etc. for weights in TikZ

Is it possible to move weights of vertices using the commands [midway], [near end], [near start] etc? Just stating {above} and {below} doesn't always help, since the weights sometimes overlap: ...
2
votes
1answer
140 views

Overwrite TikZ auto placement of weights in graph

So I have the following graph: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} ...
4
votes
2answers
185 views

Centering nodes with Tikz automatic node placement

I would like the nodes to be centered, an I can't see a way to do this: MWE: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} ...
2
votes
0answers
121 views

TikZ: How to set a node on an exact position on a line?

to set a node on a line the usual way should be something like this: \begin{tikzpicture} % place nodes \node[draw] at (0, 0) (a) {A}; \node[draw] at (5, 0) (b) {B}; \node[draw] ...
6
votes
1answer
123 views

Pushing text below an absolutely positioned box

I'm trying to create a document header, part of which is an absolutely positioned TikZ picture, and part of which is some text in a TikZ node. The northwest or northeast anchor of the node should be ...
2
votes
1answer
74 views

How to calc y coordinate of the block to put it between 2 other?

Suppose, we have a flowchart with 2 branches: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{calc,shapes, positioning} ...
5
votes
2answers
136 views

Legend position control within rotated polar axis

How can I shift (control) the position of the legend within rotated polar axis environment? (e.g. shift into the south-east corner?) \documentclass{article} \usepackage{pgfplots} ...
3
votes
2answers
458 views

How to position tikz node relative to 2 other nodes

Suppose, I have this structure: Code: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{calc,shapes, positioning} ...
6
votes
2answers
513 views

Positioning a tikz scope relative to another tikz scope

In the manual of PGFplots on page 333 the author describes how to position an axis environment relative to another axis environment: \begin{tikzpicture} ...
8
votes
4answers
164 views

TikZ chain adjust positions of on-the-arrow node

\documentclass{article} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[start chain=circle placed {at=(\tikzchaincount*30:1.5)},regular/.style={draw,circle,inner ...
1
vote
1answer
179 views

Different height in different split parts + arrow positioning

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart} \begin{document} \tikzset{every loop/.style={min distance=1mm,in=110,out=70,looseness=2}} ...
2
votes
1answer
302 views

Adding tikz pictures on top of a beamer slide

What is the best practice for adding/uncover TikZ pictures on top of a beamer slide? I have tried the following approach \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
13
votes
2answers
404 views

How to draw 3 figures and have them side by side while they're connected

I would like to have 3 figures side by side, as in one of my previous posts. However, this time isn't the same. I would like to link my figures as below: My problem is not only how to put my ...
7
votes
1answer
168 views

Position of year date in moderntimeline

In this example, the 2012 seems to be further away from the blue bar than the 2010 is. Can the 2012 be moved toward the bar, so that the 2012 and the 2010 are equidistant ...
3
votes
1answer
72 views

Why does `align` break `tikz` node placement?

I want to put some marks in the document and place desciptions of these marks in the margin area, one below another. It works fine, however if I place a mark inside align environment corresponding ...
1
vote
1answer
78 views

How to prevent a series of tikz nodes from overlapping?

I have the following MWE for the note command I'm working on. \documentclass{article} \usepackage[a5paper,marginparwidth=15mm]{geometry} \usepackage{tikzpagenodes} \usetikzlibrary{calc} ...
5
votes
1answer
184 views

An overview of node positioning?

I've been making tikz pictures for a while now, and there seem to be a number of different ways to position nodes within a diagram. Absolute coordinates, east/west, left/right, the $ $ things, minimum ...
2
votes
1answer
1k views

TikZ: Label nodes on to path

I use the to syntax to set a node in the horizontal middle between to other nodes. My problem is, that a label does not fit well at this middle node. Compare the label of node 2 and node 3 in the ...
6
votes
1answer
4k views

Customize legend position in PGFplots axis environment

I am trying to customize the position of the legend in the axis environment of PGFplots. A simple way to do this is by using something like legend pos=south west|south east|north west|north east ...
7
votes
2answers
136 views

How to get a reasonable coordinate system when combining pdfpages and TikZ?

I have been trying to add content to a (proprietary) PDF with LaTeX by using pdfpages to inlude the original pages and draw on them using TikZ. This is the code I have been using: ...
2
votes
1answer
154 views

How do I make my path node follow the path from a certain position?

I am trying to make a diagram with a curved arrow and I want its node to follow the arrow from about the "near end" point. I have been googling for hours now and I can't find the way to do it. I've ...
8
votes
2answers
150 views

Included graphics with text: Alignment

tl;dr How do I align text to text within \included graphics? Let's look at the following logo, which I want to include (in a vector format, e.g. pdf or svg). The blue/red lines are my annotations. ...
3
votes
2answers
128 views

How can I make random placed edges between two graph partitions?

I have to nodes (V1) and (V2) (representing sets of graph vertices) and I want to draw, say, 10 edges(lines) between them. I don't want to hardcode random locations so I did: \begin{pgfonlayer}{bg} % ...
4
votes
3answers
184 views

Vertically and horizontally centering a matrix bigger than margins

This question is a follow-up on a previous question: positioning of a matrix bigger than margins That question dealt with positioning a pgf matrix that exceeded the horizontal margins of the page ...
3
votes
1answer
338 views

Tikz automaton placed too far to the right

So I'm having a bit of trouble drawing an automaton that I've created. I've been looking around for a while to no real avail, so I decided to just ask the question myself: when I make an automaton ...
8
votes
2answers
784 views

TikZ: position text along path

I'm trying to position a piece of text at a certain position along a multi-part path. Here's what I have been trying so far. \documentclass[tikz]{standalone} \usepackage{tikz} ...
7
votes
2answers
212 views

TikZ: using the pos = x in a node

Why doesn't the pos = x option work when the node is used in the plot command? \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw plot[domain = 0:2, samples = 100] ({\x}, ...
6
votes
2answers
202 views

positioning of a matrix bigger than margins

A document I'm working on has a table that was complicated enough for me to try and make it using a pgf matrix of nodes. However, the resulting matrix ended up being slightly too big for the page. ...
2
votes
1answer
925 views

Tikz Edge Label Positioning mid anchor

I would like to place labels below edges such that the letters don't wobble. I can place them on the edge using the mid anchor, but when I use below some other anchor is used to calculate the ...
3
votes
0answers
199 views

Is it possible to use nodes as anchors?

I'm trying to recreate a rather complicated reaction scheme with chemfig and TikZ. For that, I'd like to position several amino acid side chains at specific positions. What I'd like to do is to use ...