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)

8
votes
3answers
304 views

Problem using macros to define tree substructures

Relatively simple problem: I want to use macros to define substructures of a tree. In the following example for illustration, I want to define some children (left and right) to be used several times ...
2
votes
2answers
451 views

How to join two arrows with (TikZ) [duplicate]

Possible Duplicate: Merge arrows with TikZ Is there a way to join two arrows? They should start from two different nodes, join and point to a third node. That would be great! here I have a ...
3
votes
1answer
398 views

How to update tikz properly, or how to revert what I did

I used to be able to compile the following LaTeX: \documentclass{article} \usepackage{tikz} %\usetikzlibrary{arrows,backgrounds,plotmarks} % even simpler \begin{document} Lorem ipsum dolor sit ...
2
votes
3answers
1k views

Problems with including a tikz tex file generated by Octave (MatLab clone)

I have plotted a figure in Octave and printed it as a TikZ figure (see the device option) to a tex file called comparison_tikz.tex, and I have imported it into my document with the line ...
9
votes
1answer
1k views

Titlepage with tikz

I need some help with a titlepage for tikz I want to create the following... 3 red lines, a gray space a green space but I already fail with just creating a line across the whole page... \draw ...
1
vote
0answers
2k views

! I can't find file `pgflibrarytikz*.code.tex' [closed]

I can compile the following LaTeX: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,plotmarks} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
8
votes
3answers
1k views

use of tikzpicture matrix in align or gather environment

So far I have found using the matrix command in the TikZ package is the only way of drawing a T-shape around the bottom row and middle column of entries in a matrix. I now need to use this matrix in ...
7
votes
1answer
1k views

Accessing latex fonts from other programs

How can I get the Latex fonts to work from other programmes (e.g. Inkscape)? I have created some graphics as pdf files with Tikz/PGF/PGFPlot (using miktex/TexnicCentre) using the standard latex fonts ...
3
votes
1answer
288 views

Collecting tikZ drawings in a box

Please is it possible to collect tikz picture in the following way? I get \box40=\hbox(0.0+0.0)x0.0 []. I would even prefer a \vbox, but I get a worse outcome. \makeatletter \newbox\tempbox ...
5
votes
1answer
293 views

Aligning nodes in TikZ calendar

There is probably something simple I'm missing, but I have tried several variations, and I can't seem to get the following right. This is some minimal code that demonstrates the problem: ...
6
votes
2answers
441 views

Cross product using the checker method

I saw an old question on how to obtain arrows inside of matrices using arrows. And thanks to Altermundus I was able to hack together the file below: \documentclass[12pt]{article} \usepackage{tikz} ...
11
votes
1answer
610 views

Draft option in TikZ like graphicx

We know the use of [draft] in graphicx package \usepackage[draft]{graphicx} Do we have any option like [draft] in tikz? Sothat we need not compile the tikz picture for every run and need not look ...
10
votes
1answer
535 views

How can I slant the rectangular glow box with lighting effect in TikZ

I can get the corresponding lighting effect as Ivan Andrus' codes, but here I want to rotate or slant the box with lighting effect of the following type: So I added the codes "xslant" and "yslant", ...
7
votes
2answers
588 views

Scale all TikZ images in a document by the same factor

Is it possible to scale all TikZ pictures in a document by the same factor globally? Something like \usepackage[scale=0.9]{tikz} doesn't work.
4
votes
1answer
1k views

Problem with pgf-plots and \pgfplotsset

Sorry for the somewhat long code, this is as minimal as I could make it. The first code is for typesetting pictures to indicate how a function increases and decreases. It is taken from a previous ...
3
votes
0answers
123 views

Draw Tree using tikz [duplicate]

Possible Duplicate: Drawing a tree where many nodes have the same child in TikZ I'm trying the draw a tree using the tikz package, \begin{center} \begin{tikzpicture} ...
5
votes
1answer
429 views

Tree using Latex

