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)

1
vote
0answers
22 views

How to show Mini table only sections in a chapter not other chapter?

I follow that link: Mini table of contents inside TikZ node on chapter start page? But I just want to show only sections of The chapter 1 or chapter 2 ... How can I do that? ...
1
vote
1answer
44 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 ...
2
votes
1answer
29 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
24 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
12 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
21 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}
1
vote
0answers
41 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 ...
4
votes
1answer
39 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
25 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
98 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 ...
10
votes
3answers
3k views

How to draw nodes with same size?

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. ...
2
votes
1answer
50 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
52 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
87 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
41 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
479 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
38 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
68 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
205 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
30 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
30 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
47 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
35 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
136 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
511 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
46 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. ...
1
vote
0answers
54 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 ...
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
107 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
52 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
54 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
25 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
33 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
96 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} ...
10
votes
1answer
177 views

Connecting tree nodes with double arrows a la chef

I'm trying to draw a tree with double arrows. To that end, I have combined the file system tree from texample.net with the basic idea of double arrows a la chef: \documentclass{standalone} ...
3
votes
2answers
116 views

Making an image out of a picture of a Cayley diagram

I'm trying to convert this picture of a Cayley graph into latex, but I'm not sure how to create my own image. Is there any easy-to-use software that allows users to make Cayley diagrams in latex? ...
2
votes
2answers
44 views

Expanding, adapting pst-labo

I want to make this I've tried to work with pst-labo, but the only thing I could make was (with or without bouchon): With this code: \documentclass[11pt]{article} \usepackage{tkz-euclide} ...
3
votes
5answers
235 views

tikz: Draw rectangle with rounded corners only north/south?

I'm trying to draw two rectangles (using \fill and a cycle) where only the north/south corners are rounded. I want the blue rectangle below to have rounded corners only on the top, and I want the red ...
2
votes
1answer
55 views

Diverging arrows, tikz/pgf - flowchart

I've spent hours trying to draw the picture below in tikz. I can't figure out how to draw the diverging arrows, would be very grateful for any advices on the matter! Thank you in advance!
3
votes
1answer
72 views

Pgfplot how to make scientific number format with “e” exponent style

The normal scientific coordinate is something like 10^2, how do I change it to 1e+2 style ? For example: \documentclass[border=4mm]{standalone} \usepackage{pgfplots} \begin{document} ...
2
votes
1answer
24 views

tikz: relocatable rotatable colorable objects with example (but no fill)

I admit that I am posting this partly because tikz is so cool. Experimentation with the .pic feature shows how one can define a simple object, and place it anywhere in the plot, scaled, rotated, etc. ...
0
votes
1answer
65 views

Putting labels on a complete graph

Hi guys I have this picture and I want to make it better by putting names on the edge. For example I wanted to make the edge connecting 1 and 4 to say $\theta_1 \theta_4$ and so on for all the ...
1
vote
2answers
25 views

How do I align the circuit junctions with the op-amp inputs? (and be smaller)

Simple drawing... but I can't figure out how to align the circuit junctions with the op-amp inputs, unless I fudge it by adjusting manually. Is there a way to do so automatically? (and make the ...
4
votes
1answer
61 views

Using intersecting coordinates in tikz with the current coordinate

I've learned these tricks: \draw (X) -- ++(1,1); % relative positioning \draw (X) -- (P1 |- P2); % intersecting coordinates: the x-coordinate of P1 and the y-coordinate of P2 Is there ...
3
votes
2answers
40 views

Vertical alignment & line

I have a trouble in drawing a simple diagram with tikz. What I want is a diagram that lines are drawn between left aligned nodes. But the vertical alignment make the line tilted/slanted which looks ...
4
votes
1answer
65 views

Text edge and shadow with tikz

I have this code: \documentclass[twoside,fleqn]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[most]{tcolorbox} \usepackage{tikz} ...
1
vote
0answers
42 views

tikz block diagram widgets for computers, disks, switches, chips, interfaces, etc.

is there a widget library for hardware sketches? I don't mean just block diagrams for circuits (which exists), but for more ordinary diagrams for computer items like speakers, SATA input and output ...