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)

5
votes
1answer
3k views

Option clash when using graphicx and tikz packages

The following code fails Option clash for package graphicx, it seems to be an incompatibility between the package graphicx (when the option pdftex is used) and the package tikz. ...
11
votes
3answers
2k views

positioning a child node between two parents

\begin{tikzpicture}[node distance=1.5cm] \node[state] (A) {A}; \node[state] (C) [right of=A] {C}; \node[state] (B) [below in the middle of=A and C] {B} \end{tikzpicture} Something like this: A ...
6
votes
1answer
279 views

Pictures from Inkscapes pdf+LaTeX export positioned wrong in nodes

Sometimes I use Inkscape to add some graphical elements and text to my pictures. Inkscape allows to export this as pdf+LaTeX, where the pdf contains the picture and all graphical elements and the ...
6
votes
3answers
451 views

TikZ: Thales circle, radius unknown

Is there any way to make a circle knowing just two points on its diameter? Here's the complete problem I'm trying to solve: there is a segment MN (but points M and N are calculated as an ...
25
votes
2answers
605 views

Programming TeX macros so that they output instructions to rerun the compilation

This question is motivated by the behavior of the tikzmark macro created by Andrew Stacey, and a recent discussion with David Carlisle on chat. I have noticed that LaTeX code using tikzmark typically ...
4
votes
2answers
353 views

Draw two rectangles, one on top of the other, with an angle between them

I'd like to make two rectangles on top of each other with an angle between them, and I'd like them both to have 4 or 5 vertical lines running down them, and a highlighted point where two of them ...
8
votes
2answers
286 views

Connecting to a node towards a point other than the center

I'm trying to connect an edge to a node with the target point being off-center. I would like the edge to end with an arrow at the border of the node without going into the box. It is easy to connect ...
2
votes
1answer
507 views

Overlapping tikz nodes with background fadings

Following the first tutorial in the TikZ manual, I tend to take steps to improve the legibility of tick labels when placed over gridlines. I prefer to use a fading rather than a plain white rectangle. ...
12
votes
2answers
805 views

Display issues drawing DNA sequences with TikZ

The following TikZ code shows a representation of DNA code segments. I have two different versions of this code. Version 1 uses multipart rectangles, and is my preferred version. Version 2 models the ...
6
votes
2answers
261 views

I need to provide a duotone pdf, what do I need to do with my figures?

I need to provide a duotone pdf (say black and cyan). My figures are made with tikz, pgfplots and asymptote (3D but no prc), some with opacity effects. I compile with pdftex and luatex. What do I ...
23
votes
3answers
2k views

Why does anyone prefer Metapost?

TikZ (together with its PGF backend) is the most widely used picture drawing tool by regulars here, having more than 50x as many questions as for Metapost, alongside a wealth of documentation and user ...
8
votes
3answers
681 views

pgfplots: Use \times symbol for scientific notation in plot axes

When creating a plot like this one \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ scaled y ticks=false, yticklabel style={ ...
9
votes
3answers
400 views

Problem with fill and cycle

Can someone tell me why the rectangle is not filled? So basically, why "cycle does not work?" I dont get it.. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
1
vote
1answer
252 views

TikZ: variable in calc syntax

I'd like to draw some lines where one of points should be defined like: ($ (A)! \X3 !(B) $) where \X3 is something from (0,1). But it's not working. Yeah, I could just place the right number, but ...
1
vote
1answer
75 views

Using arrows in an alignment

I would like to do something like the following. I am wondering if tikz-pgf would be the right tool to use. Except the (E.G.) should not be there. I'm pretty sure that is a typo.
8
votes
1answer
366 views

Add “tangential nodes” to a hobby curve

Is it possible to place nodes along a hobby curve such that the orientation is tangential to the curve. I should add what I mean with tangential: The curved hobby path should represent a curvy street ...
6
votes
1answer
16k views

Work breakdown structure (WBS) TikZ

How can I draw WBS diagrams (Work breakdown structures) in LaTeX? I need to draw in LaTeX things like: I've searched on the Internet a lot but I've found nothing.
4
votes
1answer
231 views

Getting rid of a thin framing line when shading a triangle

I am trying to draw a shaded triangle with tikz, using the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[top color=green!40,middle ...
6
votes
3answers
608 views

Adding a Known Trend Line to a tikz plot rather than connecting the points

The graph below is currently plots a point at each value of x that is an integer between -10 and 10 and connects them. What I'd like to do instead is more like this: First, I'd like to add a red, ...
5
votes
0answers
137 views

How to draw a split arrow [duplicate]

Possible Duplicate: How to draw a Sankey Diagram using TikZ I want to have an arrow which splits up and one end is pointing then downwards. When you compile the code below you should see my ...
5
votes
1answer
523 views

How to label arrows in tikz-cd diagrams with matrices?

I'm using tikz-cd for some commutative diagrams, but if I try to label an arrow with a matrix, & appears to be "undefined control sequence". So all the entries in a row get concatenated, and it ...
22
votes
2answers
764 views

Implementing a syntax: Smooth curves with specified points and tangents

Note: the following question is similar to the final version of this question, but none of the answers to that question appear to answer my question. Often, I find it desirable to specify a curve by ...
8
votes
3answers
1k views

Shaded region between the area and a circle

How can I draw a square whose side is 6 inscribed in a circle and make the program display the shaded region between the square and the circle
6
votes
2answers
839 views

Plot in TikZ: f(x) = 1/(x – 2) + 3

I am trying to plot the function f(x) = 1/(x-2) + 3 using TikZ, however I get that the domain is undefined. What code should I type?
6
votes
2answers
403 views

National flag using TikZ [duplicate]

Possible Duplicate: Is there a collection of national flags in TikZ? I need to draw a Kenyan national flag using TikZ or using TeX in general.
10
votes
3answers
6k views

How to draw a node as a filled circle (dot) to indicate a connection using TikZ and LaTeX?

I have some trouble drawing a control system block diagram using TikZ. I want a certain node to be shown as a dot, indicating a connection. However, the dot is not positioned at the center of the node ...
6
votes
1answer
639 views

Beamer: column alignment with tikzpicture inside

I am having trouble with using columns in Beamer class. For some reason, I have to display a plot in the left column, then replacing it with another plot to display additional data on it (I can not ...
11
votes
1answer
986 views

How to draw a 3d curved manifold in tikz

I'm trying to draw something like this: How would I go about it in tikZ? For example, how do I draw the curved gray manifold?
18
votes
1answer
714 views

Equation on papyrus with TikZ

First of all to apologize for my English. So, many times when I teach on the board used to include the final result on papyrus (and that likes too students). Just I think that would be a good idea ...
12
votes
1answer
762 views

List of TikZ Editor

After mentioning TikZ in academia, I tried to have a look here for recommended editors for TikZ. I found no list, and thus here's the question: What TikZ editors/front-ends do you know? What can you ...
1
vote
0answers
54 views

How can I draw a different version of Pascal's triangle? [duplicate]

Possible Duplicate: Pascal’s triangle in tikz I know that, at Pascal's triangle in tikz, we have discussed about the code of the pascal's triangle. Please, help me to get the following ...
3
votes
5answers
1k views

Student t-distribution with TikZ

I'd like to draw a Student's t-distribution with five degrees of freedom using TikZ, then another with 10 degrees of freedom, etc. In the program I am working in the degrees of freedom will be a ...
4
votes
1answer
373 views

Horizontal chart-style arrows between nodes

I have five nodes defined and positioned as following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, fit, calc, shapes, arrows} \renewcommand{\figurename}{Figure} ...
3
votes
1answer
82 views

Get error when I add “pos=x” to the node[] command for the last edge using cycle

Why this code works \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (pi,.5)--(pi,-.5)--(-pi,-.5)--(-pi,.5)--cycle node[above]{vv} ; \end{tikzpicture} ...
5
votes
1answer
2k views

Two columns in legend in pgfplots

I know how to create a legend in a pgfplots plot. See Legend in tikzpicture and Using a pgfplots-style legend in a plain-old tikzpicture. But I do not know how I can create a legend with two ...
12
votes
1answer
494 views

Draw a cylindrical volume

I am trying to draw this image My code is \documentclass[11pt,a4paper]{book} \usepackage{kerkis} \usepackage{tikz} \definecolor{Darkgreen}{rgb}{0,0.4,0} \definecolor{Darkblue}{rgb}{0,0,0.4} ...
7
votes
2answers
170 views

Method for aligning nodes of different sizes at specified sections

I'm trying to make a tikz diagram in which I can place nodes with long pieces of text, one above the other, such that I can specify sections which are to be centered (things outside these sections are ...
13
votes
2answers
656 views

Faded or blurred lines

My question was inspired by Rotate fading in tikz where the inquiror is drawing laser beams that shall look somewhat blurred not as lines but as boxes with a fading. The problem with this approach is ...
13
votes
1answer
747 views

Adding a label to a bent arrow in TikZ

In this question Is there a TikZ equivalent to the PSTricks \ncbar command? Jake provided a very nice TikZ version of the PSTricks \ncbar command. With normal node connections in TikZ, I can use the ...
12
votes
1answer
388 views

Setting background color for the whole row/column in a TikZ matrix

I'm trying to highlight a whole row/column of a TikZ \matrix[matrix of nodes]. Luckily, for TikZ matrix we have row/column selectors. So, in theory, the above should be achieved by the following ...
9
votes
2answers
1k views

Add text and arrows in this tikz picture

I am trying to create a small scheme for the so called Goldbeter-Koshland loop. I'm almost done, but I have to include the text $E_1$ above the arrow that goes from P to P* and a small arrow that goes ...
1
vote
0answers
158 views

Matrix with arrow - problem [closed]

I am using the following code from this question: Highlight elements in the matrix \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \tikzset{% highlight/.style={rectangle,rounded ...
4
votes
2answers
1k views

Draw the proper angle arc

I am trying to draw an arc to indicate angle between y axis and r line, but I don't seem to achive it. My code is \documentclass[11pt,a4paper]{book} \usepackage{kerkis} %\usepackage{kmath} ...
2
votes
1answer
246 views

Graphing linear probability model using pgfplots

So, I am attempting to use pgflots to draw a sketch of a one-independent variable linear probability model in the form of the equation I have below, which shows the implied relationship between E(Yj) ...
7
votes
1answer
205 views

Overlaying tables

I have two tables as follows: Table 1: Row/Column | C1 | C2 | C3 ROW 1 | v | v | v ROW 2 | v | v | v ROW 3 | v | v | v ROW 4 | v | v | v ROW 5 | v | v | v ... ROW ...
9
votes
3answers
1k views

Mark 90 degree angle in tikz in german convention

What's the best way to denote a 90 degree angle with german convention like on the following picture in tikz: Suppose I start with something like this: \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
326 views

Morphing only a part of a full path in tikz

This might be a tikz newbie question but I have some trouble solving this. I want to draw and fill a rectangular path where path morphing should be applied only to the upper side of the shape, more ...
2
votes
0answers
323 views

Problem with tikz-dependency [closed]

I've download the tikz-dependency package and tried the basic example as in the package docs. \documentclass{article} \usepackage{tikz} \usepackage{tikz-dependency} \begin{document} ...
8
votes
1answer
153 views

Arcs not being properly drawn for some special coordinates

While attempting to draw some geometry diagrams in TikZ, I was having problems drawing an arc to mark off an angle. The arc kept falling too short and would not intersect both rays of the angle. (It ...
10
votes
2answers
554 views

Rotate fading in tikz

In tikz I want to draw a narrow long rectangle which is faded at the top and at the bottom. This is supposed to represent a laser beam. I define a tikz fading and it works fine as long as the beam is ...