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

Position two stacked tikz matrices

I would like to take two TikZ matrix, possibly of different dimensions and stack them. My demo code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
7
votes
1answer
170 views

TikZ compiles in body, but not as command [duplicate]

Possible Duplicate: Problem with defining shortcuts for TikZ matrices. When I use the code below to draw a tikzpicture in the body of my document, it works just fine. However, when I define ...
3
votes
1answer
424 views

How create a customized node style?

I want to create a node style which looks like this: After some investigations I was not able to succeed and identified two directions to achieve this goal. I am asking here which direction should ...
9
votes
2answers
345 views

How can I modify arrows to complement this drawing?

Following the answer to this question, I'm now at a point where I have very unsatisfying looking arrows. If I use the double option in the \draw command the spacing is too small, and when I ...
3
votes
0answers
65 views

Bending a curly brace around a circle [duplicate]

Possible Duplicate: Make curly braces wrap around part of a circle I am trying to put a curly brace into a Tikz picture, more specifically, to bend that curly brace along a circular path, ...
10
votes
1answer
698 views

normal coordinate system in tikz using parallel curves

I have a wavey looking curve and would like to show the corresponding normal coordinate system, which is defined by arclength along the curve and (signed) distance from the curve. So there should be ...
4
votes
1answer
563 views

How do I layer nodes/boxes in a drawing?

I'm trying to make a diagram that shows relations of elements in a system, but I don't know how to layer anything. So far I've got: \documentclass{book} \usepackage{tikz} ...
8
votes
1answer
1k views

pgfgantt chart with weekdays and dates

What i have is this: \documentclass[a4paper]{article} \usepackage{pgfgantt} \usepackage{pgfcalendar} \usepackage[a4paper,landscape,left=1cm,top=1cm,% bottom=1.5cm,right=1cm]{geometry} ...
7
votes
1answer
2k views

Tikz flowchart: center text + math in node

I'm trying to draw a flowchart with TikZ. In one of the decision "diamonds", I have both text and a bit of math between $. \node [decision, below of=buildbid, node distance=1.8cm, aspect=8, minimum ...
5
votes
1answer
271 views

Plot weighted frequency matrix

I wish to create this plot preferably in pgfplots or tikz. I have actually got a version plotted (with help from SO), but I have used R and exported the plot using tikzDevice. I can't post the ...
7
votes
2answers
256 views

How can I shrink a path to the center?

I'm not quite sure if I formulated the title correctly. I would like to get a result similar to the hand-drawn graph and I got the right one: Here is the code: \documentclass{article} ...
9
votes
0answers
1k views

How do I contribute to CircuiTikZ? [closed]

Update (29 Dec 2012) The author has already update CircuiTikZ (Thank you, Massimo!). It should be integrated into the CTAN official repositories in a few days. The package is now hosted in Github for ...
33
votes
5answers
4k views

How to draw a sine wave on a circular path in tikz

I want to draw circular waves like these: in TikZ.
5
votes
1answer
325 views

tikz gives null character in \document

Please why does \begin{document} \begin{tikzpicture} \foreach \x [remember=\x as \lastx (initially A)] in {B,...,H}{% $\overrightarrow{\lastx\x}$, } \end{tikzpicture} \end{document} give Missing ...
9
votes
1answer
1k views

Create a ring diagram in TeX

To make it short, I am searching for a 2D variant of this plot How to design a 3D donut pie chart with pgf-plot? Especially the label for each segment are important for my application. I don't need ...
0
votes
1answer
209 views

Covering map picture [closed]

I wish to draw a crazy covering map showing charts any help?
2
votes
1answer
255 views

How can I edit this tikz example to do what I want? (Porter Model diagram)

I am trying to change the direction of the arrows and generally figure out how best to manipulate this diagram. I have placed my own text but I want the box with the dotted lines do have a white ...
19
votes
3answers
3k views

Genogram or family tree with PGF/TikZ

Since it has been recommended to me in Stack Overflow to post it here, I will do so: I want to draw a genogram with LaTeX. I tried to do this with TikZ, but since you need to model at least 3 ...
2
votes
1answer
165 views

tikz bug when creating stackoverflow tags?

I am still working on my template for stackexchange like resume, and I noticed that if I issue the \LaTeX macro inside a Tikz box, the A gets trimmed. The header of my document contains: ...
7
votes
2answers
678 views

TikZ: Precisely controlling arrow tip position

Usually, when drawing a path with an arrow tip in TikZ, we want the tip to end precisely at the last point of the path, and this is what TikZ does by default. However, with some specific arrow tips, ...
8
votes
2answers
855 views

Drawing a venn diagram with two nodes using Tikz?

How do I create a Venn Diagram with entities no larger than below, but with text scaled to fit; and circles in alignment horizontally? \documentclass[a4paper, 14pt]{article} \usepackage{tikz} ...
31
votes
1answer
49k views

How to draw a filled rectangle without a border using TikZ?

Method 1: \draw [fill=orange] (0.1,0.1) rectangle (0.2,0.2); For the line above, by default, the filled orange rectangle will have a black border. Method 2: \draw [fill=orange,orange] (0.1,0.1) ...
6
votes
2answers
4k views

How to draw an elliptical arc in TikZ given only opposite extreme points (vertices) of the ellipse?

