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)

7
votes
1answer
33k 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
332 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
867 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
141 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 ...
7
votes
1answer
784 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 ...
23
votes
2answers
1k 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
4answers
2k 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
2k 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
750 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.
12
votes
3answers
15k 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
1k 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
2k 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
785 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 ...
22
votes
3answers
5k 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
66 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 ...
4
votes
5answers
2k 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
457 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
97 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} ...
10
votes
1answer
5k 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
958 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
182 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
1k 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 ...
16
votes
1answer
3k 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 ...
14
votes
1answer
831 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
3k 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
187 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
3k 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
311 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
229 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 ...
10
votes
3answers
2k 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} ...
10
votes
1answer
643 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
397 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
172 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
805 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 ...
9
votes
1answer
709 views

Placing anchor before and after text in multipart rectangle

In the following graph, i would like the arrows to be originated inside the box and not in the border, possibly aligned and next to the text (for example, right after the word "Pointer:". Here is ...
8
votes
1answer
1k views

how do I escape a comma?

I have a tikz picture and at some point I draw the following node: \node[thick, scale=0.5, minimum size=1.3cm, fill=red, circle, draw, fill opacity=0.3, ...
15
votes
1answer
1k views

Automatic background coloring in listings using tikzmark

I am authoring Beamer presentations that feature numerous code listings, and I am required to highlight portions of code with semi-transparent balloons. Yet I've come up with a solution that uses a ...
1
vote
0answers
67 views

TikZ: a point on the ray [duplicate]

Possible Duplicate: What is the equivalent for ([nodesep=10pt]{B}A) in TikZ? Consider a ray [AB), where A and B are \coordinates in TikZ. One wants to select a point M on this ray such that ...
8
votes
1answer
307 views

Start line in the corner of a node

Hwo to put start line in the corrner of a A node? How to force TikZ to draw C-level siblings to the right direction. \documentclass{beamer}% \mode<presentation>% { \usetheme{Madrid}% ...
12
votes
1answer
6k views

tikz: positioning above of point a, left of point b

I want to create a blockdiagram using tikz. I would like to use "above of, below of, etc." to position my nodes in order to keep it as flexible as possible. I would no like to position a node D on ...
5
votes
2answers
228 views

Highlighting code introduces extra space

I am trying to highlight portions of code inside a listings environment. However, using tikz introduces some extra spaces that I do not understand and would like to ask how I can rid of them. Here is ...
8
votes
1answer
192 views

TikZ path doesn't work with xparse generated macro

I am trying to use TikZ together with a macro that I defined via \NewDocumentCommand (for multiple optional arguments), but it doesn't behave as expected. TikZ is giving up on the path instead of ...
6
votes
1answer
241 views

How to change text leading in node

My goal is to get text in a node closer. Here is how it should be done: Look at XXXXXXXXXXX node. \documentclass{beamer}% \mode<presentation>% { \usetheme{Madrid}% ...
7
votes
5answers
1k views

How to draw this piecewise graph using PGF/TikZ?

Given Is there an easy way to define the condition as "rational" and "irrational" using PGF/TikZ? A minimal example would be greatly appreciated. This is one of the rational/irrational graphs in ...
6
votes
1answer
322 views

Is pgf-umlsd incompatible with pgfplots?

The following document renders a nice sequence diagram for me: \documentclass[12pt,english]{scrartcl} \usepackage{babel} %\usepackage{pgfplots} % Sequence diagrams: \usepackage{tikz} ...
60
votes
3answers
12k views

Outsourcing TikZ code

My Tex files get very confusing since I have multiple long TikZ code in them. How do you organize your files when it comes to TikZ?
11
votes
1answer
328 views

\foreach has a problem with ‘initially’ argument in remember part

Is there an error in my code or did I find a bug? It seems like the \foreach statement doesn’t increase \lastn if there is an initally (value) but it works with a manually given initially value ...
8
votes
1answer
629 views

Can someone pgfplots the following picture concerning confidence intervals?

I've been trying to use the following code to produce it, but have no idea how to shade in the tails I am interested in. By the way, the line pointing the (100-C/2)% can be an arrow, does not have ...
6
votes
1answer
788 views

What packages or tools best support any 3D line, plane, surface intersections?

I have not explored the PSTricks' pst-solides3d, TikZ's equivalent packages, Asymptote as a tool, etc, yet. I have a task to make some simple 3D diagrams that are related to 3D geometry subject we ...
10
votes
5answers
631 views

How to fill the limits of the two curves?

I want to fill the limits of the two curves (as shown). This is my code \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} ...