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
0answers
84 views

Gear or cogwheel tikz graphic

I found the code that permits the design of a gear. But what I want is to be able to Control the distance between teeth so I can increase their numbers. Fill each tooth with different colour. Be ...
5
votes
1answer
79 views

Unintended line thickness variation with pgfplots

I admit that I may be abusing pgfplots somewhat, but I want to add a plot of a function into a tikz-picture in a certain way. I have now managed to get this to run, I'm just wondering why the line ...
4
votes
1answer
103 views

Specify the length of the arrow in TikZ

This should be an easy one. Instead of specifying where the start and finish of the arrow should be, I want to specify how long the arrow should be. It might sound like the same thing, but when you ...
7
votes
1answer
129 views

Concentric Cylinders with tikz

I am trying to draw two concentric cylinders with tikz to show the change in volume with respect to radius, while the height remains fixed. The left ilustration below is the first drawing, where the ...
3
votes
1answer
54 views

Displaying a portion of tikz picture

Using the answer here, I was able to draw a hexagonal grid. I would like to display only a circular region (centered at the origin) of this lattice, similarly to what was done in this question, but ...
5
votes
1answer
82 views

confine heading in tikz node using titleformat

I'm using a quite fancy style for my chapter heading, i.e. \documentclass[12pt,open=left]{scrbook} \usepackage{tikz} \usepackage{pgfplots} \usepackage{titlesec} \usepackage{titletoc} ...
4
votes
1answer
98 views

Setting minimum size for tikz node using default unit length

I have two node styles with a minimum size set to 7mm and they look perfect: \begin{tikzpicture} \tikzstyle{style1} = [circle,draw,fill=white,minimum size=7mm,font=\Large]; ...
6
votes
1answer
354 views

Feature (bug?) of dots notation in foreach-statement

I want to draw something in tikz where the range of an inner loop depends on an outer loop (by construction of the math involved). I need to differentiate between even and odd number in the inner ...
5
votes
2answers
227 views

tikz: draw line thickness less than 0.1 mm

In tikz is it possible to draw lines thinner than 0.1 mm? ultra thin option gives line thickness 0.1 mm. I want to draw a pattern using line thickness 0.07 mm.
3
votes
0answers
94 views

How to color vertices in a TikZ graph?

Consider the following code to draw a graph using TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \begin{document} \begin{tikzpicture} \graph ...
6
votes
2answers
75 views

Scale the Axis in Tikz

I have the following problem: \begin{center} \begin{tikzpicture}[scale=0.5, >=latex] \draw[->] (-6,0) -- (6,0) node[right] {\scriptsize $x$}; \draw[->] (0,-5) -- (0,15) node[above] ...
8
votes
1answer
102 views

Why shifted coordinates are not valid with TiKZ fitting library?

I've tried to use something like ([shift={(1,2)}]a.center) as a coordinate within the list for a fitting node, but it doesn't work. With an auxiliary coordinate defined this way, it works. With an ...
3
votes
2answers
96 views

How to add frames around a group of nodes in tikz

I have this beautiful tikz diagram of my program that I have created : The different colours correspond to different programs, so I would like to know if there is a way to add a frame around each ...
0
votes
1answer
44 views

Useasboudingbox and measuredfigure to align caption

I use useasboundingbox in my tikz pictures to make them optically centred. I want the caption to be aligned with the left edge of the bounding box. Normally this can be done with the measuredfigure ...
2
votes
1answer
111 views

Text following an arc

I'm trying to have a text following an arc path. Instictively, I wrote \draw (90:2) arc node{Some text} (90:210:2); but this returned an error: ! Missing number, treated as zero. I suppose I get ...
3
votes
1answer
115 views

Customised Sequence Diagram

I want to draw this With the light gray shadow (not black) and round corners. Here is what I have Can anyone show me how to change it? Another points, when I have text that is very long, how can I ...
4
votes
0answers
69 views

Unknown TikZ/pgfplots error with external

I am trying to compile a large document (PhD thesis) and I have no problems compiling without using external, but as soon as I enable that feature, it has problems. So far I haven't found the answer ...
7
votes
1answer
128 views

