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

Replicating geometry drawing in TikZ

I'm trying to get a picture like this: However, I'm having trouble with having the lines spanning between the arrows and having the arrows go exactly to the widths in the picture. This question is ...
2
votes
1answer
46 views

Individual Tick style for each Tick

I would like to raise the left Tick over the x-axis so it doesn't clip into the graph. However If I add a second "Extra x ticks" definition the first definition gets overwritten. How can I achieve an ...
1
vote
2answers
58 views

Adding a tikz picture to every slide in a beamer presenation

I have a tikz drawing I would like to add to every slide in my beamer presentation. Presenly I have to add it manually to every slide - a bit tedious! Is there a way of using a \newcommand to do this ...
1
vote
0answers
37 views

phasor diagram incomplete (now plotting waves)

I need to make some phasor diagrams. I have copy the example from here http://www.texample.net/tikz/examples/phasor-diagram/ but in my OSX Im not getting the waves shape (see attached). What am I ...
2
votes
2answers
44 views

How to lengthen a cube horizontally?

\documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\cubex}{2} \pgfmathsetmacro{\cubey}{2} \pgfmathsetmacro{\cubez}{2} \draw[red] (0,0,0)-- ...
4
votes
1answer
107 views

Isn't \usepackage{tikz} removable without changing the result, when there's \documentclass[tikz, border= mm]{standalone}?

I found that when I remove \usepackage{tikz} when there's \documentclass[tikz, border=2mm]{standalone} before, the resulting image is the same even if \usepackage{tikz} is removed in that case. So ...
1
vote
1answer
33 views

Changing the properties of an edge on a later slide [duplicate]

I am using beamer and TikZ and would like to change the color and thickness of an edge in the second slide of the same frame. Here is what I tried: \documentclass{beamer} \usepackage{tikz} ...
1
vote
1answer
38 views

Tikz Tree with added notes

