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
39 views

Pull down a message thread in a pgf sequence diagram

Is it possible to somehow hack the sequence diagram to extend the thread of the received message on Some Server, that it will reach down to the next message notify? The code it the following one: ...
3
votes
1answer
34 views

tikz pgf-umlsd margin in the diagram

Is there any way to control the margin within a tikz pgf-umlsd diagram? I'm using the following code and could already remove the indent by using \noindent. But still there is some unused space to ...
2
votes
1answer
37 views

Tikzpicture changing axis label at a point

I have a graph like this: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw[->,color=black] ...
3
votes
2answers
171 views

Drawing a plane in tikz in 3D with a sine wave

I am trying to draw a plane with the front edge having a sine wave. Using the code from this example I can draw it by something like \documentclass{standalone} \usepackage{tikz} ...
2
votes
1answer
33 views

tikzscale not working with externalize using named only

I found a weird behavior when using tikzscale in combination with the externalize-library: When I configure externalize with only named = true, but do not set /pgfsetnextfilename for an image, this ...
1
vote
2answers
90 views

Tikz curve without control points

Is there a way in Tikz to draw a smooth curve that passes through some specified points without the need of specifying control points, like you can do in Asymptote? For example, in Asymptote I can do ...
-3
votes
1answer
119 views

Creating this logo in TikZ

how to create this logo using TikZ
1
vote
1answer
30 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 ...
1
vote
1answer
72 views

How to export the eps file from the .tex file using pdfLaTex?