I want to to reduce the size of the node to which they perceived better in my presentation; the problem is that the nodes are overlap. I have the code from Drawing a tree where many nodes have the ...
6
votes
0answers
582 views

\sqrt(2) in TikZ results in illegal unit of measure [closed]

The code snippet below works well on my Mac but under Linux I get the error messages "! Illegal unit of measure (pt inserted)." "! Missing number, treated as zero." ! Package calc Error: ...
16
votes
3answers
3k views

TikZ: How to draw an isometric drawing in tikz

In the below image top: rectangles Bottom: isometric views. How to do it in TikZ? Similar result but not correct... \documentclass{article} \usepackage{tikz} \begin{document} ...
10
votes
4answers
551 views

No text=none in TikZ?

In TikZ, there are draw=none and fill=none options to turn off stroking and filling operations. However, there doesn't appear to be a corresponding text=none option. If I try \tikz \node[text=none] ...
9
votes
1answer
701 views

draw an ellipse into a Tree picture -tikz package

I have draw a tree using tikz package like this \begin{tikzpicture} \tikzstyle{level 1}=[sibling distance=40mm] \tikzstyle{level 2}=[sibling distance=20mm] \tikzstyle{level 3}=[sibling ...
3
votes
2answers
246 views

Why is the size of my converted EPS files zero?

When I use auto-pst-pdf to convert an EPS (using \includegraphics) inside a TikZ picture, I get a picture with zero size (as near as I can tell) and no picture at all of I try to draw a bounding box ...
10
votes
1answer
1k views

TikZ: how to draw chained tabular material

I am new to TikZ, and this is probably regarded as do-my-homework-for-me question. I'd like to draw a diagram like this: First I need the very basic help on the segments themselves. I have tried ...
1
vote
1answer
1k views

Why does \includegraphics fail when using TikZ's externalization?

I'm trying to use \includegraphics and the auto-pst-pdf package to convert and import an EPS file, but when I enable TikZ's external library, \includegraphics fails with an error message: Package ...
2
votes
2answers
2k views

How to set TikZ figure size and font size to match my doc?

After some configuration nightmare i've managed to print out GNU Octave plots (via gnuplot) to tikz-pgf and display it in my LyX document.. %& -shell-escape -enable-write18 ...
7
votes
2answers
1k views

Center a Node Vertically TikZ

I'm using TikZ to create the following drawing: So far so good, but now I'd like to center the node with the gray background vertically. Here's its code: \setlength{\arraycolsep}{2pt} ...
15
votes
1answer
2k views

Drawing a Markov chain using Tikz

I want to draw the following Markov chain using tikz, but I have a few problems that I do not know how to handle: I want the transition grid to look exactly like the picture. All outgoing edges are ...
5
votes
1answer
619 views

Counting points from csv file pgfplots

I am importing data from a .csv file to obtain a scatter plot, here's the MWE: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ jitter/.style={ x ...
7
votes
1answer
615 views

How to make correct shading with hsb color model?

I want to use hsb color model to shading. First rectangle shows a shading using rgb color model. Second rectangle shows a shading using hsb color model. But I don't understand why I don't obtain the ...
6
votes
1answer
332 views

Problem with gnuplot

[fr] La 1ere figure ci-dessous permet de représenter la conversion analogique numérique avec \NN le nombre de niveaux, réalisée avec le code suivant (il faut autoriser gnuplot). Comme vous pouvez le ...
11
votes
1answer
1k views

Drawing a tree where many nodes have the same child in TikZ

I'm trying the draw a tree using the TikZ package, but I don't know how to draw a child node that has many parents. An example for that, is given by this picture My problem is how to draw the level ...
5
votes
1answer
686 views

TikZ tree whose children are located at specified positions?

Is there a way to construct a tree whose children are located at specified positions, so that TikZ computes the locations of the other nodes in the tree based on the level distance and sibling ...
5
votes
2answers
2k views

Set total width of TikZ node / Resize lrbox

I am currently preparing a poster for a conference and decided to use 'beamerposter' for that purpose. As I don't really like the standard templates I decided to go after a design similar to this ...
5
votes
1answer
412 views

Using \foreach of the forarray package to draw a path in TikZ

I want to create a graph of values I defined in an array using \drawwith TikZ. I am having troubles including the part of the draw-command generated by an \ForEach -loop (forarray-package), which ...
5
votes
1answer
283 views

Fill Nodes according to table/data file

I have a lattice of nodes generated by two \foreach commands. So each node has two numbers which define its location (essentially x and y coordinates). Is there any way to fill a circle at that node ...
8
votes
2answers
330 views

TikZ:How to consider a curve as an axis in a chart?

In the shown image bottom and left lines are considered as axis...:How to consider left curve as an axis in the chart? Psychrometric charts: ...
16
votes
2answers
827 views

Using tikzlibrary spy without magnifying line width and/or mark size

I am having two set of data and am trying to create an inset to show, where they differ. Therefore, it does not help me to simply magnify the area in a "canvas style" thus magnifying also mark sizes ...
8
votes
3answers
219 views

Applying TikZ options stored in a file

I need to set some TikZ options that have been written to a file by a script. I thought I could use a helper macro defined with \edef and the expandable version of \input as described in Why is ...
14
votes
1answer
2k views

How to use “fit” to frame the nodes and labels

I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels: \documentclass{article} ...
5
votes
2answers
386 views

TikZ:How to connect nodes in another way

I have this... \documentclass{standalone} \usepackage{tikz} ...
3
votes
3answers
3k views

How to make pgfgantt scale to specific widths in the page? (ex. textwidth)

I'm trying to use pgfgantt to create a gantt chart for a project spanning many weeks, thus the following code would overflow through the right margin. I can't find a way to alter the size of the grid ...
10
votes
4answers
917 views

How create circle node in Tikz with T from lines inside? T made split node to 3 sectors

I woud like create 3 sector circle node. See the following figure sectors are bounded by lines
7
votes
1answer
1k views

How to make the plot mark size independent of the scale?

the next code \documentclass{article} \usepackage{tikz} \usetikzlibrary{plotmarks} \begin{document} \begin{tikzpicture} [yscale=2] \draw [very thin, lightgray] (0,0) grid (4,4); \draw [cyan] plot ...
15
votes
2answers
3k views

Making a square centered at a point in TikZ

Im a newbie to TikZ, so this question may seem stupid. Im a looking at a facility location problem in the plane where I have generated some data points consisting of (x,y)-coordinates for each ...
8
votes
3answers
836 views

TikZ: edge should not interfere with other elements in the graph and label positioning

I'm quite new to TikZ and I created the following graph: \begin{tikzpicture} \node[draw,circle] (n4) at (2, -3) {4}; \node[draw,circle] (n5) at (2, -4) {5}; \node[draw,circle] (n6) at (1, -5) {6}; ...
4
votes
3answers
1k views

How to draw star in TikZ background

I draw shapes on background via pgfonlayer \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \begin{pgfonlayer}{background} ...
3
votes
1answer
151 views

How to automatize the creation of arrows in TikZ?

I'm creating yet another graph and I don't have particular problems. I can easily create the nodes, assign IDs and create arrows/paths using these IDs. But when there is a lot of content and there is ...
37
votes
5answers
33k views

TikZ set node label position more precisely

This seems like it should be really easy but I can't seem to find it anywhere... I'd like to be able to fine-tune the positioning of a node label. I'm aware of the ...
10
votes
1answer
1k views

pgfplots how to nicely place nodes

The picture produced by code blow, there are two problems I have. (1) the number above point overlapped (2) the precision of number is not right, eg. I want 0.913, not 0.91 For the first problem ...
18
votes
5answers
915 views

Convert font letters to vector format and fill with a pattern

I have worked with Illustrator and CorelDraw and I usually take fonts and convert them to curves after which I would fill in the curves with patterns, merge them with other vectors or the sort. Is it ...