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
3answers
876 views

Help on TikZ diagram

I'm very sorry about dull question, but I am totally confused by TikZ. Would anyone help me to draw following diagram, please? What I've done so far is as follows. \documentclass{article} ...
12
votes
1answer
3k views

Bending arrows in Tikz

In Tikz, I would like to bend an arrow like the one between $H_2O$ and $O_2$ in this figure: I'm able to have a bended line between $H_2O$ and $O_2$, but it's not touching the photophosphorylation ...
3
votes
2answers
479 views

Why is tikz so much slower when plotting a huge amount of data than WYSIWYG plotting tools?

I was wondering why a tikz/pgf plot of a data file containing several thousand data points needs a couple of minutes to compile while creating the same plot with a WYSIWYG plotting tool (like Grace) ...
12
votes
1answer
4k views

TikZ Styles that set Nodepart Styles

In the following, I'm using user-defined macros to set the type style for the nodeparts for class nodes (\texttt{\textbf{#1}}), interfaces (\texttt{\textit{#1}}). Using the \tikzset command I also ...
10
votes
2answers
2k views

Tikz fit-library vs fill (overlaying nested node colors)

I am trying to figure out the best way of nesting tikz nodes having a different background color. I would like the "inner" nodes to "win" concerning the background color. Currently the "outer" node ...
8
votes
1answer
2k views

circuitikz labeling

I am trying to create a few logic circuits for a class that I teach. After brief investigation I decided to use TikZ library circuit due to the lack of the support by PSTricks for American notation. ...
15
votes
2answers
2k views

Shrink figure only when necessary?

I'm writing a report where I have generated and included several TikZ pictures which I also want to use in my beamer presentation. However, some of the pictures (but not all) which fit in the report ...
3
votes
1answer
367 views

How to generate labels next to junctions and avoid self-collision with tikz?

I have an ASCII-art phylogenetic tree that looks (in part) like /------ PLN /-----+ 0.9 | \------ IL1 /--------+ 1.8 | | /----- PVD | ...
8
votes
2answers
925 views

Dependency diagrams using Tikz

I'm trying to draw a database dependency diagram, similar to the one shown below (Gaaah! I can't upload images. ASCII art it is then...) +------+------+------+------+------+------+ | | ...
11
votes
1answer
2k views

Table typesetting with pgfplotstable

I have two questions concerning pgfplotstable and number formatting with pgf. Consider the following piece of code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{amsmath} ...
10
votes
3answers
719 views

How can I make circle plots?

I have not idea how to call these things, but I just saw a paper with the following figure and I was wondering how one would go about doing it in LaTeX. The closest thing I saw on TeXample.net was ...
7
votes
3answers
2k views

How to Intersect an arc with a line without calculating the angle