I need to add notes where "Write Text Here" is. I do not want it to be part of the node. Is there a way to add notes next to a node. Below is my code; Thank you \tikzstyle{every ...
1
vote
1answer
50 views

Why image of cube doesn't change when I change (0, 0, 0) to (-1, 0, 0) and (1, 0, 0)?

In the below code "cycle;" means (0, 0, 0). They mean the starting point and terminal point, I guess. For an experiment, I tried changing (0,0,0) to (-1, 0, 0) and (1, 0, 0), then the resulting ...
7
votes
4answers
2k views

How to draw the following picture in LaTeX?

How to draw the following picture in LaTeX, I tried to use the following code but it doesn't work. \begin{figure}[H] \centering \begin{tikzpicture} \matrix[matrix of nodes,row sep=2em] (m) { ...
2
votes
1answer
44 views

How to underline enumerate label with dotted line?

The ulem package provides several commands for underlining text. I tried all of these commands to style the label in my enumerate environment. Some of the commands work, some of them do not. I'm ...
1
vote
1answer
34 views

TikZ figure does not appear to be centered with respect to caption

I'm new to TikZ and I'm having problems in centering a TikZ picture with respect to its caption (and the page margins as well). By activating the picture's background rectangle, it seems that extra ...
1
vote
1answer
50 views

How to shift a curve with TiKZ

I would like to reproduce the following graph but unfortunately, I am only able to obtain these two curves. Does anyone know how to draw parallel curves using TikZ? Here is my code ...
2
votes
1answer
57 views

How to draw cube in a cube? [duplicate]

I'd like to draw a cube in a cube using TikZ as the above. I know how to draw a 3-dimensional vector space, with a line. But, I don't know how to draw a cube in TikZ. What code should I use for it? ...
6
votes
1answer
38 views

Using cases in a node in a matrix

I am trying to put piece-wise functions into nodes in a Tikz diagram. Using cases works fine in a Tikz node that is separate within a tikzpicture environment. Putting the same node in a matrix breaks ...
-1
votes
1answer
55 views

Tikz package. Plot a segment centered in one point

How to plot a segment centered in one point? I need to give the point and the length only.
1
vote
1answer
133 views

Plot a random open set with TikZ

How to plot a random set with TikZ?
6
votes
2answers
79 views

How to order nodes in Tikz mindmap

i was just trying to use a tikz mindmap, but there is a problem. I cant figure out, how to set the two childs of the node (1) left and right. There is always the 60° spacing between them, I want them ...
-3
votes
1answer
85 views

How I can create a graph of acceleration and speed - tikz?

How can I create a graph of acceleration and speed like the one in the picture. Knowing that they are each other's consequence? \documentclass{article} \usepackage{tikz} \begin{document} ...
0
votes
0answers
89 views

Drawing waterdrop after splashing with tikz

I want to generate figures which represent a water drop after the impact with a liquid surface using TikZ. I would like to sketch a 2D-figure like the scheme attached and a sequential 3D-figure of ...
2
votes
1answer
71 views

Emulate “MATLAB-like” exponential ticks in tikz visualization

I am trying to include some plots in my LaTeX document using the data visualization library of TikZ, but I am not satisfied with the number format of the axis ticks for high values: ...
1
vote
1answer
64 views

Signal diagram in TiKz

Hi, I am trying to produce this in TiKz, Is TiKz the best package to use? Any starting points on this would be appreciated.
1
vote
1answer
40 views

tikzpicture add curved arrow in INTERVAL

I am currently working on a slide in which I need to add a curved arrow in the interval as below Pardon my poor drawing skill in MS paint... This is my current attempt \draw[->, thick] ...
3
votes
1answer
72 views

Shading parts of a plot using pgfplots

I have the following plot that I need for my presentation. I have a minimal code for the same, however the shading is an issue. I am yet to be fully in grips over using PGFPlots. \usepackage{tikz} ...
1
vote
1answer
66 views

How to fill the parameters of `boxplot prepared` with data from table using PGFPlots?

I want to draw a boxplot using boxplot prepared@ Page 469 of pgfplots-manual; v1.13, with the values of lower whisker, lower quartile, median, higher quartile, and higher whisker from a data file. ...
3
votes
2answers
104 views

Drawing a vertical line with sections

I've looked to another example but struggle to adapt it to my needs. Tikz is new to me. \begin{center} \begin{tikzpicture}[every edge/.style={shorten <=1pt, shorten >=1pt}] \draw (0,0) ...
3
votes
1answer
97 views

Prism with curved surfaces with pgfplots

How can I reproduce the 3D prisms shown below using pgfplots (even if they'll be a collection of surfaces is ok)? My main problem is the generation of the bottom and top surfaces. I also tried to use ...
1
vote
1answer
36 views

Forget Content Before Pause in Beamer

I am using beamer and I am drawing some figures on an image, which should appear sequentially on the image. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
-2
votes
0answers
52 views

How can I get the following diagram? [duplicate]

I was wondering what would be better ways to get the following diagram with tikz? Thanks The code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{} \usepackage{tikz} ...
1
vote
1answer
34 views

How to change the baseline of a rectangle in the tikzpicture environment in a table

My problem is that I'm making a table of flame test colors, but the colors on the right column have their baseline at the bottom of the square, so the ion symbols on the left aren't aligned in the ...
6
votes
1answer
87 views

tikz and \pgfdeclareshape why the text is not at the center anchor?

Why is the text (the black bullets) not at coordinate (0,0) where I have defined the anchor center but is a bit above on the right ? \documentclass[border=10pt, tikz]{standalone} \usepackage{tikz} ...
2
votes
1answer
23 views

Where to install the pgflibraryqrr.shapes files when using MiKTeX in Windows

I am trying to run the code found here, but I get the error. I did not find the pgflibrary 'pgflibraryqrr.shapes.openrectangle.code.tex'..... I put the files in the directory C:\Program Files ...
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
62 views

Tikz- Transitions around whole automaton

I have following automaton in Tikz: Is it possible to do a transition similar to this one? Here's my code: \begin{tikzpicture}[>=stealth,node distance=2.7cm,auto] ...
2
votes
3answers
98 views

Tikz: Drawing a scalene triangle with fixed side lengths

I've been trying for a while to get this to work out nicely, but I'm really struggling to avoid excess picture. I want to draw $\triangle ABC$ given its side lengths: 7, 13, 14. The code below ...
3
votes
1answer
39 views

Positioning with `current axis` depending on limits?

I try to specify the x axis label position below the x axis arrow at the same baseline like the xticklabels. It works fine for most plots. However, when modifying the range of the y axis with ...
0
votes
0answers
32 views

TikZ data visualization (still?) not working properly for external file? [duplicate]

I have some troubles using external files for the data visualization library of TikZ. This is my MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document} ...
1
vote
1answer
30 views

Additional line in table after changing textformat

I am trying to create a table with multicolumn and a fixed width of the multicolumn inside a tikz node. My code looks like: \documentclass{article} \usepackage{booktabs} \usepackage{array} ...
0
votes
0answers
38 views

Printed figure different than the tikz one

I have a weird problem with some tikz figures. When I compute the figure, it looks normal, but when I try to print the output PDF document, an undesired line appears on the plot. It seems like the ...
2
votes
0answers
27 views

Boundary not shown when drawing grid lattice with tikz

I want to draw some grids using tikz but some of them don't shown the left vertical boundary. Currently I have to decrease the coordinate of the left boundary a little to make it work, say, change 6 ...
2
votes
1answer
86 views

Stereographic tikz problem

From this page : Stereographic map projection, the first example gives me only a ball. Any idea ? \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,fadings,decorations.pathreplacing} %% ...
1
vote
1answer
52 views

