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)

5
votes
0answers
571 views

Tikz / LaTeX Indian Calendar [closed]

There are many calendar templates out there but it did not give me good ideas on how to create the one for my requirement. Indian calendar has lot more information on days other than just the numbers. ...
16
votes
2answers
1k views

Tikz-PGF: Draw integral test plot

So I'm doing a report on convergence tests in LaTeX, and would like to produce a diagram demonstrating the integral test for convergence. I am somewhat new to LaTeX, and a total n00b when it comes to ...
7
votes
3answers
729 views

Creating stacked shapes for tikzstyle with

I'm working on a diagram, and I'm exploring TikZ for doing it. I searched, and looks like there is no easy way of doing diagrams, like pgfplots for plotting. So, I need to create some special node ...
8
votes
4answers
3k views

Neural Network representation

I would like to translate to Spanish a diagram that represents a neural network, the diagrama is something like this: I would like to clone the design and effects, so I need some examples to do ...
10
votes
2answers
2k views

pgf(plots) node shadow/opaque pin

Is it possible to place a shadow/fill/opaque setting on text of a node pin? I know I can do that with the actual node, but I am using \node in pgfplots to mark some stuff on graphs, and it would be ...
0
votes
1answer
181 views

How to handle large images?

I am using tikz to generate an image which is wider than the the available space for the document. The figure will be later added to another document. When I watch the figure in my document reader ...
4
votes
1answer
265 views

How to get the tikz/font pgfkey value and pass is to \pgfnode command

Let's say that I'm writing a decoration where I use the \pgfnode command in it. It works well but if I change the pgfkey TikZ/font to any dimension, it is not passed to the nodes in the decoration. ...
3
votes
1answer
291 views

defining coordinates in advance in tikz figure

