TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

learn more… | top users | synonyms (3)

2
votes
0answers
168 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] ...
2
votes
0answers
136 views

Tikz library files at given path

I am using tikz library files from this question. I use the code: \usetikzlibrary{paths.ortho} and put files tikzlibrarypaths.ortho.code.tex and tikzlibrarypaths.ortho.tex in the root folder. I ...
2
votes
0answers
128 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
2
votes
0answers
129 views

Why can't I get a conditional command to work in a macro invoked within a tikzpicture?

I wanted to create a macro that can be invoked in the middle of a tikz path and behave differently, conditional on one of the arguments. Here is an example document: \documentclass[a4paper]{amsart} ...
2
votes
0answers
155 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
2
votes
0answers
72 views

Has anyone combined marginfix and tikzmark yet?

I am working on a big book project, and up until today I refrained from using glue. But now I had to, and, lo and behold, suddenly my margin notes' position is broken :( The reason is that marginfix ...
2
votes
0answers
122 views

Tikzpicture: Data from File

I want to create a number of trees from a series of input files. What syntax would the file need to be in to create the following tree? This is what I need done, but from a file and with loops ...
2
votes
0answers
89 views

Producing odt from tikzpicture?

How can I produce an odt file from a tex source which includes tikzpicture ? I tried mk4ht oolatex test.tex but I only be able to produce an empty odt file from the following code : ...
2
votes
0answers
73 views

different coordinate frames for anchors and backgroundpath in node shapes?

I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the ...
2
votes
0answers
90 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...
2
votes
0answers
82 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
2
votes
0answers
1k views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). ...
2
votes
0answers
181 views

tikz-3dplot: Drawing an arc with the let syntax in 3d

How can I use the let syntax to draw an arc when using tikz-3dplot? At the present, the arc is drawn but doesn't look right. \documentclass[tikz, convert = false]{standalone} ...
2
votes
0answers
233 views

generate circular path with tikz and include empty node

In the following example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[every node/.style={inner sep=1pt}] \node (1) ...
2
votes
0answers
119 views

Changing the font size of nodes inside a savebox causes TeX to exceed stack size

I'd like to have a tikzpicture (actually several) appear inside a node of another tikzpicture. I already know that I can use savebox for that, the problem is: When I change the fontsize of a node ...
2
votes
0answers
243 views

matlab2tikz/pgfplots adding colorbar afterwards

I am currently using both matlab2tikz and pgfplots with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning ...
2
votes
0answers
162 views

Drawing recursive randomized structures with TikZ

After I learned earlier today how to draw nice randomized trees (Draw randomized tree in TikZ) , I discovered that I'm not quite satisfied with how the results look like - because the structure I want ...
2
votes
0answers
84 views

Customizing pgfuml (distances)

I'm using pgfuml to create some sequence diagrams. As you can already see in the examples on the pgf-uml Homepage, diagramms get very crammed if you insert many descriptions. Text and arrows overlap ...
2
votes
0answers
132 views

TikZ shape definition from TikZ rather than PGF

Is there a way to define a TikZ shape using TikZ code rather than PGF? I'd like to have a gear shape (and some others) that I can use as a node and add text to it, have arrows go in and out of it, ...
2
votes
0answers
263 views

TikZ: constructing hyperbolic trajectories and angled circles on a sphere