Creating a challenging memory drawing using tikz in lyx

How can I make this memory drawing using tikz? Above there is an array and below there is a linked list with linked lists in it. I need those different colors - it doesn't matter which colors ...
2
votes
1answer
143 views

circle symbol instead of star symbol in rating

I have this macro for showing rating/review. In the macro, it's a star symbol which works great. I tried to change star symbol to circle but it did not work as I expected. I would like to see circle ...
3
votes
1answer
51 views

Value variable in an addplot domain

In this MWE \documentclass[border=1cm, x11names,tikz=true]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{intersections, calc} \usepackage[round-mode=places]{siunitx} ...
5
votes
1answer
96 views

What does numbers in 3-tuple mean? (e.g.starting point, terminal point and length)

What does numbers in 3-tuple mean? For example, starting point, terminal point and length. By changing numbers in codes I found that left 3 tuple in the left parenthesis means starting point, and the ...
5
votes
1answer
159 views

What's the difference between \draw (0,0) circle[x radius=2,y radius=2]; and \draw(0, 0) circle (2);?

If I type in the two codes resulting two circles fit together, coinciding with each other. Then what's the difference between them? \documentclass{standalone} \usepackage{tikz} \begin{document} ...
3
votes
2answers
133 views

How to draw a coordinate system without grid or scale?

I hope to draw coordinate system for three-dimensional space that has a line through the origin as the above picture using TikZ as similar as possible. But the examples of graphs I found have grids ...
2
votes
1answer
38 views

Tikz: Start a further curve in the middle of another curve

the following code draws a bended between start and (4,4). I want to draw a further curve beginning from a point on that curve. \begin{tikzpicture} \node at (0,0) (start) {}; \node at (10,0) ...
4
votes
1answer
42 views

Plot composite functions using tikz

I'm trying to plot something which I thought was very simple: sin(ln(x)) But this exact line in my plot doesn't work: \addplot[draw=red]{sin(deg(ln(x)))}; The error that I receive is: Missing ...
1
vote
0answers
61 views

How to move line in Tikz diagram

I used \bloodymess command from this post. I now have the diagram with side comments, but I need to move the arrow of messages, so it starts after my side comments finishes. See this figure for ...