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)

0
votes
0answers
16 views

Draw curley bracket in Latex

How to draw a curly brack around the nodes. Like I have given in the image. \begin{center} \begin{tikzpicture}[shorten <=1cm,shorten >=1cm,-latex, align=center, node distance=1cm and 10cm,on ...
4
votes
1answer
22 views

TikZ: how to specify the location of a matrix?

I would like to draw two matrices side by side, and use an arrow to connect them. Does anyone know how to specify the exact location of these two matrices?
3
votes
1answer
22 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
36 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= ...
3
votes
1answer
33 views

Decorate a TikZ node with black corners

I want to decorate a rectangular node with little black boxes in the corners: So far, I was able to put a black box in the lower left corner using the decorations.markings TikZ library: \tikzset{ ...
1
vote
1answer
21 views

TikZ - Improving alignment across rows - Cont'd

The following question is a follow-up to that post. Assume five nodes, arranged in three rows. I would like to arrange these nodes in the following pattern: |----Node A----| |Node B| |Node C||Node ...
0
votes
1answer
26 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
7 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
18 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 ...
6
votes
2answers
71 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 ...
1
vote
2answers
33 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
66 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} ...
4
votes
2answers
334 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 ...
2
votes
1answer
26 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 ...
2
votes
2answers
97 views

Draw open squares in a row with numbers inside

I am trying to draw n open squares with numbers inside. The objective to make notes on combinatorics with n balls and n boxes types of problems. I could draw circles using help from this site. I used ...
6
votes
0answers
47 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 ...
4
votes
1answer
47 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 ...
3
votes
1answer
20 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 ...
7
votes
1answer
61 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 ...
1
vote
0answers
47 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
42 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 ...
2
votes
1answer
44 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 ...
9
votes
2answers
162 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
1answer
81 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 ...
5
votes
4answers
629 views

How to draw an ellipse, with the foci, center, and axes labeled?

How do I plot this modified GeoGebra picture using LaTeX code?
2
votes
0answers
30 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
39 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
1answer
73 views

scale bar figure - showing scale with citations

I am attempting to make figures similar to this: with latex. I would like for the citations to work in order to match the observed data from where it came. Does anyone know of a good package ...
0
votes
0answers
16 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} ...
5
votes
2answers
1k views

Transitions in Petri nets

I have to crate a petri net for an homework assignment in university. In Tikz manual, I found a very useful tutorial on creating petri nets using Tikz/PGF. However, the example uses a different style ...
3
votes
0answers
27 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 ...
3
votes
1answer
297 views

Can't scale x-Axis to textwidth

I want to plot some measured values. The y-axis contains the the voltage and the x-axis time stamps. I used matlab2tikz to create this plot: If I want to plot the graph, the x-axis is not scaled to ...
0
votes
0answers
35 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 ...
5
votes
1answer
46 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
43 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
4answers
112 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: ...
1
vote
1answer
46 views

Automatic node placement without overlapping

I am trying to generate an ER diagram with automatic positioning of the nodes. This code has got a nice output, but I have to manage manually the position of the nodes. I have tried to replace "left ...
4
votes
1answer
58 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} ...
2
votes
1answer
51 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 ...
20
votes
3answers
555 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 ...
6
votes
2answers
491 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.
1
vote
1answer
28 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 ...
2
votes
2answers
91 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 ...
2
votes
1answer
43 views

Change the font in tikz

Can you help me to compile this pie diagram with this document class. main.tex \documentclass[]{cv-style} %------------------------------------------------------------------------------------- % ...
3
votes
1answer
38 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}} ...
5
votes
0answers
50 views

Tikz curve not consistent with different computers [on hold]

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 ...
5
votes
2answers
177 views

This tikz-diagram has crooked arrows

Consider the diagram arrows in the following example: \documentclass[a4paper,10pt,psamsfonts]{amsart} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
3
votes
1answer
32 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 ...
4
votes
1answer
45 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 ...
2
votes
1answer
80 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 ...