# Tagged Questions

51 views

### How can I specify a minimum length for my graph's edges?

I've just started to use the (new?) graphdrawing library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's ...
118 views

### Move a tikz node somewhat below in relative positioning

I have the following code (stripped down from a much larger one). (I understand that there are numerous questions (and answers including this excellent one) on relative positioning of nodes, but they ...
75 views

### Relative node positioning with calc library

Hi I'm trying to place same nodes relative to each other. I'm trying to place a node in the middle between two other nodes, but also half a cm to the right. \usepackage{tikz} \usetikzlibrary{calc} ...
69 views

### How to position TikZ nodes

How can I shift the system node right of control1 but vertically centered between control1 and control2? \tikzstyle{controller} = [draw, fill=blue!20, rectangle, minimum height=3em, minimum ...
56 views

### How label position and color can be modified in tikzpicture in posters?

I am working on a poster with fancytikzposter package, I cutted out the problematic part, it can be downloaded from here. I created a tikzpicture inside the poster and some problems occured: ...
47 views

### Positioning tikz nodes to the top

I have four circles in a beamer frame, \begin{tikzpicture}[% common options for the circles: ball/.style = {circle, draw, align=center, anchor=north, inner sep=0}] \node<1>[ball,text ...
63 views

### Is there a transformation in TikZ that transforms the positioning of nodes, but not the nodes itself?

I'm drawing some category theory diagrams like these: \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\dual}{\draw (-2,-1) node[below] {$X$} arc (180:0:2cm) node[below] ...
98 views

### {Tikz}{Tree} How to reduce leaves placement

Hello (and sorry for bad English...) I am working on a Tex document to produce algorithmic diagrams : it is quite good for me except that I would like to be able to reduce space used by leaves (it ...
43 views

### after end axis messes up pgfplots axis position

Latex and Tikz are going to get the life out of me... I saw Need to do some changes to pgfplots axis #39099, and that example was working fine for me; so I modified it a bit, and came up with the ...
135 views

### TikZ - flexible arrow positioning

The following MWE is translating to the desired tikz picture, but the code is not very useful for adjustments. Especially the positioning of some arrows is done very poorly by defining coordinates ...
43 views

### Location and size of pgf plot axis in a tikzpicture - with tikz positioning library?

This could be a second part to Positioning pgfplots axis in tikzpicture , I guess ; consider the following MWE: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{positioning} ...
91 views

### change position of TikZ node halfway

I am trying to move the node "H" to one of the two positions shown in red below: I am not sure how to position it at 'intermediate' positions such as I am suggesting. How could this be done? Is ...
24 views

### Draw node below two others nodes from the first node west to the second node east [duplicate]

I have this MWE : \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,backgrounds} \begin{tikzpicture} \node[draw, rectangle] ...
151 views

### Why is this Tikz scope coordinate system skewed?

I'm trying to create a simple figure in which the tick labels will not line up properly, because the coordinate system is skewed. Here is the MWE code: \documentclass[a4paper,twocolumn]{article} ...
56 views

### TikZ scalebox without translation

Below are two TikZ pictures. In the second one, I've added a \scalebox to scale the nodes ABC and the distance between them. I want the A to remain in the same position, but unfortunately the ...
50 views

### How to position a node in the corner of the (current) TikZ picture?

I'm drawing a flowchart as a standalone TikZ picture and want to position the legend in the lower right corner of the picture. How can I reference this position or find its coordinates?
86 views

### Tikz: positioning library breaks path picture bounding box?

I try to create and order text boxes with tikz-nodes. The nodes are ordered so far using the tikz positioning library. Additionally, I try to have numbers on the background of the nodes by using ...
229 views

### multiple relative positioning in tikz

How to align a node vertical align to one node, and horizontal align to another one? For example, given below code \documentclass{standalone} \usepackage{pgf} \usepackage{tikz} \usepackage{makecell} ...
122 views

### How to manage rotated rectangles positioning

How to draw this two rectangles in this picture : I tried like this : \documentclass[border=10pt]{standalone} %\usepackage[margin=1cm]{geometry} \usepackage{tikz,xcolor} ...
165 views

### How to place text at a particular position outside the plot in tikz

I would like to write \gamma on top of my legend in the plot (shown in Image) generated by using the code shown below. I generally use \node at (axis cs: co-ordinate x,co-ordinate y) {text} of the ...
43 views

### Difference between “below of=” and “below=of” in tikz? [duplicate]

I was trying to place a node relative to another node with the following code: \documentclass[margin=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ ...
128 views

### tikz incorrect node placement : gap between nodes

I am using a following code to produce an image as shown below. Now I set the node distance to 0 and draw=none in nodes to remove the border. comeback, comein nodes have size of 2.5cm, while handle ...
116 views

### TikZ figure in parts-environment

I'd like to have a TikZ figure in a parts-environment, but the figure appears above part (a) instead of below. How can I get the picture to follow the (a)? Thanks for your help! ...
57 views

### Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...
29 views

### \fill left of a node using the positioning library

How can I position a \fill relative to a node? I would position a node in the following way, using the positioning library: \node (mynode) at (2,4) {text}; \node [left=of mynode] {o}; But if I try ...
250 views

### How to label the curve of a function at any point along it in tikz?

In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error ...
175 views

### Animation: How to move the position of an equation in a continuous manner?

I want to make equations (or words) to continuously move in a page for a beamer talk. A simple example would be we have "A" on the left margin and "B" on the right margin and then "A" moves towards ...
270 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} ...
65 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 ...
307 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, ...
123 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 ...
234 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 ...
107 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. ...
144 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 ...
37 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, ...
588 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 ...
668 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. ...
90 views

### TikZ node positioning on edge parameter/label [closed]

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, ...
26 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 ...
586 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 ...
250 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 ...
183 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 ...
213 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 ...
86 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} ...
537 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. ...
349 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 ...
574 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 ...
296 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: ...