How to export the image in .eps from the tex code using PdfLaTeX in TeXStudio. \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} A\arrow{d}\arrow{r}[near ...
2
votes
2answers
66 views

node size and align

I don't understand why the "idéation" node is larger than the 2 others "Sept." and "Oct." \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
1
vote
2answers
261 views

How can I draw using tikz

I am very beginner in tikz ! I want to draw picture with tikz:
3
votes
1answer
63 views

Drawing a closed smooth line using TikZ, with cycle option

I need to draw a couple of lines in TikZ and some of those lines need to be closed. But My code compiles in one machine but gives an error in the other, and the only difference is the version of ...
4
votes
1answer
56 views

Potentiometer anchor points in Circuitikz

I need to create a potentiometer with a tap point, as shown as the (american) potentiometer on page 9 of the Circuitikz manual. Is the tap an accessible anchor point to connect other parts of the ...
1
vote
1answer
31 views

How to add a linebreak in a tikz UML Sequence Diagram instance/thread

I'm writing a UML sequence diagram with tikz package pgf-umlsd. Currently the code looks as follows: \begin{sequencediagram} \newthread{controller}{Special Task Controller} ...
2
votes
1answer
67 views

How to depict Hierarchical State Machines in Latex

I want to depict a Hierarchical Statemachine (HSM) in a latex document. I've implemented the state machine I want to depict in Qt's Statemachine Framework. Just so that you know what I'm talking ...
0
votes
0answers
52 views

How to draw a graph in graph theory labelling edges(line)

I am not able to draw a graph in graph theory where i have to label edges of the graph with its suffix
1
vote
1answer
32 views

How to controle labels xtick and minor xtick.

I want to draw a graph of data like this: With this code: \documentclass[11pt,a4paper]{article} \usepackage{geometry} \geometry{margin=1in} \usepackage{tkz-euclide} \usepackage{pgfplots} ...
3
votes
2answers
103 views

Dimension too large with \pgfmathsetmacro

I want to define varafterglowepsdown, varafterglowa and varafterglowb and use them in a tikz function like this: \newcommand{\varafterglowepsdown}{0.0001} ...
6
votes
2answers
89 views

Customize arrow path tikz

I want to connect two nodes with an arrow, but I want the arrow to follow a "customized" path. Instead of the simple way: \documentclass{standalone} \usepackage{tikz} ...
2
votes
3answers
44 views

Scaling Figure side by side with tkz-euclide

I am trying to put two figures side by side but the right one should be scaled by a certain factor to appear bigger than the one left figure. My progress so far is the following code. I tried looking ...
0
votes
1answer
59 views

Too much space between TikZ diagram and text

In the following code, I have a TikZ diagram followed by text. I only specified 0.2in to be inserted between them. It looks like there is five times that space between them. \documentclass{amsart} ...
2
votes
1answer
52 views

Save 3D point for later use in TikZ

I want to save a three dimensional point for later use in \sfDefPoint. I am trying to write a command that lets me draw a line (and its projections) between two points using a simple syntax (e.g. ...
2
votes
3answers
112 views

TiKZ: how to adapt diamond shape

I'm writing a flow-chart. Using diamond (test/.style={base, diamond, aspect=2, text width=5em), my diamond shape, enlarge itself too much. How can I spread the text on the entire shape (to reduce the ...
4
votes
5answers
538 views

doubly linked list tikz

I want to draw two doubly linked lists and I know that I can use the tikz package. But I don't know how to. Could anyone show an example code piece for the following doubly linked list? I found some ...
4
votes
1answer
123 views

Is there an efficient way to draw torus knots and related ''complicated lines'' (simple shapes, but on nontrivial surfaces) in TikZ?

In the process of typing up a set of lecture notes for a course, I found myself in need of a nice picture of a torus knot, which basically comes down to drawing a very complicated line. With some ...
2
votes
0answers
37 views

Precision of \tkzCalcLength

I was typesetting a triangle with tkz-euclide, trying to automate the process as much as possible, and noticed that there is some calculation mistakes when using \tkzCalcLength and \tkzGetLength AND ...
11
votes
2answers
156 views

TikZ: having trouble drawing a randomly generated graph on the background of a page

I have some code to generate random graphs: \documentclass{article} % code hijacked from: https://gist.github.com/fgrosse/5807324 \usepackage[utf8x]{inputenc} \usepackage{amsmath} ...
2
votes
1answer
108 views

Find product of two sine waves in tikz

In the solution to the post of tikz plot of two sine waves, I was trying to modify the code to include the product of the two signals. How do you code the product of the two signals? I tried as an ...
1
vote
1answer
81 views

How to add multiple arrow in bblock using tikz figure

I need to make a diagram having different transmitting antenna at left side and a receiver block at right side. For receiver I need multiple antennas. I am able get one antenna how to get more then ...
5
votes
1answer
152 views

Closing the ends of double line in Tikz

I want to close the ends of a double line. Tikz does not provide a built-in option for this as far as I understood. What is the best way to achieve this, including forked double lines? (perhaps use ...
1
vote
2answers
93 views

Help with pie chart

I'm new to use LaTeX. I'm trying to make a pie chart with pgf-pie package but when I compile, there are some number in front of the text like this: And this is my code: \begin{table}[h] ...
1
vote
1answer
52 views

TikZ/PGF Dateplot - Restricting Dates to a Range

I'm using dateplot so that I can use dates and times on the x axis. I want to restrict the plot over a range of dates, but am unable to do this...Does anyone know how? Thanks Minimal example, mostly ...
0
votes
0answers
34 views

3d plots in report document

I have been trying to use tikzplot package to plot in a report document but when I pdftexify the plot does not appear. I only see a numerical code. Please can someone tell my how to overcome this ...
1
vote
0answers
35 views

pgf-pie: How can I put the percentage values in the legend? [duplicate]

In the pie chart below, how can I move the percentage numbers out of the chart, and put them in the legend on the right, with the names? I'm using the pgf-pie package. \begin{figure}[H] ...
5
votes
1answer
78 views

Tikzpicture: Add slope angles to straight line

I am trying to add some angles between the x-axis and the red and blue line which indicate their slope. \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} ...
1
vote
1answer
105 views

Fill area between two lines tikz

I am quite new at Tikz and I am trying to fill in some space between lines with color. This is my code: \begin{tikzpicture} \node[scale=0.1] (a) at (1.5,1.5) {\phantom{$.$}}; \node[scale=0.1] (b) at ...
1
vote
1answer
76 views

TikZ: drawing not centered

I have two problems with this drawing: The drawing is not centered, as you can see in the image below (see the red lines). In order to place $\lambda_\mathrm{acc}$ in the position where it is (see ...
-5
votes
0answers
76 views

How can I plot this figure1 (alike that) and redudce the distance between figure1 and its caption?

How can I plot this figure1 (alike that) and reduce spacing between figure1 and its caption? And how can I write the caption of ...
5
votes
2answers
170 views

How to incrementally shorten lines generated by TikZ's `foreach` command?

I'm trying to draw a picture of an initial segment of the cumulative hierarchy of set theory. I generated the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} ...
5
votes
2answers
71 views

Drawing thin line around a multipart TikZ shape

I'm looking for a way to draw a thin line around a multipart shape. For a normal shape, an easy way to do this is to use preaction to draw an even thicker line around the existing shape. ...
5
votes
2answers
54 views

Custom unit vector for drawing of arc in Tikz

I am trying to label the 45° angle ACB in a triangle drawn in 3D using TikZ: The full circle about C has been rotated in 3D about Y, and so it is in the correct plane. However, I cannot see how to ...
1
vote
1answer
51 views

Including TikZ picture in Sweave gets me an overfull box error

I have some difficulties in R Sweave so I hope someone could help me. I want to include two TikZ pictures using minipage and figure to the R Sweave but I get an error: Overfull \hbox (2.43085pt too ...
2
votes
1answer
96 views

Custom Fading for Rectangle

I tried to learn from How to define the distance of color regions in radial shading using TikZ? TikZ: radial shading of a ring TikZ Fading Speed and then create my own fading scheme in this MWE: ...
3
votes
0answers
51 views

How to list all known pgfkeys?

Is there a way to list all known pgfkeys (i.e., those that are currently set)? Concretely, I'm looking for a way to get the value of the tikz scale option. I was hoping there would be a pgfkey for ...
1
vote
1answer
73 views

How do you make a radial fading on top of a background image?

I have three objects that I want to superimpose on each other: Some text upon a background picture using a circle to create a radial fading from white to transparent so that it is possible to read the ...
5
votes
2answers
169 views

Shading with TikZ

A Latex newbie has trouble doing shading here. This is the code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds, matrix,fit,matrix,decorations.pathreplacing, calc, positioning} ...
0
votes
1answer
66 views

tikz-3dplot: Find projection of a vector on a unitary sphere

I am using TikZ (with the 3dplot package) to draw figures that mostly represent vectors lying on 2-Spheres surfaces. I have to say I am a bit of a newbie with TikZ, but I think i got the basic ...
4
votes
1answer
79 views

Underbraces in TikZ

I have the following tikzpicture: generated by: \begin{figure}[H] \centering \begin{tikzpicture}[level/.style={}] \node [circle,draw] (z){$f$} child {node [circle,draw] (g1) {$x_1$}} child ...
2
votes
0answers
63 views

Blurred colormap using matlab2tikz to export Matlab imagesc picture

I'm using matlab2tikz to export imagesc figures into TikZ/pgfplots code. This process gives me a TikZ file and a rasterized png version of the image with colours matching the colourbar at the time of ...
4
votes
1answer
124 views

How to create a date and time plot with TikZ and pgfplots

What I want to achieve is a graph, which shows the working hours per day. Input should be the triple of date, arrival time and leaving time. The x-axis holds the dates and the y-axis shows the working ...