5
votes
2answers
170 views

Tikz coordinate calculation

Consider the followinting tikz picture. I need to place the segment re-D so that its measure will be 8/9ths the measure of the segment ut-C. Now I just placed it at a random distance of 8/9 between ut ...
1
vote
1answer
40 views

Problem of positioning and size of the additional text on tikz/gnuplot figures

I want to at my legend using tikz environment on top of my figures generated with gnuplot. I am happy with the result when I comment the part \node[anchor=center, text width=0.39cm, xshift=0cm, ...
3
votes
2answers
119 views

adding a coloured-box in flowchart

I am trying to make a flowchart in Latex, I want to put some of steps in a coloured box with a label, e.g. Deterministic Annealing, I added scope part but it doesn't compile with the new change. ...
3
votes
1answer
66 views

Multipart graph with linear and circular node patterns

I'm trying to draw a graph (PDF output of code below attached) that's a linear process, with a potentially circular element in it. As you may see in the upper picture, the the B,C,D elements aren't ...
0
votes
0answers
38 views

I have 3 data series and 2 different y-axis. How can I add, outside the graph, the legend for each of three series?

Does someone know how can i change the position of my legend to right-side of my graph? I try many things but i can't. Please give me some help! Here is my code! \resizebox{\textwidth}{!}{ ...
3
votes
2answers
126 views

Tikz-Connecting nodes with multiple lines

I am trying to reproduce the following image I made in "Power point". Although, there is no difficulty in designing the boxes, I find it rather hard to properly position the red and black lines. ...
2
votes
1answer
62 views

accuratelly place a node above and left of another node

I am trying to draw a box which is defined as a node, next to another node. My code is \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ pipe/.style = { ...
1
vote
1answer
61 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 ...
4
votes
2answers
141 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 ...
2
votes
2answers
89 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} ...
3
votes
1answer
92 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 ...
5
votes
1answer
64 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: ...
0
votes
0answers
54 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 ...
3
votes
1answer
65 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] ...
4
votes
1answer
109 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 ...
1
vote
1answer
53 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 ...
3
votes
1answer
153 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 ...
2
votes
0answers
58 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} ...
3
votes
1answer
98 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 ...
1
vote
0answers
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] ...
6
votes
3answers
174 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} ...
1
vote
1answer
60 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 ...
2
votes
0answers
52 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?
3
votes
2answers
92 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 ...
2
votes
2answers
241 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} ...
7
votes
1answer
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} ...
6
votes
2answers
176 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 ...
3
votes
0answers
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{ ...
3
votes
1answer
134 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 ...
4
votes
3answers
120 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! ...
5
votes
1answer
58 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} ...
1
vote
1answer
30 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 ...
7
votes
4answers
267 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 ...
6
votes
1answer
185 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 ...
7
votes
2answers
318 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
71 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
311 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
139 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
288 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
109 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
161 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
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, ...
5
votes
3answers
684 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
807 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
109 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, ...
0
votes
0answers
27 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 ...
7
votes
3answers
690 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
262 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
242 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
228 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 ...