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
2answers
72 views

Giving a gear in Tikz absolute position

I've the following MWE of a gear : \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,shadows,decorations.markings} % #1 number of teeths % #2 radius intern % #3 radius extern % ...
1
vote
1answer
49 views

Create a grid filled with lines

I have a grid. And I want to fill one cell with some lines like the picture. What I have: What I want: Here are my code so far: \documentclass[border=4pt]{standalone} \usepackage{tikz} ...
0
votes
0answers
50 views

3d plot with reflected arrows in “planes” using TikZ

I'm trying to reproduce this picture in TikZ, but I don't know how to get those 3D "planes" of arrows shown. Here is my attempt so far, which isn't remotely close to what I want (and mostly ...
2
votes
1answer
28 views

Shifting the +- voltage signs in circuitikz

Is there any way to shift the + and - signs so they are a little bit further apart? \documentclass{standalone} \usepackage[siunitx]{circuitikz} \begin{document} \begin{circuitikz}[american] ...
2
votes
1answer
31 views

Shift circuitikz component voltage up (or down)

Very similar to Voltage labels too close to circuit element with circuitikz 2.4 and Spacing circuit element labels from their elements with CircuiTikz but with horizontally-oriented components: ...
3
votes
1answer
49 views

Drawing two spheres separated by horizontal distance along z axis

I would like to draw another sphere like the following one, including axes, lines and angles (all of them "primed"), but shifted by (0,0,5), that is, displaced by 5 along z axis. I want to have both ...
1
vote
1answer
43 views

where are the circuitikz keys located within a miktex install?

I am looking for the circuitikz source files in my miktex installation (Windows 7) so I can Use the Source to determine which scaling factors do what. (since there isn't really any specific ...
3
votes
1answer
32 views

Side by side nodes, Horizontally aligned

I am trying to have two rows of nodes, but as you can see, the nodes are not horizontally aligned, so the arrows are off. How can I fix this? Result: MWE: \documentclass{article} ...
3
votes
3answers
88 views

TikZ arrow tips not matching up

I'm trying to join two lines in TikZ and have a filled circle to denote the join. This is the code I have: \tikzset{ block/.style = {draw, fill=white, shape border rotate=270, regular polygon, ...
4
votes
1answer
36 views

Curious about TikZ [remember picture,overlay] spacing

When I use \tikz[remember picture,overlay] there is vertical space inserted wherever the command is used, as in the following: \documentclass{article} \usepackage{tikz} \usepackage{lipsum} ...
-1
votes
1answer
93 views

Tikz package. Trefoil.

How to plot a trefoil like this in Tikzpicture?
4
votes
1answer
56 views

Node relative positions and arrows with texts (Tikz)

I'm struggling to generate a Tikz Image... I've progressed so far to generate the following image: However, I want to generate something like this: I can't straight the arrow from B to A, nor ...
1
vote
0answers
57 views

How to return a list of connected nodes? Tikz

I am building a graph with nodes and edges in Tikz. Is there any commend which returns array of connected nodes to a particular node? for example, I have 3 nodes A,B,C and only A and C are connected ...
3
votes
1answer
58 views

How to add points and overbraces to line segments in TikZ

I'm trying to reproduce the following image in TikZ, except that I would like to have \overbraces over the segments between black points with V2 on top (as indicated for the middle case on the ...
5
votes
2answers
59 views

Arrows to nested nodes

I construct a TikZ image with nested nodes: As you can see, I try to add arrows from the outer node to the inner one. How is it possible to target the arrows to the correct position of the inner node ...
8
votes
0answers
51 views

Passing special characters to “shorthand” x+y options in TikZ

I think I understand the rules for special characters in pgfkeys key arguments: If it contains any of {,, =, ]}, it must be protected by putting the entire argument in braces. In that case, the braces ...
2
votes
2answers
92 views

Color area inside curved lines in tikz

I drew this picture with the following code \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (mth) [align=center] at (0,0) {parameter space ...
2
votes
1answer
44 views

matlab2tikz, label on right side of colorbar

How to move the label right of the colorbar? Now it is in the plot itself. This is the matlab-code.... clear all close all clc figure surf(peaks(2)) cb = colorbar cb.Label.String = 'Label' ...
3
votes
1answer
27 views

Vertically align pgf plots with y-axis

I want to vertically align my two graphs, so that the y-axes are aligned. The problem is that the one y-axis has double digits and the other has single digits as the units. ...
2
votes
1answer
53 views

Line with intervals using tikzpicture [duplicate]

I have used following image as inspiration for my line. In my case there are 10 instances with different intervals. With some (ok a lot) help I have so managed to make this code ...
2
votes
1answer
53 views

pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...
4
votes
1answer
47 views

Tikz default arrow style and babel

I was trying to follow the instructions on this answer, but I cannot make it work, because babel. My MWE: \documentclass[justified]{tufte-handout} \usepackage[utf8]{inputenc} ...
0
votes
1answer
50 views

draw geometric shape via Latex

Can I drow this shape via $\Latex$ There is a software to drow any shape as
1
vote
1answer
85 views

Animated crossproduct?

How can I make this animation using latex?
0
votes
1answer
26 views

How to modify nodes style and not change the position

I have a diagram where I want to overlay a layer of thick red on top of the original black color. The problem is that as I add the very thick option the nodes get increasingly more displaced. ...
1
vote
1answer
50 views

narrow mode math environment in tikz nodes

I'm looking for a way to enforce a 'narrow' math mode in the following sense: Instead of writing every where the brackets {+} to reduce the spacing like here \documentclass[10pt,a4paper]{article} ...
5
votes
1answer
53 views

xtick in polaraxis useless

As a followup question to my answer here, I have a problem with the polaraxis of pgfplots. When I try to define xtick, nothing changes compared to dropping the option. MWE \documentclass{standalone} ...
3
votes
1answer
298 views

Why the measurement of vertical distance between two points is wrong?

Please, consider the following (not so minimal) MWE. Why the distance between points named a3 and b3 is not the same as the vertical distance between points a2 and b2 (it is about 30% larger)? From ...
4
votes
1answer
178 views

Opposite arrows on double line

I would like to draw a double line with small arrowheads on each of the lines. How can I have an arrow pointing in one direction in the middle of one line and another on the other line, pointing in ...
5
votes
1answer
80 views

Adding wavelength co-ordinates to pgfplots Smith Chart?

I have currently been using the pgfplots smith chart \documentclass{standalone} \usepackage{pgfplots} \usepackage{amsmath} % Required for \varPsi below \usepackage{steinmetz} ...
1
vote
1answer
41 views

How can i change the font size of label of node uniformly in tikz

I want to give nodes a label by \node [label=below:$1$] {$X$}. But the size of the label is the same with "X". i want it to be script size. so i can type \node [label=below:$\scriptstyle 1$] {$X$}. ...
4
votes
1answer
66 views

Remove Border form Tikz SMart Diagram

I want to remove border, set the box background to dark in the diagram below. I got no help from the document. \begin{center} \smartdiagramset{ set color list={blue,green,orange}, % border=none, ...
1
vote
0answers
47 views

Customize TikZ Smart Diagram in Latex

I want a chart that expresses the flow of an algorithm, in beamer theme. Something like this: Requirements --> Design --> Validation --> Verification --> Testing THe diagrams are ...
1
vote
1answer
24 views

Removing the line from a graph label in pgf

I've produced a graph with the following code: \begin{tikzpicture} \begin{axis}[ trig format plots=rad, axis lines = middle, enlargelimits, clip=false, ticks=none ] ...
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
57 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
106 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
49 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.