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)

1
vote
0answers
70 views

Normalized coordinates for image overlays in TikZ [duplicate]

Possible Duplicate: Simplest way to overlay a text + rectangle label an image? Drawing on an image with TikZ I read the following in the TikZ manual: There are different ways of ...
8
votes
3answers
7k views

How to make nodes to simple dots instead of being named

I currently have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1] \tikzstyle{every node}=[draw,shape=circle] \path (0,0) node (p0) {$p_0$} ...
6
votes
2answers
990 views

TikZ: position of node with shorten-option

I have the following Code \draw[style={shorten >=-1cm}, dashed] (C) -- (CENTER) node {NAME}; Is there a simple way to position {NAME} at the end of the "shortened" line? If I use the code above, ...
7
votes
2answers
1k views

Tikz overlays on subfigures in memoir

Say I have the following code in a document typeset with memoir: \begin{figure} \centering \subbottom[]{ \label{sub1} \includegraphics[width=0.4\linewidth]{test.png}}% \subbottom[]{ \label{sub2} ...
9
votes
1answer
1k views

position of axis multiplier and one other

I have a question concerning the appearance of the multiplier above axis if scaled ticks = true is used. I like to have two curves in one plot. The example shows my problem. I like to have scaled ...
10
votes
1answer
2k views

Is it possible to “transform” a histogram into a density plot in pgfplots?

I just figured out that there is the pgfplots package with the hist feature, that allows to "draw" histograms based on an external data table. What I'm looking for is a possibility to transform a ...
3
votes
2answers
511 views

TikZ: Calculate “pre length” based on path length

I would like to automatically calculate the pre length value for a line decoration to be "centered". Let me explain it by this example: \documentclass{standalone} \usepackage{tikz} ...
49
votes
4answers
9k views

3-dimensional histogram in pgfplots

I have a simple 3d histogram which I want to import into pgfplots, e.g. using matlab2tikz or by hand. PGFplots does not offer 3d histograms. Is there an easy way to do this?
2
votes
2answers
2k views

How can I shift the text of a node?

I'm using tikz to represent an axe. The code is the following: \documentclass[a4paper,oneside,12pt]{article} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{trees} \usepackage{relsize} ...
12
votes
1answer
1k views

Arrows coordinates in TikZ

I want to write a macro that uses TikZ to create a photo like this: . But, finally I came up with something like this: As you see, the problem is that the arrows go to the wrong side of the end ...
8
votes
1answer
1k views

How can I scale a TiKZ image created in MATLAB in my Tex File?

I'm currently having trouble scaling TiKZ figures in LaTeX and wondering if anyone can help figure out what was going on, or suggest a smarter way to do things. I'm currently creating plots in MATLAB ...
18
votes
2answers
4k views

TikZ: Line with large dots

Is there a simple way to draw a line like with \draw[dotted] (0,0) -- (1,0); but with larger (radius about 1mm) and more distant (about 4mm) dots? I've looked in the TikZ & PGF manual, section ...
2
votes
2answers
260 views

How can I draw an axis with values on some points?

I think the figure is very simple. Nevertheless, I can't figure out how to do it. Any help?
6
votes
1answer
2k views

How to change the shape of TikZ's mindmap children?

Consider the original example of tikz's mindmap. The standard shape of both parent and children is circle. The official document states the difference of TikZ's mindmap from standard mindmaps by using ...
13
votes
3answers
1k views

DIN conform arrowheads and hatching in TikZ?

I'm curious how the following simple figure can be recreated with all its characteristics, i.e the DIN correct arrow tips and the hatched areas. I'm very aware of various packages for tikz, where you ...
5
votes
2answers
1k views

Tikz diagram with stacks and box

I'm trying to make the diagram in Tikz. I can draw the stacks by adapting this example and the box. But how can I put the description around the boxes. Also how to add the two arrows between the ...
3
votes
1answer
172 views

imagen beside a math

how I can make me stay in the following way but instead of using $ using the command / begin {align} for me to number the mathematical formulas to reference them later? \begin{center} ...
11
votes
2answers
1k views

How to draw automatically a filled wrapper around a node or a set of nodes?

The best way would be to use a style. Manually there are at least three ways to get a filled wrapper : \documentclass[11pt]{scrartcl} \usepackage{tikz} \usetikzlibrary{ fit,backgrounds, calc,scopes} ...
16
votes
1answer
8k views

Place label in middle of line with TikZ

What is the best way to place a label in the middle of a line with TikZ? I mean smack dab in the middle of the line, not above or below it. The following is close \begin{tikzpicture} \draw[|->, ...
24
votes
1answer
2k views

Perspective transform

The following piece of eye candy: was produced using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \usetikzlibrary{shadows.blur} ...
1
vote
0answers
461 views

Generate trees based on number of nodes and children allowed [closed]

I am doing an experiment, and would like to generate images of Binary Trees and Exponential Trees using LaTeX. The difference between these two structures is the number of children allowed per node ...
4
votes
1answer
9k views

How to put text in an existing figure/image (maybe with tikz?) [duplicate]

Possible Duplicates: Drawing on an image with TikZ How to superimpose LaTeX on a picture? I was wondering if it's possible to have an existing image (possibly in a figure environment) and ...
111
votes
6answers
8k views

How productive are you with TikZ?

First, I must say I have very limited knowledge about PGF/TikZ. Most things I do are blind copy-pastes of examples I find on the Internet with lots of trial-and-error and googling around. After ...
4
votes
3answers
2k views

TikZ signal flow graphs illustrating Mason's rule

I'm trying to make some Automatic Control charts illustrating Mason's rule, but couldn't find any suitable library. Is there any way to ease the process of creating these with TikZ? An example can be ...
6
votes
2answers
470 views

Keeping the same style inside a scaled plot

I have a graph with three different curves, two of which are very small compared to the other. I therefore decided to add a magnification of such curves inside my graph, in the following way: ...
6
votes
2answers
951 views

Insert a separate mark inside a pgfplots graph

First of all, let me apologize if the title is not enough clear, but I didn't know how to explain myself better. I have a graph consisting in three different curves that are covering almost the same ...
10
votes
1answer
662 views

Label automatically positioned so that it doesn't overlap anything

I produce automatically generated LaTeX-files with nodes and links. Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
13
votes
4answers
4k views

High level macros and environments based on Tikz

I was browsing the tikz examples that I found this wonderful example. The example uses tikz to create a tex environment to produce a framed text. The result looks like this: The underlying process ...
6
votes
4answers
913 views

Drawing a Zero Pole plot

I'm trying to draw a zero-pole plot for use with some filter design. Since i couldn't find any standard way to go about this, I tried using the polar library of PGFPlots. I'm having some trouble, ...
6
votes
1answer
916 views

Multiple TIKZ-UML usecase not showing correctly when included in document

I'm using TIKZ-UML to create four simple usecase diagrams. I have made them individually in seperate files to make sure that they all compile as they should. I include the required packages in my ...
103
votes
2answers
21k views

Should \tikzset or \tikzstyle be used to define TikZ styles?

The PGF/TikZ manual states in section 12.4 Using Graphic Options, page 120 (v2.10), that TikZ styles can be set using: \tikzset{my style/.style={<tikz options>},...} However, in several ...
5
votes
1answer
447 views

Hiding a part of a plot

Is there a way to hide a part of a plot, possibly by specifying the interval numerically? I have a plot with xmin, xmax, ymin and ymax defined and I need to move it from the y axis without using ...
2
votes
0answers
609 views

Tikz: Smooth spline enlargment [closed]

Give that my previous idea may be too difficult TikZ Region bounded by points is it possible to draw a smooth(but "programmable") spline that intersects(or almost intersects) a group of ordered ...
7
votes
2answers
284 views

Big quotes drawn with TiKz does not compile

My problem Sorry to give such a long code but my problem appears in it. I don't see why the first long code given below does not work : more precisely, the problem comes from the big quotes drawn ...
3
votes
2answers
763 views

How to align rows in Tikz nodes & tabular environment

In the attached image, you can see the text is not aligning properly. At the end it started to align as required. Sorry I can not reduce the MWE any more. since the preamble in big so I will put ...
5
votes
1answer
662 views

Is it possible to refer to node label and reuse it for labeling other nodes in tikz?

I would like to "reuse" some nodes' labels, as in example below \documentclass[a4paper,12pt,oneside,titlepage]{report} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ label ...
7
votes
2answers
592 views

How to put environment text inside node?

Consider a simple environment in the documentclass as \newenvironment{abstract}{ \node (tbl) { }; } The content of \begin{abstract} Content \end{abstract} will goes ...
7
votes
1answer
777 views

TikZ Region bounded by points

I have a set of points. I would like to "enclose" the points by a region. Since a picture is worth a thousand words: The dots are the points I want to enclose. I want the ability to control the ...
13
votes
5answers
6k views

TikZ Automata Make An Arrow To Nowhere

I have the following TikZ code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,automata} \begin{document} \begin{tikzpicture}[shorten >=1pt,node ...
14
votes
2answers
618 views

Error with \foreach in TikZ

In the MWE below \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \i in {0, 1, 2, 3} \draw (\i, 0) rectangle +(0.5, 0.5); % \draw (\i, 1) rectangle ...
21
votes
2answers
4k views

Highlight a table row with a rectangular overlay

I am trying to highlight the row of a table by drawing a rectangle over that row. A wrinkle is that the code for the table is pre-written from external statistical software and then included in the ...
6
votes
3answers
957 views

Alignment of colorbar with colorbar to name

I am trying to make a group of plots with groupplots sharing the same colorbar and the same y axis. An example: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} ...
4
votes
3answers
2k views

Alignment of the bar labels of ganttbar

The labels of \ganttbar in pgfgantt are right aligned by default (at the border of chart). Is it possible to have it left aligned?
4
votes
2answers
6k views

Drawing simple edge, no arrow

I have \begin{tikzpicture}[->,auto,node distance=3cm, thick,main node/.style={draw,font=\bfseries}] \node[main node] (111) at (0,1) {$X_{1,1}^{(1)}$}; \node[main node] (121) at (0,2) ...
4
votes
1answer
3k views

Plot and label data from file with PGFPlots

Given some data from a file, I would like to use the first two columns as coordinates, and the second two columns as label for every point. The data is given in this form: x y ...
4
votes
1answer
359 views

Typesetting one symbolic coord differently than the others

In my plots, I have one bar (labelled dummy below) whose tick label needs to be typeset differently. Here's my current attempt (and minimal example), which doesn't quite work yet: ...
6
votes
1answer
747 views

Symbolic coordinates with commas

How can I use symbolic x coords={} with commas as decimal separators? For example, I need to use symbolic x coords={0,1.5,1.3}, which gives full stops as decimal separators. Using use comma does not ...
3
votes
1answer
1k views

tikz, tikz circuits, relative coordinates

I am trying to draw a dimensioned line, <---- 2 cm ---- > in the x, and y directions on a circuit diagram. Using absolute coordinates, there is no problem. However, the display is faulty using ...
1
vote
0answers
55 views

TikZ in (sub)section title [duplicate]

Possible Duplicate: How to add a tikz/pgf command to section command I would like to add a tikzpicture to a section title using: \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ ...
9
votes
2answers
992 views

Wrap Caption Around TikZ Figure

I have a TikZ figure that appears as follows. The figure also has a caption. I'd like the caption to fill up that blank space in the bottom-right and bleed over into the space it current occupies. ...