Tikzpicture with sine waveforms

I have tikzpicture with sine waves. What I would want is that the red bouncy wave goes along the black sine wave until it hits the red dotted line. then drops to the blue dotted line and so on. I have ...
5
votes
1answer
91 views

Creating procedurally generated nodes in TikZ

I am relatively new to TikZ, and have been hacking together figures as I need them for uni assignments from various examples on the internet. Now I am moving into research, I am having to write a lot ...
4
votes
1answer
119 views

Scatterplot with data from CSV file and trendline

I have created a scatterplot with code from this previous asked question. \documentclass[varwidth=true, border=2pt]{standalone} \usepackage[utf8]{inputenc} % this is needed for umlauts ...
8
votes
1answer
93 views

Ugly sharp edges when using `rounded corners` in TikZ

The following picture produces ugly sharp edges \documentclass[11pt]{scrartcl} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \draw[fill=black] (-2,1) circle (2pt) node ...
2
votes
1answer
49 views

symbolic x coords not aligning correctly, missing data

When I compile this code: \documentclass[11pt,a4paper]{article} \usepackage{geometry} \geometry{margin=1in} \usepackage{tikz} \usepackage{tkz-euclide} \usepackage{pgfplots} ...
2
votes
2answers
79 views

Using \uncover inside a TikZ node text

I am unable to use \uncover inside the text of a TikZ node. Here is what I would like to do: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
1
vote
1answer
45 views

How can I label points in tkz-euclide without serifes?

