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)

3
votes
1answer
337 views

How specify tree levels nodes sizes?

I am working on a TikZ tree following the tutorial called A Lecture Map for Johannes from the TikZ manual. I am having trouble to get nodes from deeper level smaller than ones of previous level. I am ...
6
votes
1answer
159 views

Simultanious use of relative positioning and “of” notation

A rather high node has a not so high node on its rigth side. I like the positioning and sizes, but i want both node to share the same Y-Axis of their north border. \tikzstyle{big} =[rectangle, ...
2
votes
1answer
166 views

Sort of “\let” for Tikz shape?

Is there a way to redefine the name of a Tikz object in case of name conflict, like the \let command for a TeX macro? As practical case, I have define a set of path decoration that can simply be used ...
45
votes
1answer
1k views

Toward a Stamper Package

Imagine that you want to simulate a hand stamp on every page in some large documents. It must be an imperfect print, with random page-to-page variations in ink intensity, fading, rotation and blur. ...
5
votes
1answer
1k views

drawing UML class diagram does not work proper with tikz-uml /pgfsetlayers

i'm stuck and have no glue whats the problem. I'd like to draw a UML class diagram with tkz-uml package. Sadly my result is not how it should be. I try to get the example running, using following ...
6
votes
1answer
2k views

How to get larger fonts than \Huge in nodes with tikz?

I need to write large fonts which are included in nodes of a tikzpicture. When I change scale, everything changes but not fonts. Here´s my code: \documentclass[10pt,a4paper]{book} \usepackage{tikz} ...
7
votes
1answer
595 views

tikz: How to mirror the path decoration “text along path”?

I'd like to create labeled nested ellipses in tikz. The labels should follow the shape of the ellipses. I used a path decoration with pre to move the label to the right place, but I couldn't figure ...
2
votes
0answers
48 views

Drawing a vertical line between two nodes in TikZ [duplicate]

Possible Duplicate: Tikz: purely vertical arrow from nodeA.south to nodeB.north I have two nodes of different widths. I can align their left edges. I would like to draw a line from (the ...
6
votes
1answer
335 views

tikz: How to draw nested ellipses which contain bent text?

I would like to draw nested ellipses, where each ellipse shows some text (``Function 1'',...,''Function 4'' to visualize dependence of function calls). I'd like to have the text bent according to the ...
3
votes
2answers
295 views

How to reference an axis label, e.g. xlabel

I'm new to that forum but it already helped a lot, thanks for this! But now I really got stuck. Basically I'm looking for a possiblity to reference the xlabel of an axis in a TikZ picture. The ...
8
votes
1answer
312 views

How to use curve path with fill command in tikz?

I´ve tried using arcs to get the picture below, but I have to precise a specific center for each arc, because they don´t finish in the point which they should. Instead of arcs, I want to use curve ...
13
votes
2answers
4k views

Automatically draw and labels angles of a triangle in TikZ

I'm using LaTeX with TikZ to create a (right-angle) triangle. Now I would like to label each angle by adding a half circle and a text label. Unfortunately I only managed to create a label for the ...
6
votes
1answer
382 views

How to define macro containing TikZ \coordinate

I am trying to create a macro to calculate the center of a shape. Consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\getcellcent}[4]{ ...
8
votes
1answer
242 views

How to add shiny effect

I have the following code: \begin{tikzpicture}[decoration={random steps,segment length=8pt,amplitude=4pt},thick] \begin{scope}[opacity=.8,transparency group] \draw[fill=yellow,draw=none] ...
5
votes
1answer
183 views

Problem with alignment

I have the following tikz code: \schemestart \chemname{\chemfig[][scale=0.6]{ ...
5
votes
2answers
825 views

Tikz and pgf: Grid of Dots with Text and Circles

I wish to have a grid of points or dots along with the labels, and combine them into a single figure like the one below. I tried the closest graph I can for the first grid in the top left, and ...
9
votes
1answer
611 views

Heatmap of a triangular matrix (or a sparse matrix)

So let me first of all shamelessly steal heatmap code from this answer to Drawing heatmaps using TikZ \documentclass{standalone} \usepackage{colortbl} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
12
votes
1answer
3k views

How to introduce a line break in a TikZ node label?

I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked: 1: \node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} ...
7
votes
2answers
298 views

Line break in multipart rectangle node with align specification

I'd like to ask how I can add a line break in a multipart rectangle node. Code that I've written should work but it is not. Can you tell me what I have done wrong, or how can I tune it to make it ...
5
votes
1answer
306 views

LaTeX align/distribute objects à la InDesign?

I'm trying to replicate, in LaTeX, InDesign's align and distribute tools. This is a snapshot of ID's toolbar: Say I want first to align vertically two objects (texts, graphics, boxes,...), and ...
4
votes
1answer
2k views

How to place a textnode at the center of a drawed rectangle

A rectangle label does not appear inside the rectangle but on the corner of it. \tikzstyle{every node} = [align=center] \begin{tikzpicture} \draw (0, 0) rectangle (2, 2) node [center] ...
5
votes
1answer
1k views

Conflict between TikZ with decorations.text library, caption and booktabs packages and progressbar theme [duplicate]

Possible Duplicate: No room for a new \dimen I obtain an error when using simultaneously the above 4 elements. When removing one of them (which I do not wish), the output is fine. ...
3
votes
1answer
1k views

draw cone with gradient fill in latex, tikz [duplicate]

Possible Duplicate: 3D bodies in TikZ How can I draw the following diagram in latex (obviously will look better when drawn in latex), considering I would like to annotate the diagram with ...
12
votes
2answers
4k views

How to connect Beamer blocks by arrows?

I'd like to put 3 beamer blocks on one frame and connect them in a circular order. I tried something with TikZ but it doesn't work. The main problem is that the points n1.south and n2.south in the ...
2
votes
2answers
286 views

Ideas for drawing this plot?

I need idea for drawing the following graph. I, obviously, do not expect full code. I hope I can get an idea about the best way to plot this graph. Should I try to draw each rectangle separately? Is ...
7
votes
1answer
363 views

Labeling non axis parallel braces in tikz

Given two points, the following code draws a brace connecting them and labels it. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,decorations.pathreplacing} \begin{document} ...
5
votes
2answers
302 views

TikZ - Random superposition of drawings

I would like to imitate the first page of this pdf by using the following code for the hard job of making the sudoku grids. Indeed the problem is just to superpose several sudoku grids, and not to ...
5
votes
1answer
586 views

Pgfplots, Legend Color

I have the following problem: I Have a TikZ Picture with two data plots, each with a different color. I want each one to appear in the legend, and I'm using \addlegendentry. The problem is that Latex ...
10
votes
1answer
563 views

Decorated path and arrows

I have defined 2 decorations with this code: \documentclass{article} \usepackage{tikz} \begin{document} \thispagestyle{empty} \usetikzlibrary{decorations} \tikzset{% pneumatic signal/.style={% ...
40
votes
1answer
2k views

How to make a realistic old rubber stamp?

There are examples of how to make nice circular logos in Calligraphic logo in tikz and Recreating a logo (text around a circle), but I'm looking to mimic the impression with a traditional rubber ...
4
votes
2answers
247 views

Fix append pgfplots style to all pictures breaking plain TikZ compilation

I have the following code in my preamble to align the pgfplots in my document. \pgfplotsset{ every axis/.append style={ scale only axis }, /tikz/every picture/.append style={ ...
3
votes
1answer
265 views

How do I know the direction of my TiKZ circuit element?

I'm trying to create my own symbols for current and voltage sources - basically I want the current source as an encircled arrow in the direction of the current, and the voltage source as a + and - ...
23
votes
1answer
878 views

More elegant way to achieve this same camera perspective projection model?

I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
4
votes
1answer
209 views

Where is shapes.gates.ee.IEC referred to in the pgfmanual?

I'm trying to create my own circuit elements for use with the circuits.ee.IEC TiKZ library, using some methods described (in other contexts) in the pgf manual (page 314, chapter 29.4.9). The first ...
1
vote
0answers
207 views

How to make nodes on branchy TikZ chain lay on regular grid (trangular or square) automatically? [closed]

How to ensure that nodes on chain with branches (generated using chains library) are laid out on regular grid, regardless of node shape? I am interested in automatic placement on triangular or ...
10
votes
2answers
471 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
5
votes
2answers
397 views

Parabola starting at the node shape border

Is it possible to draw a parabola respecting the border shape of the node? In a simple line or arc this is possible by using nodes with inner sep as endpoints, but the parabola doesn't care about this ...
2
votes
0answers
458 views

Problem with TikZ area legend [closed]

I am trying to produce an area legend like the following picture. For some reasons, the output of the following code does not produce a single box for each dataset in the legend. ...
8
votes
1answer
378 views

how to use bullets and new line in a rectangle block of tikz? and how to draw arrows from particulat location of rectangle split node?

I want draw something like this: And this is what I am getting: I am facing three difficulties: How to get bullets inside a block? and how to use different font for the same? How to draw these ...
10
votes
2answers
819 views

Tikz: how to create a new shape type: comment

I want to create a flowchart diagram with a comment: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds,calc} ...
9
votes
1answer
3k views

Create curved TikZ single arrow

I want to create a curved single arrow inside some circles indicating rotation. Currently I'm doing it using the \draw arc but the result is very ugly, the arrow tip is very weird when I make the ...
5
votes
1answer
298 views

Referencing a Vertex that has Math Typesetting inside it to make an Edge

I want to create math font inside of my vertex circles, AND draw edges between them. How I typically create network graphs is as follows: \usepackage{tkz-graph} \begin{tikzpicture} ...
14
votes
1answer
420 views

Is it possible to emulate qtree with forest?

This question was actually asked by Alan Munn in a comment to How do I create a LCM tree diagram?. I repeat (and self-answer) it here because the answer is too long to fit the margin :-) qtree is a ...
7
votes
0answers
398 views

TikZ trapezoid transformation (vanishing point) [closed]

Within a TikZ drawing, I want to distort a 2D rasterimage (from \includegraphics) so that it appears to be rotated by 90° around the vertical axis in 3D (it should look perpendicular to the sheet of ...
11
votes
1answer
393 views

Tikz-cd and snake lemma: “loseness” and centered figures

I have to draw a snake lemma, as here: snake lemma. The code is \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \DeclareMathOperator{\Tor}{Tor} \begin{document} ...
9
votes
2answers
1k views

Help with circle and arrows diagram with PGFPLOTS

I'm trying to make a plot similar to this one but I'm having a really hard time. If anyone can help me getting the details, I'll appreciate. I thought I couldn't post questions like this, but as ...
8
votes
1answer
487 views

tikz positioning of nodes

I want to generate a simple organigram with reasonable-looking distances in x and y direction. How can I get equidistant distances between the nodes? \documentclass{article} \usepackage{tikz} ...
9
votes
1answer
1k views

pgfplots: reduce tick density

I am using matlab2tikz to produce plots in latex. The default tick settings produce very dense ticks, making the axes look ugly. I know that I can use something like /pgfplots/xtick={0, 1, ... 3} ...
3
votes
0answers
72 views

Reveal TikZ Mindmap step by step with Beamer [duplicate]

Possible Duplicate: Mindmap tikzpicture in beamer (reveal step by step) Using a mindmap example from here, with only sligth modifications. The target is to control what mindmap pieces are ...
3
votes
1answer
107 views

Make ins and outs longer on ports in ciruitikz

I have the following using circuitikz. I would like to make the lines going from the vertical 2 lines to the inverters be longer. I could create the small sections of lines myself, but I was wondering ...