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
2answers
710 views

Drawing Loops in TikZ

I need your kind help to convert this image in TikZ/PGF, if possible: FYI , I want to use the image on a beamerslide and a standard article type document (A4 paper). I used Inkscape (.svg > ...
1
vote
1answer
941 views

Sequent Calculus

What is sequent calculus? See wiki: http://en.wikipedia.org/wiki/Sequent_calculus So basicaly I'd like to produce something like this: Maybe using Tikz?
6
votes
4answers
1k views

Alternative for drawing graphs?

I've been trying to draw a graph with a series of X,Y points in TikZ, but it won't accept my points so I'm seeking an alternative package that might handle scaling a bit better. The kind of points ...
2
votes
1answer
333 views

reading multi columns table with out x column

I have a table (10000 rows and 14 cols) in a ascii file, which contain only the y - components. In my case the x's values are 1 till 10000. Is it possible to tell Tikz to plot from a table only with ...
10
votes
3answers
8k views

export Tikz figures to PDF

I am in the process of writing my master thesis and i am using Tikz to generate few graphs. Unfortunately, the input file for the graphs are not so small, so i already faced the problem that space ...
10
votes
2answers
958 views

How do I center this qtree?

I am trying to draw a tree using the tikz-qtree package, however I am having issues with the nodes of the tree being not centered. \documentclass[10pt]{article} \usepackage{tikz} ...
8
votes
1answer
1k views

mdframed with tikz method: putting line numbers outside of frame

I want to number the lines in a mdframed environment with the line numbers appearing on the left of the frame, outside of it. \documentclass{article} \usepackage[framemethod=latex]{mdframed} ...
4
votes
1answer
2k views

Using beamer overlays to set different styles in TikZ [duplicate]

Possible Duplicate: How to make beamer overlays with Tikz node I'd like to draw a figure in TikZ for a beamer presentation, and color various nodes differently in different overlays of the ...
8
votes
2answers
2k views

Isomorphisms in commutative diagrams in TikZ

Sorry for the basic question. I am trying to get commutative diagrams like \usepackage{tikz} \usetikzlibrary{matrix,arrows} $$\begin{tikzpicture}[description/.style={fill=white,inner sep=2pt}] ...
18
votes
1answer
719 views

Is memoir's page layout incompatible with TikZ?

Can someone explain what's going on here?: \documentclass[showtrims,svgnames]{memoir} \usepackage{lipsum} \settrimmedsize{210mm}{148mm}{*} \setstocksize{236mm}{164mm} \settrims{5mm}{5mm} ...
2
votes
2answers
799 views

Process locking diagram in LaTeX

Does someone know if it is possible to reproduce something like this Diagram (found at this Website) in LaTeX, perhaps with Tikz? Or do I have to draw my diagrams in another program and import them ...
8
votes
2answers
427 views

pgfdeclareshape compilation error

Starting from a more complex trial to add a new shape, I arrive to this minimal example which does not compile. I use PGF 2.10 \documentclass[12pt]{article} \usepackage{tikz} ...
12
votes
2answers
1k views

Inconsistent TikZ multipart node anchors

In the following example, why aren't the node anchors placed consistently? \input tikz \usetikzlibrary{arrows,shapes.multipart} \tikzset{ font=\tt, >= stealth, every picture/.style={thick}, ...
17
votes
4answers
2k views

Best way to draw a quantum harmonic oscillator?

I'm writing up my notes from my photonics lectures, in LaTeX. Both so I can make sense of the notes, and so I can learn some LaTeX. To be frank doing it in LaTeX is quite a motivating reason to go ...
8
votes
1answer
724 views

Canvas transformation of grid to curvilinear grid

I would like to draw a curvilinear grid/mesh like this (sorry for freehand drawing) I thought the easiest (and most elegant) solution would be to apply a canvas transformation to a regular grid in ...
1
vote
0answers
400 views

Looking for LaTeX consultant [closed]

Is there anybody who would be interested in working with me as a LaTeX / Beamer consultant? I can do my best to post minimum working examples and to incorporate the advice I'm given. I will continue ...
5
votes
1answer
1k views

How to have one straight arrows surrounded by two curved arrows (TikZ)

What is the best way to draw one arrow surrounded by two circular arrows (see image below). This is very easy to do when you have a small number of nodes, especially so when the arrows go from one ...
5
votes
1answer
763 views

tikz matrix : centering cells

I have what's below and I do not know why the term m_{n+1,k} is not horizontally centered in its cell? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
4
votes
1answer
705 views

Using TikZ along with picture environment

Please see my examples: picture After TikZ \documentclass{article} \usepackage{color} \usepackage{tikz} \usepackage[english]{babel} \begin{document} \begin{tikzpicture} \path ...
5
votes
1answer
2k views

Define node at relative coordinates of \draw plot

I am not able to fix that simple plot. I think I missed something, but I can't point out what ! Could you tell me why (a) is not at midway of the red line ? \documentclass{article} ...
6
votes
1answer
474 views

Tikz - How to determine the coordinates in fill

How to create Candle Symbol in LaTeX I previously asked a question about making candle light and got amazing answers. To todd's answer I have another question which would help understand basics of ...
3
votes
2answers
127 views

How to test if a macro has the shape of a coordinate from TikZ?

How can I know if a macro contains a coordinate, that is, in the sense of having the shape of a coordinate num,num. What I want to do is to know if a given macro, \pos, has the shape (in sense of ...
1
vote
0answers
141 views

Run a library from a folder? [closed]

I'm struggling to get Tikz to run on my University terminal, for some as of yet unknown reason, and I don't have the permissions to install Tikz. I've emailed the 'computer help people' asking them to ...
8
votes
1answer
382 views

Tell TikZ arrow to terminate prematurely

Is it possible to tell arrows in TikZ to ease off a bit so as to not get within a thousandths of an inch of the target node? In my particular case I am using shadows which are interfering with the ...
4
votes
2answers
408 views

Why doesn't \ifx work inside a node command in TikZ?

I have the following piece of code \documentclass{article} \usepackage{tikz} \def\pos{5,5} \begin{document} \begin{tikzpicture} \node (b) at (0,0) {test}; \node (a) ...
10
votes
1answer
127 views

What is the difference between \pgfutil@empty and \empty in an \ifx environment

I've seen that sometimes (most in TikZ code) people use \pgfutil@empty to test a macro. Is there any benefit from using \pgfutil@empty instead of the \empty macro? Also, is there any usage or good ...
5
votes
1answer
2k views

tikz draw plot not correct

I am trying to plot a naca0012 airfoil profile by its analytic function ( cf wikipedia ) using tikz and I can't understand why I get the following results. I precise that I get the same results if I ...
6
votes
1answer
2k views

Is there a library for drawing object inheritance trees in TikZ?

This seems like a very common thing, but searching for the words 'tree', 'language', 'object', 'inheritance' and/or 'parent' returns Questions that have nothing to do with mine. In a nutshell, I want ...
20
votes
5answers
3k views

How can I force TikZ pin angle?

I'm trying to draw a resultant force diagram like so: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) -- (90:2.7) -- ++ (-13:12) ...
12
votes
2answers
5k views

Draw lines by specifying angles?

I'd like to be able to draw lines in LaTeX by specifying an angle, rather than specifying it like so \put(0,0){\line(2,1){3}} Is this possible? I've looked at tikz and tikz-euclid. I've even tried ...
18
votes
3answers
6k views

Making an arrow in a pgfplot figure from one point to another?

How can I make an arrow from one point in a tikz picture to another point? In the following example, I would like to draw an arrow from the word data--which is approximately the coordinate (1982, ...
11
votes
2answers
869 views

MS Word-style Comments

I'm not a fan of Microsoft Word, but I have missed the ability to comment on papers that I'm working on with friends using comments that appear as little bubbles in the margins. I've managed to ...
1
vote
1answer
613 views

Problem with labeled equations in beamer: Why do the labels have different positions after each compilation?

I'd like to make a slide in beamer with a few equations that labels the parts of the last equation shown. I'm doing this with overlays so one equation is added at a time, and only that last equation ...
4
votes
1answer
2k views

How can i create bar plot groups of different sizes in pgfplots?

One can easily create "groups" of bar plots using the ybar/xbar attribute for the axis environment. When multiple \addplot commands are issued using the same x/y coordinate, the entire group of bar ...
18
votes
3answers
6k views

What are the ways one can control spacing between nodes in TikZ

If I have 4 nodes, one on top of each other, I would like to know the different ways to control the spacing between the nodes. I already know a few: \node[...below=1cm of xyz] \tikzstyle[...node ...
5
votes
2answers
2k views

Automatically placing TikZ in a float/figure

Is there a way to insert a diagram generated by Tikz/PGF directly from within a LaTex file? Currently, I am writing it in its own file, compiling it with pdflatex and then including the generated ...
3
votes
2answers
1k views

pgfplots function which touches the edges of the plot

I need to plot the constant y = pi function with the plot touching both sides of the plot. I have had a search through the pgfplots manual without much luck. I have tried \addplot{3.141...} which ...
20
votes
4answers
4k views

Bounding box is larger than expected when drawing a curved path

I have been working on logo for my department and I have the following code. The problem is that whenever I compile the diagram seems to be larger than the actual logo. I do not know what is the ...
10
votes
3answers
1k views

Drawing a proper shadow for overlapping objects

I draw images that are composed of several overlapping nodes. If I add a drop shadow to each node, the shadow of the second node is drawn over the first node, as seen in the picture below (which ...
3
votes
4answers
2k views

Using TikZ absolute coordinates

I wonder is that possible to use absolute coordinates regarding all document? Please see my example \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \filldraw[red] ...
18
votes
2answers
10k views

Plotting bell shaped curve in TikZ-PGF

I want to create some bell shaped curves for demonstrating hypothesis testing in statistics. Can anybody help me drawing curves like shown in the following picture?
4
votes
1answer
473 views

Assign the same color to overlapping parts of the shadows of several objects

I am drawing a database icon that is made of two cylinder shapes using TikZ. When I add a shadow, the shadows of the two cylinders overlap, and the shadow becomes darker in the overlapping area. The ...
10
votes
1answer
581 views

Adding lighting effect to a rectangular glow box in TikZ

I would like to add to my first MWE in Can I have a glow around a box in TikZ? a lighting effect as shown in this example of the pgfmanual: By modifying the previous MWE: \documentclass{article} ...
7
votes
1answer
5k views

Two y-axis pgfplot with ylabel and width=\linewidth badly aligned

I am trying to draw a pgfplot with to different y-axis with their respective label in a full line width and I can't get an alignment of the whole tikzpicture within the margins. The problem seems to ...
1
vote
1answer
517 views

Spanning a tikz node over multiple pages

I'm using TikZ to draw a box around text with a heading, and it works great if the content of the box can fit on one page, but if it doesn't, it goes past the bottom margin, into the page number, and ...
1
vote
1answer
1k views

Generate regular polygon

I want to generate a regular polygon with 6 sides in TikZ. But I can not compile the following: \begin{figure} \resizebox{8 cm}{8 cm}{ \begin{tikzpicture}[scale=2] \node [draw, thick, minimum ...
1
vote
1answer
2k views

Tikz: Color a region

I used the following code to draw a picture. I want to make the region insde (0,7), (0,11),(3,8),(3,4) to be red, and the region above it to be gray, but I don't know how to do this. ...
3
votes
1answer
960 views

pgfgantt: Change Link style

I'm using the pgfgantt package to draw Gantt-Charts. Everything works except for one things: I can not change the style of the links. The documentation shows on page 29 the following example: ...
3
votes
2answers
248 views

Need to adjust in tikz

I want to display the following figures simultaneously that is not above or lower. Also need to reduce the size. Please help me. \begin{figure}[htp] %\centering \begin{tikzpicture} %\draw ...
7
votes
1answer
127 views

Can a transformation be made to apply to the rest of the commands in a TikZ picture?

One nice feature of TikZ is that you can apply a coordinate transformation in the middle of a \draw command (or \path, etc.) and it will automatically apply to the rest of whatever is in the command. ...