I'd like to draw an optics-related figure, for which I need to draw several beams with varying opening angles, which will need to be labeled. What I've come up at the moment (boiled down to a minimal ...
11
votes
3answers
11k views

Gnuplot Setting the Number of Key Columns

I am having an issue setting the number of key (i.e., legend) columns using Gnuplot with the TiKz terminal. Here's a minimal working example of what I'm talking about: #!/usr/bin/env gnuplot set term ...
7
votes
1answer
893 views

Reusing TikZ Path Definition

I'd like to know if somebody know a way to define a path in TikZ and reuse the path's definition several times. For example, consider the following: If I wanted to change the path (0,2) -- (0,2) -- ...
3
votes
2answers
561 views

How can I draw an arc with varying line thickness?

I'm trying to redraw existing figures with TikZ as an exercise to learn it. This time I have choosen an interesting logo and I'm having difficulties drawing the arc. Here is the logo I noticed that ...
2
votes
3answers
2k views

Help to plot a surface

I would like to plot the surface $S=\{(x,y,z)\in\mathbb{R}^3\ z=xy\}$ for an exercise of affine geometry but I am a novice in graphics! Can I use GeoGebra? or TikZ or Asymptote?
5
votes
1answer
286 views

Width of empty multi-part node segment larger than expected

If I draw the following node, I'd expect to get four squares: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \begin{document} \begin{tikzpicture}[multibox/.style={draw, ...
6
votes
1answer
2k views

why does latex report errors when using styles in a tikz pgf picture?

I get three errors when attempting to build the following example (with the tikzpicture taken from the tikz pgf manual). Why does this happen, and what am I doing wrong? \documentclass[12pt]{article} ...
6
votes
1answer
2k views

Adding Arrows to Lines Drawn in TikZ

I am using the markup listing from Draw comparison lines between two listings. \documentclass{article} \usepackage{listings}% http://ctan.org/pkg/listings \usepackage{tikz}% http://ctan.org/pkg/pgf ...
18
votes
3answers
2k views

TikZ: “skipping” levels when drawing trees

I'm interested in using TikZ to draw rooted trees whose leaves should all be on the same level, pretty much like this: Please don't pay attention to the fancy style and colours, I'm only interested ...
9
votes
1answer
2k views

Draw in pgfplot axis before axis and grid are drawn

Is there a way to draw something using the axis coordinates (axis cs:x,y) before the axis and the grid are drawn? Namely I would like to draw rectangles with tikz to give different areas of the plot ...
1
vote
1answer
2k views

Why does 'every node' not work inside a scope environment?

I just tried the following and was suprised it didn't work: \begin{tikzpicture} ... some commands \begin{scope}[very thick, every node=./style={circle, fill=white, minimum size=1.2mm, inner ...
5
votes
1answer
2k views

Remove top and bottom margins around listings

When using the lstlisting environment, or similar ones from the listings package, there are paragraph-like margins above and below the actual text. This makes sense in a paper, but gets in the way if ...
6
votes
5answers
4k views

Place a TikZ picture on every page

I am looking to place a picture (TikZ picture) on every page of my document. How can I do that? In essence I would like to control the placing of the image on even and odd pages. For example the ...
5
votes
1answer
1k views

Naming coordinates in a foreach loop

I have the following problem: I am using beamer together with tikz, and I want to use some random points in a drawing which is shown over a couple of slides. If I use the normal random method, the ...
11
votes
2answers
3k views

TikZ picture on the entire frame in beamer without using overlays

I have a beamer presentation with several TikZ diagrams that spread across the entire frame, i.e., use the full screen size. I am using the overlay option to make sure the picture captures the entire ...
7
votes
4answers
711 views

What's the best way to draw loop invariants in LaTeX?

I want to draw a picture similar to this one for divide part of Quicksort. What's the best method to do so? Is there a package for it or should I use Tikz to do it? If Tikz can you point me to some ...
6
votes
1answer
770 views

Labeling a function's plot generated by “plot function” [duplicate]

Possible Duplicate: How to label a path drawn using tikz with \draw plot? Consider plotting a parabola using the following code: \begin{scope}[domain=-2:2] ...
4
votes
2answers
1k views

Fit around nodes and edges

I know that I can use the fit library of tikz to get a fitted background behind some nodes. How can I get the fit to be around edges as well? My current code: \begin{tikzpicture}[prefix=fig/, ...
5
votes
3answers
959 views

How to draw protocol interaction using tikzpicture

I have a question on using the tikzpicture package. I have a protocol interaction on which two participants want to exchange some numbers, say α and β. I need bilateral arrows, and on top of it would ...
5
votes
1answer
379 views

Figure-macro with TikZ: account for y-axis labels

How can I account for the space taken by the y-axis labels? Can I somehow \setbox the axis labels, or something similar? Because now, the y-axis labels stick out of the text block width (because I ...
3
votes
1answer
688 views

Wrapping minted in a Tikz box with a command

I'm familiar with the Defining a command for a minted environment question. In addition to defining the mint parameters I also want to wrap the minted code inside a Tikz box for its nice looks. I've ...
3
votes
2answers
575 views

Changing colors of MATH functions and DRAWING lines

My problem is that I want my math functions and drawing illustrations to be in different colors. I want my colors to be defined at the beginning so they will automatically change the color of math and ...
6
votes
1answer
807 views

TikZ Layer Invisible

I'm trying to place an image in the background using TikZ layers but as soon as I enable the layers option, everything in the background layer disappears. I have no idea why. I found some hints about ...
26
votes
3answers
2k views

Applying a postaction to every path in TikZ

Sometime, for example in a solution to a recent question, one wants to apply a postaction (like a decoration) to a group of paths. A naive solution is to use every path/.style={}. Unfortunately this ...
5
votes
1answer
536 views

How to align a vertical tree to the upper-left corner?

How do I align vertical trees to to the top? This is my current tree:       I want to get this tree:                  ^ That's a part of ...
3
votes
1answer
5k views

PGF/TikZ arrow line width not consistent with line width

I have a document I created several months back, and maybe with a new version of PGF/TikZ it is not working as previously (currently using Arch Linux, TexLive 2011, pgf version 2.10). The fast ...
7
votes
3answers
703 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 ...
18
votes
1answer
756 views

How do I pronounce “TikZ”?

I have heard people pronounce the name of the package "TikZ" in many different ways: "tiks" or "tikz" or "tik-zee" or even "tee-eye-kay-zee". Does anyone know the authoritatively correct ...
7
votes
1answer
1k views

Tikz - Drawing in the unit circle

I am working on learning how to use tikz for mathematical drawings and I am currently trying to make... well... if you read or typeset the code you will get the idea. If you look at the results the ...
12
votes
1answer
7k views

TikZ line thickness seems to inappropriately affect label position

The following code produces two parallel vertical lines of the same length, but of different thicknesses, with labels at the top. \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
0answers
200 views

Pgfplots: How to get the data to be shown by hours instead of days? [duplicate]

Possible Duplicate: pgfplot: Datafile format for datetime field The solution to the following problem is probably very straightforward, but I've yet to find the right solution. I'm trying ...
15
votes
3answers
3k views

Put a node behind another in a TikZ diagram

I want to place a node, that is kind of a note, behind another node. However, I need to put the reference node before the note, so I can place the note in a relative position to the reference node. ...
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} ...
5
votes
0answers
542 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 ...
15
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} ...
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
179 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
261 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. ...