I have the following image As you can see, the points $A, B, C$ have serifes. I would like them to be without serifes. I do I change the font for \tkzLabelPoints?. (font=\sffamily\sansmath does not ...
6
votes
2answers
166 views

Complicated tikz vector diagram (Approximate Miss Distance Produced by Turns)

I like to reproduce the following image from an 1957 aviation report in tikz pgfplots. It is fairly complicated and I'm not sure how to approach it. Nodes and positioning is too much a hassle / ...
2
votes
0answers
49 views

How can I make concentric circles as grid for a polar plane?

But I need to delimitate the circles for x, y in [-2,6]. \begin{tikzpicture} \draw[yellow!10, fill=hkvbluelogo!5](-2, -2) rectangle (6, 6); \foreach \s in {0, 1, 2} { \draw [lightgray] (0,0) circle ...
0
votes
0answers
52 views

Digital circuit design packages in Latex

I do know about the Tikz package, but being a newbie, I find it pretty difficult to use. Basically, I am looking for a package the lets me draw digital circuits and also has support for symbols used ...
0
votes
0answers
39 views

TikZ : how to control the paths ? [duplicate]

I have a problem with my paths in tikz, as I try to show in the picture : By using my path as -| or |- I can obtain the two green paths, but I would like to have the red one, and neither |-| or || ...
3
votes
1answer
64 views

Tikz: Position dodge on the x axis?

For my 2x2 factorial data, I want to create a line plot with confidence intervals in Tikz. The x-axis ticks are supposed to have a small offset so that the confidence intervals of the two plots do not ...
0
votes
0answers
28 views

multiple page sortable tables

Look at the following MWE. Here we have to tasks that I am trying to solve. Task 1: First. If i try to use the command dtlloadrawdb (instead of dtlloaddb) everything wents fine, until I use the ...
2
votes
1answer
56 views

Node in TikZ : change text alignment in one node ?

I am working with tikz, and I am wondering if there is a simple way to have different text aligment in one node ? For instance, in my MWE below, I would like to have blabla1 centered, but blabla2 ...
5
votes
2answers
95 views

Table-like lines in tikz matrix

I am trying to draw a "table" in tikz, and more generally, to work it out so that it is easy to write a lot of them. The matrix library makes it a lot easier to place aligned nodes. The next step ...
18
votes
1answer
226 views

How can I mark angles in a hyperbolic triangle?

This image is pretty close to what I want to make (a simple hyperbolic triangle with marked angles): However, as you can see, the angles are not marked correctly. How can I mark them? Can I mark ...
1
vote
1answer
36 views

Axis labels shifts off centre when using the xscale function

I have a plot to go into a report that needs to have the horizontal width increased, whilst maintaining the original vertical height. I am currently using the an xscale=1.7, however this shifts the ...
4
votes
1answer
76 views

Need to increase arrow size and the text size

With code, I am able generate the following figure. I don't know, how to increase the arrow size and the text size. I want to keep the figure size same. Only the arrow size and text size need to be ...
2
votes
0answers
75 views

Question on compiling pgfplot/tikz figures through latex+dvips+ps2pdf

I have a lot of problems when compiling pgfplots/tikz figures through the latex+dvips+ps2pdf chain. I can successfully compile the same set of pgfplots/tikz figures through pdflatex. The reason that I ...
2
votes
1answer
80 views

distances in TikZ

I do not know which numbers have to be set to have a good looking from this code. \documentclass{article} \usepackage{times} \usepackage[latin1]{inputenc} \usepackage{tikz} ...
3
votes
0answers
55 views

ticks under tikz

There is my minimal code \documentclass[a4paper,11pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{float,caption} \usepackage{microtype} ...
5
votes
2answers
175 views

How to draw vertical spiral using TiKZ?

I want to draw the following diagram : I have tried to draw the diagram using the following command : \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[dotted] ...
3
votes
1answer
126 views

Why does the definition of a `spy scope` imply a change in the foreground color?

I noticed that the foreground color changes when adding a spy scope to my tikzpicture. Compare: \documentclass[]{beamer} \usepackage{tikz} ...
2
votes
1answer
62 views

How to make a multiline Tikz node with different alignments?

Tikz allow to make multiline nodes using align=alignement where alignement can be left, center or right and \\ (see this previous question) I am wondering how one can have a multi line node with a ...
4
votes
2answers
66 views

Forcing a node or a tier to be set below a certain other node in forest

Working from Typesetting Dependency Grammar trees with discontinuous constituents I try to set a graph with two discontinuities. The first figure does what I want. It has nacc and the other N aligned ...
3
votes
0answers
43 views

Using tikz arrow with scaleboxed tables

Following this post. I would like to use arrows with tables. Yet my tables are too big and I want to rescale them using scalebox. But went I use tikz with the scaleboxed tables I cannot point ...
1
vote
0answers
49 views

fuzzy borders to tikz text nodes

I am trying to draw the following image with tikz - What exactly happens is it looks like the text box is like a layer on top of the matrix of objects. I want to make them appear as if they in the ...
2
votes
2answers
219 views

How to draw the graphs of sin x and cos x on two separate grids next to each other in TikZ

I got stuck and decided to go here. How would I draw two graphs of sin x and cos x next to each on TikZ with intervals of -2π to 2π? This seemed like something easy to do in TikZ but I'm having ...
8
votes
1answer
77 views

Why is my /.is choice key not working correctly?

This example is much longer than it really needs to be, but I don't have the time to prune it down right now (apologies!). Everything in this example works as expected except the my fill key which is ...
6
votes
1answer
61 views

Customizing enumerated lists with tikz prints enumi instead of number

I'm trying to make an enumerate list that has the numbers inside a colored circle. For the circles I'm using the tikz package and the color package. I define a circle in the preamble and then I ...
0
votes
1answer
61 views

Moving the label for a tick mark

The label "ma + b" at the tick mark on the y-axis is to the left of the tick mark. I want it to the right of the tick mark. (The command extra y tick labels={$ma+b$,anchor=east} didn't move the ...
4
votes
1answer
51 views

Using controls without affecting the image size

I have the following tree in forest: \documentclass{article} \usepackage{forest} \usetikzlibrary{arrows} \tikzset{ %Define standard arrow tip >=stealth'} ...
3
votes
2answers
80 views

a matrix of tikz objects

I use the following code to draw a tikz object. \begin{tikzpicture} % Axis \draw (-0.5,0) -- (5.0,0); \draw (0,-0.5) -- (0,2.5); \node (rect) at (1.5,2) [draw,minimum ...