I am trying to create a circle of elements with some randomness to it. I want to predefined the coordinates to create complicated element. I am using this: \newcommand{\elm}[2]{ \shade [ball ...
3
votes
3answers
516 views

Creating a cyclic graph whose nodes are row vectors [duplicate]

Possible Duplicate: How would you produce the following exact hexagon? I'd like to create a hexagonal graph, where the nodes are row vectors and the edges arrows with labels (I'm trying to ...
10
votes
1answer
315 views

Automatic conversion from picture commands to tikz-pgf

I'm trying to modify an old document with a bunch of images created using the picture/pict2e environment. The problem is that I need to improve these images, but adding some new features in those old ...
14
votes
2answers
2k views

TikZ: Curve through specified points

\documentclass{standalone} \usepackage{comment} \usepackage{tikz,pgf} \usetikzlibrary{fit,scopes,calc,matrix,positioning,decorations.pathmorphing} \begin{document} \begin{tikzpicture} ...
9
votes
5answers
2k views

Filling angles with arcs in TikZ

Using TikZ, how can I fill in an angle of a given polygon with a colored arc? For example, given the triangle \filldraw[fill=yellow, draw=black] (10,0) -- (-2,9) -- (4,-3) -- (10,0); I'd like a blue ...
9
votes
1answer
892 views

Storing the result of a random number in tikzpicture

I am drawing a surface composed of rigid "molecules" composed of three spheres each. I want to add some randomness to the surface. I have created this code: \begin{tikzpicture} \def\nuPi{3.1459265} ...
5
votes
1answer
1k views

Using sin inside of tikz ``\foreach`` [duplicate]

Possible Duplicate: Problems with TikZ calculations I am trying to generate a surface in tikzpicture environment. The surface is composed of spheres so I have created this: ...
16
votes
1answer
2k views

Externalization to other format, Makefile. Add new rules to the makefile

Through using Christian's method of externalization, shown below, one can convert the pdf's to any chosen format right after the externalization at hand. \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
657 views

TikZ: Tilting a submatrix of a \matrix

\documentclass{standalone} \usepackage{tikz,pgf} \usetikzlibrary{fit,scopes,arrows,calc,shapes.misc,matrix,positioning} \begin{document} \newcommand{\bbrect}[3]{ ...
2
votes
0answers
120 views

TikZ: Coordinate calculations inside newcommand [duplicate]

Possible Duplicate: TikZ: Variable arithmetic result in node name \documentclass{standalone} \usepackage{tikz,pgf} \usetikzlibrary{decorations.markings,% ...
7
votes
1answer
496 views

Use tikz macros in pgfplots?

Since the axis environment is within a tikzpicture I thought that you could use the usual \draw commands within the axis environment. I am confused as to why the code below produces the red line ...
7
votes
1answer
2k views

TikZ: Text along path

There is a node-to-node path and I want a text to be aligned to it. Also, [xshift=5mm] and [xshift=-5mm], which is supposed to ensure that the path ends do not touch the node boundary, doesn't seem to ...
4
votes
1answer
714 views

How to change the colour of specific arrows on a flow chart

It appears my flowchart is nonplanar (it contains a subdivided K_3,3...) How do I colour specific arrows, so I can make it visually clearer what's going on when they inevitably cross? (by 'arrows', I ...
3
votes
1answer
853 views

Manually setting the size of a node and forcing contents to 'fill' node

I have an expression "a = function(b)" inside a node. But "a =" and "function(b)" appear on separate lines. I can force the node to be wider, but this doesn't change how the writing inside is laid ...
4
votes
1answer
321 views

Aligning matrices by headlines, TikZ

1) How to align the two matrices (B) and (C) by their first row? 2) I took fancy in this "random steps" decoration. The manual, however, says nothing about it. Any tips/links on this fascinating ...
16
votes
1answer
4k views

Avoid arrow crossing over blocks in flow chart

I've been creating a flow chart using the template I found here: http://www.texample.net/tikz/examples/simple-flow-chart/ Please see the code below: \documentclass{article} ...
4
votes
1answer
622 views

TikZ: Rectangle spanning a submatrix, as a node

I specify the corners of a rectangle, spanning a certain submatrix of a matrix, and want this rectangle to be a node. The minimal example is: \documentclass{standalone} \usepackage{tikz,pgf} ...
17
votes
2answers
3k views

tikz: a big box with fixed width containing smaller boxes

I want to render with tikz something like : The surrounding big box should behave somehow like a minipage : the width is fixed, and the height should grow if we add sufficiently small boxes inside. ...
12
votes
2answers
2k views

tikz : how to refer to a node, in nested nodes

The following MWE displays 2 nested boxes. The alignment is done by refering to the inside box, through the name of the node "inbox" \documentclass[12pt, a4paper]{scrartcl} \usepackage{tikz} ...
97
votes
4answers
5k views

How to draw a Sankey Diagram using TikZ

I would like to draw something similar to this (not exactly): using TikZ. Ideally I would be able to set the width by variables and rejoin two flows into one again. Is there a good way to do this? ...
6
votes
3answers
1k views

Htlatex and Tikz creates sometimes incorrect svgs

I have a document with a large number of Tikz pictures and I need to generate a html page from it. I have declared a driver to have TikZ pictures as SVGs (after this question) and run htlatex ...
5
votes
1answer
1k views

Creating process table figure in TikZ

I'm teaching operating systems course and I have to create many "process/memory map/inode table" structures for the course. For those who don't know (not sure if any of them would be here), See the ...
21
votes
3answers
1k views

Using opacity in TikZ makes the entire page become “more coarse” when printed

In my document, some of the figures uses opacity. In the PDF viewer, everything looks fine, but when I print the document, the pages in which these figures appear become more "coarse"; the text looks ...
4
votes
1answer
846 views

Visualizing broad Tikz tree graph

Modules of software I created produce Tikz QTree diagrams for visualisation. The problem is that some trees grow quite broad... Even when I try to massively shrink them by Tikz settings, I cannot ...
7
votes
1answer
2k views

Customising a tikz calendar

I am trying to make a simple calendar, this is how far I have got so far... \documentclass{article} \usepackage[nomessages]{fp}% http://ctan.org/pkg/fp \usepackage{tikz} \usepackage{ifthen} ...
7
votes
1answer
5k views

Package pgf Error: No shape named X is known

I can't get this document to compile: \documentclass{article} \usepackage{tikz} \usetikzlibrary{snakes,arrows,shapes} \begin{document} \begin{tikzpicture}[>=latex',line join=bevel,] ...
7
votes
2answers
577 views

How do I tell TikZ to compute the 'in' value again rather than use the previous one?

The first two lines do just what I want: \node (F) at (1,1) {$F$}; \draw (0,2) to [out=-90] (F); That is, it draws an edge downward from the point (0,0) and bends it to hit (F), entering the node ...
24
votes
1answer
6k views

TikZ: How to get a few smooth grid lines for surface plots

I want to produce smooth surface plots with smooth grid lines using TikZ/pgfplots. Usually, this can be achieved using e.g. [samples=100], but this also draws 100 grid lines. I basically want that ...
5
votes
1answer
1k views

foreach loop and calc

Why doesn't \posx in the following loop change? I have added manually what should be the result (second picture on the left). Any way to fix this? \documentclass{article} \usepackage{tikz} ...
10
votes
1answer
2k views

Connect Tikz Nodes running around nodes

I want to connect two tikz nodes with a line which should not overlap the other nodes. It additionally should branch below the node and run into the top again. I also want to label the edge/line. I ...
7
votes
1answer
766 views

How to use every plot with TikZ

In the paragraph about gnuplot in the pgfmanual, I read this : The following styles influence the plot: /tikz/every plot (style, initially empty) This style is installed in each plot, that is, ...
1
vote
1answer
356 views

Modify plot style in a tkz-fct-plot for a whole tikzpicture at once

Is it possible to modifiy the plot style (for example color) for every plot in a tikzpicture environment at once? I tried this, but it didn't work: \documentclass{article} \usepackage{pgfplots} ...
4
votes
1answer
929 views

Label near start when using myncbar

My problem is quite simple, yet i can't find answer. Pre: \usepackage{tikz} \usetikzlibrary{matrix, shapes, arrows, positioning, fit, calc} Styles: \tikzstyle{decision} = [diamond, draw, ...
1
vote
1answer
325 views

How do I implement eps2pgf command line tool?

I use MiKTeX 2.8 on a Windows 7 (64bit) machine and I would like to use the eps2pgf interpreter. I have no idea how to proceed after downloading eps2pgf.zip. state.eps file
18
votes
2answers
6k views

Shift line connecting anchors

How can I shift a line the endpoints of which are defined by anchors like this? \draw (i0) -- (i1); The following approach does not work: \draw[xshift=2pt] (i0) -- (i1);
7
votes
2answers
1k views

vertical week list in TikZ calendar

I read about week list in the PGF/TikZ manual, but I couldn't find an example that arranges the days of the week vertically: June 1997 M 2 9 16 23 30 T 3 10 17 24 W 4 11 18 25 T 5 12 19 26 ...
2
votes
1answer
464 views

How to use tikz package with devanagari, in miktex 2.8

I have to use tikz graphics with my PDF file, written in MiKTeX 2.8 LaTeX. When I write \usepackage{tikz} with \usepackage{devanagari}, LaTeX produces an error l.264 catcode '\"=12
4
votes
1answer
818 views

TikZ: “Inline” pgfonlayer? [duplicate]

Possible Duplicate: “Z-level” in TikZ When using layers in tikz I usually do the following: \begin{pgfonlayer}{background} \draw[red] (0,0)--(1,0); \end{pgfonlayer} Is ...
2
votes
0answers
478 views

Wireframes for Webdesign with tikz [closed]

I am searching for information about using tikz to draw wireframes for websites. Is there any particular workflow around? Does somebody know some sort of packages I can use? Here is a link to explain ...
7
votes
1answer
4k views

Using [midway] to label a curved path at its centre

I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to ...
28
votes
3answers
3k views

How can I improve this family tree in TikZ?

To answer a question about how to draw family tree on LaTeX-Community.org, I created an example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} ...
2
votes
1answer
847 views

Referencing externalized pgfplots with subfig and cleverref

I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
6
votes
3answers
1k views

How to show the current coordinates for mark=text?

In the following example I'm using the library plotmarks to set a text on the given path. Now I am interested in showing the current coordinates of the marker instead of p. ...