Given two nodes (a) and (b), I would like to draw an elliptical arc from (a) to (b) whose major axis is the segment connecting (a) and (b) (the minor axis can be some arbitrary length). The main ...
9
votes
1answer
1k views

assistance on good handling of text on TikZ paths

I am putting together an ornate logo using TikZ. The logo as it is currently is as follows: I request assistance on handling the lowermost outer text (which reads "UNIVERSITY OF GLASGOW"). For the ...
8
votes
2answers
580 views

How to draw multiple Rectangles from input data file

I want to draw set of rectangles on axis based on input file. My .tex file should be some thing like that \documentclass{article} \usepackage{tikz,pgf} \usetikzlibrary{plotmarks} ...
21
votes
3answers
3k views

TikZ: radial shading of a ring

I would like to have a radial shading of a ring, from inner color (red) at inner radius r1 > 0 to outer color (white) at outer radius r2 > r1. But with \filldraw[even odd rule,inner color=red,outer ...
6
votes
1answer
618 views

Drawing a node surrounding arbitrarily places nodes

I'm trying to create a (flexible) method of creating a path around a set of nodes. Let me demonstrate with the help of a MWE: \begin{tikzpicture}[ every node/.style={draw,black}, every ...
2
votes
0answers
234 views

Jpgfdraw and transparency problems [closed]

I have built dozens of shapes with jpgfdraw . The problem I have is problems with the transparency of shapes. Why this happens? is there a solution? I take this as an output in pdf after I've done ...
26
votes
2answers
2k views

Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up

This idea came into my mind while I was listening to a speaker presenting his results in a seminar, he used lots of equation references in his later slides, however I can't remember which equation he ...
7
votes
2answers
565 views

Odd behaviour with arrows and multipart rectangles

I recently posted a question Display issues drawing DNA sequences with TikZ. The issues I described were for the most part resolved, but one remains. I managed to simplify my example down to show the ...
5
votes
1answer
173 views

redeclare an arrow in TikZ

As you know, I'm adding more arrows to the code in this answer (maybe tomorrow). At this point, I'd like to overwrite the arrows declarations so that one can simply write -latex instead of -latex new, ...
4
votes
2answers
623 views

Replacement for \curveto in the tikz library - Inkscape export svg to tikz

I need to draw a complex curve and I wanted to help a vector program Inkscape. In first step I tried to use Inkscape to TikZ exporter (http://code.google.com/p/inkscape2tikz/)to convert curve to tikz, ...
7
votes
1answer
1k views

Dashing one edge from parent in a tree: why does it work

This is related to the question How to make a connection in a tree with a dashed line?. Therein, it is asked how one can make one connection between a parent node and a child dashed. The final ...
5
votes
1answer
397 views

Pgf plot square not positive

I am using pgfplot to draw a node and a cusp but it seems to be that the squares \x^2 are returning negative numbers to the coordinates. This is strange. I was using the same code before and getting ...
5
votes
1answer
473 views

matlab2tikz and bar3 function

If I use the function hist3() it perfectly works with matlab2tikz. But if I use the function bar3 I find this in my matrix.tikz: % This file was created by matlab2tikz v0.2.3. % Copyright (c) ...
5
votes
0answers
6k views

Arrow end type stealth unknown [closed]

This is the first time I approach at drawing diagrams with latex. I have included the tkz library and the tkz library shapes.multipart. As my code is processed I get back a bunch of nasty errors, on ...
11
votes
2answers
2k views

Cut one side of a rectangle node in TikZ

I would like to draw two consecutive rectangle nodes (one is next to the other with an intersected edge). How to cut one side of a rectangle node in TikZ so that the intersected side looks like ...
8
votes
1answer
106 views

Without changing the shape of the figure, how I can decrease the size?

\begin{figure} { \begin{center} \begin{tikzpicture}[scale=2.00] \node [draw, thick, minimum size=3cm, circle] at (0.5,1.3) {}; \node [draw, thick, minimum size=3cm, circle] at (0.0,0) {}; \node ...
3
votes
2answers
458 views

Genogram with LaTeX [duplicate]

Possible Duplicate: Genogram or family tree with PGF/TikZ I want to draw a genogram with LaTeX. I tried to do this with tikz, but since you need to model at least 3 different relations ...
3
votes
1answer
592 views

Tick numbers on x and y axis

How can I draw the x and y axis so that latex displays the tick numbers on it? (1 unit) I try: \begin{center} \begin{tikzpicture}[scale=0.5] \draw[very thick,blue] (3,-4) ellipse ({4} and {3}); ...
4
votes
1answer
132 views

Why does pgffor not calculate correctly?

I have the following problem: I want to draw some moiree effects in tikz. This seems to be no problem. I did it without any error (two circles of trapezia). Now the two rings should be moved a bit. I ...
5
votes
1answer
196 views

Harsh corner on a shape drawn with rounded corners

I'm trying to create a custom shape surrounding some nodes. I have used a \path to draw the shape but I don't get a rounded corner where I begin drawing the shape. Here's my MWE: \begin{tikzpicture} ...
8
votes
1answer
7k 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. ...
15
votes
3answers
3k 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
410 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
601 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
694 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
557 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
580 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 ...
3
votes
1answer
755 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. ...