I am trying to construct this sphere above. What I have so far is below: \documentclass[tikz, convert = false]{standalone} \newcommand\pgfmathsinandcos[3]{% ...
2
votes
0answers
373 views

Adding a background image with tikz poster

When using the tikzposter package, is it possible to add a background image? I currently have a colour gradient, and would preferably like to keep this intact, and superpose the image on top of that. ...
2
votes
0answers
339 views

How to fit dot graph with dot2tex(i)

Currently I used the dot -Tpng to include graphs in my LaTeX document. However it produced sometimes suboptimal graphics I wanted to look into dot2tex(i). The problem I encountered is that previously ...
2
votes
0answers
268 views

How to find intersections between line and rectangle with rounded corners

I'm trying to display a line "under" a rectangle. For this I tried using the intersections package, but somehow I the line doesn't stop: \documentclass[a4paper]{article} \usepackage{tikz} ...
2
votes
0answers
129 views

Creating an invitation printable matrix

I'd like to create an 'invitation matrix' which will be printed on both sides of A2 or A3 paper and looks like this: |front_11|front_12|...|front_1n| |back_11|back_12|...|back_1n| ...
1
vote
0answers
20 views

Looking for a special paper style for letters

I am looking for a special paper style. It should be a paper with a good looking background, so that I can write letters on it. Ideally, it should be something like the attached image. Some key ...
1
vote
0answers
34 views

Can I make an alias for a node argument in TikZ

When I am drawing illustrations with TikZ, the most common mistake I make is incorrectly writing the relative position of a node. I would for example write "left above" in stead of "above left". It is ...
1
vote
0answers
82 views

Tikz code not working in LyX but working in pure Tex

I'm trying to add a tikz picture in my LyX document. To do this, I organize the tikz tex code in Texmaker (a friend sent me a tikz code model in a .tex file) and then I copy it to a ERT in LyX (making ...
1
vote
0answers
69 views

Electric network one-line diagrams

I'm looking for a way of drawing one line diagrams of power distribution grids. So far I've come across CircuiTikZ, but this package seems to be oriented to a different kind of circuit diagram and ...
1
vote
0answers
70 views

Semi-transparent Tikz nodes

Trying to reproduce the semi-transparent fill from the answer to my previous question http://tex.stackexchange.com/a/188453/37570 I cannot get it to work. Tried adding backgrounds library inside ifpdf ...
1
vote
0answers
28 views

\draw via \pgfplotstableforeachcolumnelement fails outside {axis} environment, but works inside?

Consider this MWE: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotstableread[col sep=space,row sep=newline,header=true]{ ts val 0.0 0.0 1.0 ...
1
vote
0answers
85 views

Flowchart arrows Using TikZ

I would like to write one continuous tex file for my entire flowchart, and let it automatically place itself on the right pages. Is there a way to do that? Currently I have to write a separate tex ...
1
vote
0answers
55 views

TikZ - How can I align a node by a line which is a path?

I'd like to horizontally align a rectangle with several nodes in it with a rectangle with several nodes. The rectangles are above one another. When I boil down the code to a minimal example, the ...
1
vote
0answers
94 views

Embedded axis Pgfplots

So I need to display data as follows: every day for a month I have a set of values obtained in different hours. I want the axis to contain the date but between a date an another I want to have the ...
1
vote
0answers
47 views

how to draw a unfinished data point bar in pgfplots?

I want to present some experiment comparisons. One of the candidate (SHJ) takes too long to run. Could anyone give me some suggestions on how to present such data point in a bar chart? Thanks in ...
1
vote
0answers
85 views

How to include a .gif inside TikZ mindmap?

I know that TikZ provides a mindmapping library. I am wondering if it is possible to insert a *.gif picture instead of writing text inside each child (circle). Any help will be appreciated in ...
1
vote
0answers
73 views

Controlling the orientation of a Tikz decoration markings arrow?

I thought that my woes in Decoration marking arrow style ignored in custom node shape? were temporarily solved, but alas: if I do a dimension line (A) -- (B), then all is fine; but if I do (B) -- (A), ...
1
vote
0answers
78 views

Archimedean spiral in TikZ?

I am fairly new to LaTeX and have not actually worked with TikZ yet. Is ist possible to draw an Archimedean spiral starting at the coordinate origin? I have read the TikZ description but did not find ...
1
vote
0answers
72 views

Special decoration for TikZ pin feature

I try to achieve the curvy pin style I sketched below. It would help to distinguish pin lines from grid and other lines in the diagram. How can I realize a decoration that automatically draws such ...
1
vote
0answers
50 views

Multiple data columns in tikzpicture

Suppose we got a .txt data file myplot.txt from MATLAB, and it contains in total 51 columns. I want to plot these data in pgfplots in the following way. The first column of myplot.txt is always for ...
1
vote
0answers
66 views

why different results in (tikz graph) output while compiling same code?

I am trying to replicate the first basic example on graphs in the Tikz-Pgfplots manual (pg no. 258) However, try to compile the two MWE's below one by one. In one, the pdf fails to compile (with 30 ...
1
vote
0answers
53 views

pgfplots: Explicitly Setting 'Line and Mark Intersection' In Plot

Is there a way to specify where a line intersects a 'mark' on a pgfplot? MWE: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{figure}\begin{tikzpicture} ...
1
vote
0answers
78 views

Combining beamer, tikz, externalize and standalone

I've read a bunch of questions and answers on these topics as well as the documentation of the external library for tikz. I suspect I fundamentally misunderstand what I'm doing. I have a mindmap ...
1
vote
0answers
79 views

How to use variables in draw?

I want to read in a .csv file and draw each line as a point (x,y) with his color (r,g,b). I managed to set the points and the drawing part is fine except for the color. How can I use my variables out ...
1
vote
0answers
94 views

Externalize TikZ with TeXstudio and MikTeX

I have the same problem as written here before, but the externalization doesn't work. I always get the following message: tikz: Sorry, the system call 'pdflatex -halt-on-error -interact I try to ...
1
vote
0answers
142 views

externalize pfgplots fails with shell escape enabled (TexLive-2013 Mac)

I have the following Problem: I am using matlab2tikz to get my Matlab plots into latex. I have very large time series, that i already cut down using resampling. Nevertheless my I need a lot more time ...
1
vote
0answers
44 views

Large number of plots from external csv file

I'm looking to draw a large number of lines/datasets (around 150~200, 50 points each) on a single window using pgfplot. The data is imported from a csv file created with matlab. I've seen several ...
1
vote
0answers
33 views

Problem with using tikzpicture command in latex zooming the portion

I am using windows MiKTeX compiler to run my latex files. I am trying to zoom and display the zoomed portion as fig:b, and the original image as fig:a. I am getting an error below: ! Package pgfkeys ...
1
vote
0answers
47 views

Why these thin lines on a PGFPlot doesn't appear on some PDF readers?

I remember reading about PDF reader issues on this StackExchange, but I cannot find the links. The following TikZ picture has some thin lines in light green that doesn't show up on some readers (e.g. ...
1
vote
0answers
70 views

crossing out whole slide does not work

I am trying to get the same result as in: crossing out whole slide with LaTeX beamer Crossing out the whole slide. I am just copying the simple example there: \documentclass{beamer} ...
1
vote
0answers
56 views

TikZ coordinate transformation resulting in miscalculated node position

Why does the coordinate transformation in the following example result in a miscalculated position for E? \documentclass[border=4pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} ...