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
1answer
73 views

Latex matrix tikz

I would like to created a matrix as the one in the picture. I read on another post that it is possible to do with tikz. My problem is that I want also to write on the left A= the matrix, with A= ...
4
votes
1answer
42 views

Problem with pgfkeys

Perhaps a stupid mistake but the results are different, why ? I want the nodes on a horizontal line. If I comment \pgfqkeys{/LX}{#1} then the result is fine (the nodes are on horizontal line) ...
1
vote
1answer
35 views

how can i draw a torus specifying axis and vectors on it?

i tried several ways drawing a torus in a special direction with my desired features on it but couldn't reach my goal. how can i draw a torus showing 3 axes and desired vectors and a theta on it?
1
vote
0answers
22 views

Drawing multiple box plots from a file

I've got data in the following format n lw lq m uq uw 50 200 209 237 327 569 100 376 379 386 390 391 150 ... ... Where lw = lower whisker, lq = lower quartile, etc. I want to plot each box against ...
1
vote
1answer
27 views

Force wide Tikz figure to move left

I want to force a tikz (wide) figure to go to the left, without changing anything (I don't want to resize or reshape it), I just want to use the wasted left part of the page. I already tried ...
1
vote
2answers
38 views

TikZ - Improving alignment across rows

Assume four nodes, arranged in two rows, with text inside each of them. Further assume that I would like to arrange these nodes in the following pattern: |----Node A----| |Node B| |Node C||Node D| ...
1
vote
2answers
81 views

Labelling Tikz Directed Edges

I am struggling to label my edges in my Tikz directed graph. I have tried using the tikz library quotes in my preamble by no success. I currently have the code \begin{tikzpicture} ...
2
votes
1answer
34 views

Divide by zero error when plotting - nothing proposed elsewhere works

I want to draw the function (sin(2x) + sin(3x))/(2sin(x)) with the command \draw[blue,domain=-8.5:8.5,smooth, variable=\x, blue] plot ({\x},{(sin(2 * \x) + sin(3 *\x) )/ (2*sin(\x))}); but somehow ...
6
votes
2answers
104 views

Positioning tikz in beamer so that (0,0) is in same place on different slides

I have a presentation in beamer with several slides showing a graph with a coordinate system. I want the graph to be (more or less) centered on the slide, with the origin of the coordinate system in ...
4
votes
2answers
361 views

Circles inside a rectangle

I need to create a figure like this: And my poor code is the following. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[rounded corners=15pt] (10,0) rectangle ...
4
votes
1answer
50 views

How to fix the position of (0, 0) to (current page.south west) for every tikz picture?

I need to draw severals tikz picture of varying size. Each picture is on a separate page. The coordinate system should be fixed, though. Whenever I do \node at (0, 0) {hello}; 'hello' should be on ...
6
votes
0answers
55 views

Why does the pic option get passed through to the entire object?

Description This question follows from the question Why is the decoration marker off center? where we found what was causing the problem, but not why it was being caused in the first place. It seems ...
3
votes
1answer
28 views

pgfplots issue: solid and filled markers with dashed lines

I'm trying to create a plot with pgfplots which has a solid marker filled in with a specified color a dashed line. The dashed line makes the marker dashed as well, so I put "solid" as an option ...
6
votes
2answers
166 views

Drawing percolation configuration with TikZ

I am trying to draw a site/bond percolation configuration. For the site percolation, which seem the easier one to draw, I was trying this probably too naive code: \documentclass{standalone} ...
2
votes
1answer
49 views

tikz overlay changes width of resizebox

I have a beamer frame with a large matrix. I want to add some annotations to it, for which I use tikz overlays. However, the matrix (I suppose that it is the resizebox, actually) changes its width ...
0
votes
1answer
94 views

A Good way to draw technical Diagrams

I'm currently writing a research paper. For that I need to create some diagrams like the one given below(it is taken from an existing paper). It's not clear so I wanted to make my own figure. I tried ...
2
votes
1answer
51 views

Expansion problem

In this example, I want to create nodes generically named (for the user) \N{a}, \N{b} ... in each macro but named differently (for tikz) to avoid confusion and overwriting when calling macro ...
7
votes
1answer
63 views

Why is the decoration marker off center?

Description I am making a graph and am using a decoration marker to make square nodes between the circular ones. That had been working fine until I wanted to add a decoration between T_t and I_t ...
2
votes
0answers
50 views

The error of ' ! I can't find file `tikzlibraryarrows.meta.code.tex'.'

I want to draw some 3D cubes. I found a useful script on how to draw parallelepiped and cube with latex?. The part of code is as follows, \documentclass[border=5pt, multi, tikz]{standalone} ...
3
votes
1answer
59 views

Figure correctly compiled but TikzEdt gives an error

I'm using TikzEdt (version 0.2.3.0). I find it convenient since it produces .tikz files directly includable in the main document by an \input command. Everything works fine but, when I compile the ...
0
votes
0answers
20 views

Colorbrewer with legend outside graph and which Colorbrewer?

I am using Colorbrewer with PGFplots and I want the legend to be outside of the graph. The LaTeX environment is Texlive 2014. Here is a MWE: \documentclass{article} \usepackage{pgfplots} ...
1
vote
0answers
80 views

venn diagram in latex [closed]

Can you please help me to draw a venn diagram like the pic, below (and color if possible): Thank you.
3
votes
0answers
39 views

Tikz image with remember picture combined with custom page numbering

I have a problem combining TIKZ-pictures when using custom pagenumbers. I modify my page numbers as shown in the upmost answer here. When drawing a simple TIKZ-image, I recieve the error ! Illegal ...
0
votes
0answers
42 views

Child node placement TiKZ Mindmap

The first child concept (Lily Briscoe) is placed at the bottom left but should appear at the top. Rest of children should follow in a clockwise direction. Is there an easy way to rotate children ...
1
vote
1answer
46 views

How to measure the height of a tikz picture?

I have several graphics (produced by TikZ) in my document. They all have different sizes. How do I get the height of each graphic to do some nasty calculations? Edit I want to access the picture ...
4
votes
1answer
65 views

Bind the text to a curve

Can you help me to figure it out how to curve the text inside this diagram : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document} \vspace{0.5\parskip} ...
5
votes
1answer
69 views

tikz 3d graph with circular domain

I have got a pretty simple function to make a 3D graph of. The function is defined as: Plotting this was not that much of a problem with the follwing code: \documentclass[border=10pt]{standalone} ...
1
vote
1answer
30 views

TikZ: Specify the location of two 3D plots drawn in different axis environments

I want to plot two 3D functions using \addplot3. Both plots are defined within two separated axis environments (plotting them within the same axis produced worse results). I want to change the ...
23
votes
3answers
645 views

mysterious margins drawing TikZ arcs

I have found how to draw an arc with a specific node as center. So I drew circles made of 1 to 4 sectors. However, I get additional margin (right and bottom) when I draw with 3 sectors, even if codes ...
2
votes
1answer
64 views

How to combine these tree diagrams in TikZ?

So I just made these two tree diagrams, and I would like to combine both. That is, I would like to replace the tree diagram of Beyond CMOS in the first figure, with the more detailed Beyond CMOS ...
5
votes
4answers
151 views

Graph and/or Chart

Any advice on how to draw this generic graph? I said "generic" because is not based on any data, so apparently there are no references nor coordinates. This is as far as I can go: ...
2
votes
1answer
48 views

Change the font in tikz

Can you help me to compile this pie diagram with this document class. main.tex \documentclass[]{cv-style} %------------------------------------------------------------------------------------- % ...
5
votes
0answers
52 views

Tikz curve not consistent with different computers [closed]

I am trying to draw a curve in pgf/tikz using \draw .. controls. When I compile my .tex file at home, I get the graph on the left, which is the right one. However, when I compile my .tex on my office ...
3
votes
1answer
42 views

Hyperlinks in rotated TikZ nodes?

I seem to have a problem with hyperreflinks in rotated TikZ nodes: This code \documentclass{article} \usepackage{hyperref} \usepackage{tikz} \begin{document} \section{Testsection\label{sec:test}} ...
4
votes
1answer
50 views

Tikz Nodes do not take absolute coordinate values

this is my first post so please correct me if I am doing something wrong. I wish to draw a tikzpicture with nodes and use here absolute coordinates. I don't know why, but somehow my coordinates seem ...
3
votes
1answer
41 views

Tikz: change position of text in a subgraph

I'm trying to draw subgraphs and DAGs with the new Tikz feature, however I'm running into an issue to move the text of the subgraph to somewhere where it does not overlap. Ideally, in the example ...
2
votes
1answer
87 views

Color correspondance in tikz and pyplot

I draw a graph with pyplot, which I save in pdf format. I then want to draw a line with the same color in tikz, however colors mismatch. I get this result: I create my graph with: #!/usr/bin/env ...
2
votes
2answers
94 views

Ignoring the space occupied by “a prime” in a TikZ diagram

I have a diagram of two right triangles - one inscribed in another. I have y and y' indicating the length of the leg opposite one of the acute angles. (The y is for the smaller triangle.) I also have ...
6
votes
1answer
46 views

PGFPlots axis label not moving

Could some body please explain why I can't move the y axis label to the end of the axis like the x. Using the following I get the below. \documentclass[a4paper]{article} \usepackage{pgfplots} ...
6
votes
2answers
512 views

How to create or where I can find a symbol of a fly?

I want to draw the following figure, a chessboard with a fly in the house on the left top. But I can't to dry a fly.
3
votes
1answer
124 views

Filling area of graph in TikZ

I have worked out how to make my graphs, and get them plotted. Now I am having trouble figuring out how to mark the triangle in the middle (right of the dashed line, between the two red lines). ...
4
votes
0answers
66 views

What is the preferred mechanism for reuse/encapsulation in TikZ?

I'm just starting out in TikZ, and I'm noticing a lot of friction around the issues of encapsulation and reuse, so I figure I must be missing some best practices. I want to create a multi-panel figure ...
4
votes
1answer
61 views

Can I turn a TikZ path into a hyperlink?

I'm writing a presentation for the Shannon Switching Game. In this game, players take turns picking edges from a graph. For fun, I decided to try to include an example game in the presentation. The ...
9
votes
2answers
173 views

How to save and restore the nodes between tikzpictures?

My English is not good enough so I beg you to excuse me if the question is long The next code is not very interesting but it may illustrate correctly my problem. I have a lot of macros and I need ...
0
votes
0answers
15 views

Included tikz picture doesn't render [duplicate]

I'm trying to include a tikz diagram, with its code in tikz/example.tikz to a tex document in the following way: \begin{figure} \include{tikz/example.tikz} \caption{Example} \label{fig:example} ...
1
vote
0answers
38 views

PGPlots xtick label from a table

I am trying to load data from a table which looks like below and use the 'label' column for xticklabels. idx,label,value 1,20040101_20050108.rotation.summary, 19.470949839091155 ...
3
votes
1answer
81 views

Vertex labelling in TikZ

I want to be able to label the vertices of a graph arbitrarily, i.e., not just by letters or numbers, but by whole formulas. For example, I can't be bothered to rename the vertices in the text, so I ...
5
votes
2answers
137 views

Tikz: failure to fill

I've just gotten into the tikz package, and am using tikzpicture to do some work with graphs and complexes on them. I want to be able to fill in certain areas of the graphs. I've found what I want, ...
-1
votes
0answers
37 views

How to create the diagram of an atom? [duplicate]

How can I create the diagram of an atom like the one in the picture. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \end{tikzpicture} \end{document}
3
votes
1answer
29 views

tikz - Multi-line text size

I am using this command: \newcommand{\orgnode}[2]{\node[shape=rectangle,draw=black,align=center] at (#2) {\Large #1};} to make basic ORG chart nodes. I want the text size Large. This works with one ...