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)

4
votes
0answers
49 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 ...
3
votes
1answer
92 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). ...
8
votes
1answer
117 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 ...
4
votes
1answer
211 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
0answers
128 views

How can I do this by Latex (Tikz or PSTricks)

I want to draw the following diagram in LaTeX. How can I do this?
0
votes
0answers
62 views

Creating special sequence of images in one figure

I want to create a scheme like that attached. It contains a lot of images and texts. It is about a sequence of procedures. I wish you can help me to do like this complicated figure.
12
votes
4answers
3k views

How to draw nodes with equal sizes, regardless label value/length?

I would like to make 12 nodes with same sized circles. Currently, the radius of a circle for single digit number and two digit numbers are different. Let r1 be the radius for single digit numbers. ...
4
votes
1answer
54 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 ...
4
votes
1answer
505 views

Generating Gantt Charts for process scheduling

I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need ...
1
vote
0answers
30 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 ...
0
votes
0answers
13 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
64 views

Animation with sinusoidally moving arrows

I am trying to create an animation using animateinline and it's my first. This is the frame layout: http://i67.tinypic.com/bfj7s2.jpg Below is my code so far. I can't figure out how to get the sine ...
2
votes
1answer
79 views

How to flip certain pixels of a QR code?

I would like to modify the data (black square or white square) in a QR code so that to display any graphic feature of my own choice in the code at the expense of sacrificing a certain amount of its ...
3
votes
1answer
70 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 ...
3
votes
3answers
77 views

Reconstructing the following bias-variance diagram

I would appreciate if anyone that is more familiar with the tikz-package could replicate the following picture in LaTeX: The design does not necessary has to be the same. I'm more interested in an ...
5
votes
2answers
124 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, ...
3
votes
1answer
70 views

How to use values from a 2d array in a tikz picture ? (out of bounds error)

I would like to use a list of values from a 2d array in a Tikz picture. The code bellow works while using a random number : \pgfmathtruncatemacro{\r}{round(rnd*20)} But when I replace it with the ...
0
votes
1answer
55 views

TikZ library `external` doesn't recognize node name from different picture

I am attempting to improve my compilation time by externalizing TikZ pictures. I do seem to be able to refer to named nodes, however. For example, consider the following. \documentclass{article} ...
4
votes
1answer
43 views

Adding nodes near coordinates to bar plot but from different series

I would like to annotate a bar plot with some markers or numbers to indicate the significance of some results. The significance is given in a different column from the main value. Just to give an ...
4
votes
1answer
36 views

How can I determine the size of an array containing macros with optional parameters?

I am using my solution from How can I determine the size of an array? to count the number of entries. However, the \foreach/\IfStrEq in \SetArrayLength seems to have a problem when an entry is macro ...
3
votes
1answer
24 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 ...
-1
votes
0answers
31 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}
4
votes
1answer
42 views

Graph shifts position when adding plot

If I compile this code without the Gaussian function at the end everything is allright, but if I try with it the whole figure shifts to the right. In this example it is not a very big problem, but ...
1
vote
1answer
31 views

tikz \draw vertex color or highlight with relative angle coordinates, and translate to rectangular coordinates

the following is a good example. let's say I want to draw an SSD-like box. eight points, not identified by grid coordinates, but by relative angles. \documentclass[border=3mm,12pt]{standalone} ...
5
votes
1answer
103 views

tikz workflow tools?

How are you initiating tikz graphs? I tried a whole variety of approaches. I tried to draw my first sketches on a glassboard and photograph and autotrace this, but no auto-tracing software that I ...
2
votes
1answer
57 views

Komascript chapter title position

I'm trying to format the Chapter title (I'm using Ubuntu which has komascript 3.12) using Tikz to add a minitoc. I can format the number and chapter prefix but the chapter title does not change ...
3
votes
1answer
54 views

improvement of a complex contour

By adapting the codes in an answer to the question How to draw these (closed contours) diagrams using TikZ or PSTricks?, I get the following picture. Would anybody help me to make the following ...
3
votes
1answer
93 views

Drawing with Tikz (Physical System)

I want to draw the following in Tikz (Tikz is the way to go here right?) As I am new to Tikz, I tried do draw it by hand to see if someone here can help me. If possible, it would be nice for it to ...
1
vote
2answers
43 views

tikz /.pic with double rotate?

dear tikzperts: how would I keep the orientation of the text in the box, so that the rotate inside the .pic will be additive to the one in the main text. \documentclass[border=3mm,12pt]{standalone} ...
15
votes
4answers
493 views

Regular Polygon with tip on the bottom

I have a set of three regular polygons with six sides which I create using regular polygon from the shapes tikz package. However this always creates the polygon with the flat side on the bottom. How ...
4
votes
1answer
40 views

Best way to scale a tikzpicture with matrices

I had the following figure in a document that I am looking to put in some beamer slides. The figure in question is to wide to fit in the slides, so I am looking to scale everything, by say, a factor ...
1
vote
1answer
69 views

exceeding memory with tikz (even after externalise)

The issue is quite simple, I have a bunch of figures being generated with tikz (which in turn calls gnuplot). In order to bypass the memory issue I externalised tikz, which was fine until I tried ...
1
vote
2answers
209 views

Tikz externalize and placing a caption overlapping with a picture

Original Problem I have some big "banana shaped" pictures in a document. Thus the picture fills the whole page, the "actual picture" i.e. the non-white space, however, does not. I place a caption in ...
3
votes
1answer
34 views

Assigning xlabels to symbolic x coords

I am using the below code to generate the shown bar graph. However, I cant find anything with which I can label each of the individual bars for both sets of my data. i.e say the bar marked 0.67 I want ...
1
vote
0answers
32 views

Trouble labeling an angle within a picture

My tikz does not want to label the angle within the figure. Whenever I try to use the command "$\alpha$" inside the pic arguments tikz ignores it. I do not know how to proceed. Any suggestions for the ...
4
votes
2answers
103 views

Shading in a TikZ environment to indicate the solution set to a linear inequality

I have a display of two parallel lines on the Cartesian plane. I would like to have the region between them to be shaded to indicate that the display is that of the solution set to the inequality ...
3
votes
2answers
48 views

Operation mode in pgfplots (referencing from externalized graphics)

I am using the externalize feature of tikz/pgf to save space for my thesis. I am using TeXShop on a Mac. I am running into trouble referencing something in the main document from the externalized ...
0
votes
0answers
37 views

How to make this state diagram?

I am trying to make this state diagram: Is there a package in TikZ that can facilitate this?
6
votes
2answers
5k views

Using gnuplot in tikzpicture environment using pgf-package

I´m trying to use gnuplot in the tikzpicture environment with the pgf package. Example \documentclass[paper=a4,12pt,version=last]{scrartcl} \usepackage[miktex]{gnuplottex} \usepackage{pgfplots} ...
1
vote
0answers
137 views

Bar graphs with tikz scientific axes=clean

I really like theaxis generated by tikz datavisualization with scientific axes=clean. However I can not find a bar graph visualizer in the documentation. Does such a visualizer exist? Or (even better) ...
4
votes
1answer
519 views

What is wrong with this bar graph?

I try to create a bar graph based on an example I found. I do some modification to origin, but it doesn't work. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} ...
2
votes
2answers
51 views

Vertex Label in tikz picture

I have drawn several graphs using tikz. Right now I am getting the vertex label inside the vertex. But I want the labels of vertices outside it. Also I want to draw two tickz pictures in one line. ...
0
votes
1answer
74 views

Combine tikzpicture and tikztimingtable environment

As the known about tikz-timing package, we have: tikztimingtable environment \begin{tikztimingtable} Name & hLLLLh \\ Clock & 20{ c } \\ Signal & z7D { Text } z \\ ...
2
votes
1answer
108 views

How can I render a LaTeX document without pages?

Almost always, I simply render electronic documents, so I don't need pages. Also, pages make it difficult to arrange images in a document. I want to draw TikZ graphs for my blog articles, and I don't ...
3
votes
1answer
54 views

tikz .pic scaling with text

I am learning more about tikz .pic while experimenting with boxes with text inside them and then trying to rescale them. (for this example, I could create one png file and then includegraphics it, ...
4
votes
1answer
56 views

Cayley graph attempt

I tried modifying the latex code from a previous Cayley graph post on this site, but the arrows are not connecting correctly. The image looks ok for the first five nodes, then it falls apart. I'm ...
3
votes
0answers
26 views

Is there any way to reposition/shift the node text in tikz, without creating extra nodes?

I don't like the default positioning of the labels Q1 and Q2 below; is there a way to move or shift them relative to the circuit symbols? I know I could do \node[nigbt,label={something}] but it seems ...
-2
votes
0answers
53 views

A Cayley graph in Latex [duplicate]

I know that questions like these are usually not well-received, but I need to make the following picture in latex. I don't know how to code with tikz, and if someone has any code for a similar ...
1
vote
1answer
36 views

Connecting nodes of a duplicated graph

How can an edged be created between two copies of the same graph structure? The following is an example of the desired output (the labels don't need to be rotated with the object). Specifically I ...
8
votes
2answers
99 views

Diagram with a shaded region

The following MWE yields the diagram above but I would like to find a better way of showing the shaded region. \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} ...