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
1answer
211 views

Create a coordinate node at each point of a path

How can I create a TikZ/pgf-style that will put a coordinate, which should be named automatically, at each point of a path? So the following code \draw[put coordinates](0,0)--(3,2)--(4,7)--(-2,1); ...
7
votes
1answer
1k views

How to include graphics in minimal code?

[UPDATE] I'm sorry, if my question is less clear. I mean is how to simplify the writing of syntax in main.tex to display images with the same settings, \begin{figure}[ht] \centering \...
3
votes
0answers
849 views

difficulty compiling TikZ code - unknown key “breakable” [closed]

In attempting to compile some TikZ related code by Gonzalo Medina, I am running into difficulties. The code is accessible here: Creation of a new poster template Specifically, I am encountering the ...
9
votes
1answer
421 views

How to more easily generate a normalized eigenvalue spectrum?

I'm trying to generate a normalized eigenvalue spectrum like this one: In the above example, the normalized eigenvalues are like the following: 0.8332 0.0433 0.0310 0.0152 0.0061 0.0047 0.0035 0....
0
votes
1answer
345 views

intersection coordinate systems

I'm trying to write a \newcommand to draw a little stick-man in PGF. It isn't finished yet, but right now, it looks like this: \newcommand{\man}[1] { % #1 : The position of the head of the stick man ...
1
vote
1answer
198 views

Sinuous arrow between nodes

I want to draw a sinuous arrow between two nodes. Following the first answer in this thread Easy curves in TikZ I have tried the following code, but the arrow head points to the opposite side... how ...
3
votes
1answer
870 views

Creating several rulers with TikZ

I am trying to draw 14-meters worth of centimeter-scale rulers, one meter at a time. I hope to print these in adhesive paper to measure something, but that's neither here nor there. So far I have ...
2
votes
1answer
240 views

TikZ: Keeping nodes clear from lines

I set all nodes and coordinates that I can be set right away in the at the top of the TikZ picture. However, a line can obstruct the node. If the node is after the line, I could use fill = white ...
18
votes
1answer
261 views

Elements that looks different when printed with colours or in BW

Is there the possibility with LaTeX of having some element that change if it is printed with colours or in black and white? I was thinking about the rectangles around links with hyperref that are ...
5
votes
1answer
2k views

TikZ header and footer across top and bottom of bulletin/newsletter page

I would like to have a simple TikZ coloured header and footer for a bulletin/newsletter template. I have in mind something such as this: Note the green bands spanning the width of the first page at ...
19
votes
2answers
2k views

Random ink blotches from tikz

How can I create this type of effect in tikz, random ink spots from a fountain pen, for a watermark on select feature pages.
4
votes
1answer
2k views

pgfplots: plotting data with gnuplot

I try to plot a data file (test2) which contains a header and 2 columns. My pdfLaTeX (argument: --enable-write18) gives me not the result I get with executing gnuplot.exe. This is the code: \...
3
votes
1answer
412 views

Bounding box of pictures used in TikZ/PGF

I am creating TikZ pictures using some external images in the following manner: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[htb] \centering\small \begin{...
12
votes
2answers
10k views

Problem drawing curved paths with TikZ

I'm trying to draw small process flow graph, but I'm having two problems with the layout: The edges from the bottom nodes B, C should curve out and around back to A, not go directly on the inside. I ...
4
votes
1answer
281 views

Shifted hyperlink with includestandalone

I have a problem with includestandalone and a tikz-grafic with a hyperref. My MWE: I define a image as picture.tex: %Save as picture.tex \documentclass[tikz]{standalone} \usepackage{hyperref} \...
8
votes
2answers
166 views

Detecting if inside a tikzpicture node

I would like to detect if a macro is executed inside a tikzpicture or more specific inside a node of a picture. In my MWE I used \ifpgfpicture which does not do the job because it considers the node ...
1
vote
0answers
64 views

multiple labels in pgf plots [closed]

I have a box plot with 8 entries. Now I'd like to group them a little. The first four belong to Test1 and the last four to Test2. What I'd like is to Have two xlabels one with 2 ticks (Test 1 ; Test ...
13
votes
1answer
416 views

Error with hobbyconvexpath

The hobby examples given on TEX.SX don't seem to be working with texlive 2013 (at least for me. For example, copying an MWE produces an error: \documentclass[tikz,border=2bp]{standalone} \...
2
votes
1answer
290 views

TikZ: How can I extend a line to match another line (bad title, best I could do)

\documentclass{article} \usepackage{tikz} \usetikzlibrary{calc, arrows, intersections} \begin{document} \begin{tikzpicture}[line cap = round, line join = round, >=triangle 45, fixed point ...
5
votes
2answers
3k views

raw gnuplot in pgfplots

I have a problem with the gnuplot environment in pgfplots. I already set "--enable-write18" in the argument of pdfLaTeX and added the path of gnuplot.exe to the PATH-variable in the advanced system ...
2
votes
1answer
260 views

TikZ: Adding a coordinate to parallel location of two lines

I would like to add a coordinate where a line parallel to my v\cos(\gamma) would be located if it started from point P7. I am not sure how to move those two lines to that location parallel to my ...
1
vote
1answer
530 views

Including a tikz figure with a reference to a table on file, problems with folder structure

I am trying to include a tikz figure in the chapter 6 of my thesis. I am using separate folders and .tex files for each chapter, as you may notice in the example. This means that in my main document I ...
4
votes
2answers
706 views

TikZ: Drawing a line from the origin to the edge of a circle

How can I draw a line from the origin to the edge of circle? \documentclass{article} \usepackage{tikz} \usepackage{fp} \usetikzlibrary{calc, arrows, fixedpointarithmetic} \begin{document} \begin{...
3
votes
1answer
1k views

tikzpicture options causing “There is no [ in font nullfont!”?

I'm following TikZ & PGF Manual, on page 47 (drawing a Petri net). The example is demonstrating making every label red with the following line: \begin{tikzpicture}[every label/.style={red}] ...
9
votes
2answers
1k views

Long equals in tikz

How could I proceed to make an "equal" arrow in a diagram in tikz? To be clearer, what I would like to obtain is the equivalent of the following command in xy: \ar@{=}[direction] Two examples of ...
2
votes
1answer
452 views

TikZ drawing order when using animate

I've have a problem when I use animations in TikZ images: I like draw a figure over another figure by \path(fig) node[anchor = north, inner sep=0pt,outer sep=5pt] { FIGURE1 } \path(fig) node[anchor ...
11
votes
1answer
475 views

Drawing primitive shapes with TikZ

I want to draw this picture as a noob, the way I usually do (for all other images) is to painstakingly draw line by line and manually adjusting their coordinates to get the shapes I want. I have ...
2
votes
1answer
182 views

TikZ: Why is the 2nd intersection not found?

I am trying to construct a tangent line to the dashed curve but TeX is telling me that No shape named intersection-2 is known. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc, ...
1
vote
1answer
293 views

tikz circuit library annotation based on shape dimensions

I'm trying to define a new annotation for tikz circuit library which surrounds a shape with a circle of max(minimum width, minimum height). updated with new information from Qrrbrbirlbel's comments, ...
1
vote
1answer
225 views

TikZ: Can a node be placed at pos = .5 and then a coordinate at the end of the line?

As the title say, can a node and a coordinate be placed on the same line? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (P1) at (-2, 0); \...
1
vote
0answers
88 views

TikZ: Polar coordinates referencing system [duplicate]

Many times I like to use polar coordinates but the reference frame is always at the origin. This is a bother when I went to draw a specific angle and radius from a location other than the origin. I ...
4
votes
2answers
746 views

Tikz drawing a ring with nodes

I want to add the following figure in the presentation of a paper I read. I read a small introduction to tikz but still the figure is very complicated for me to do. Can anybody help or point any ...
4
votes
1answer
989 views

Adding a background image with tikz poster

When using the tikzposter package, is it possible to add a background image? I currently have a colour gradient, and would preferably like to keep this intact, and superpose the image on top of that. ...
2
votes
2answers
218 views

Align Captions of 2 figures

I managed to get my two Tikz figures side by side. The vertical alignment of the Tikz figures is fine and needs to stay that way. However, I am bothered by the captions and I'd like both of them to be ...
4
votes
1answer
622 views

mdframed with tikz-framework: roundcorner-keyword seem not to work completely

I got a similar problem to How to draw frame with rounded corners around box I try to make round boxex for a poster presentation, I could nearly succeed using mdframed-package with tikz-option. But ...
7
votes
1answer
1k views

Trouble using pgfmathsetmacro in foreach loop more than once

I'm trying to draw a series of lines where the x-coordinate is given by a geometric sequence, as in the following example: \begin{tikzpicture} \foreach \i in {0,...,3} \pgfmathsetmacro{\...
1
vote
0answers
56 views

Tikz Matrix (alignment?) [duplicate]

I have the following example: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{equation} \begin{tikzpicture}[baseline=(current ...
3
votes
2answers
215 views

Can't reproduce sequence alignment using TikZ?

I'm new using the TikZ package. Can someone help-me to reproduce this matrix 1 using Tikz? More precisely the step in figure 2. I tried to do it with matrix but I can't put the number 1 [above ...
7
votes
2answers
735 views

How to create equi-distant nodes on a spiral with TikZ?

I have borrowed the following code to draw a spiral using one of the existing posts in TEX.SE. \begin{tikzpicture} \draw [domain=0:25.1327,variable=\t,smooth,samples=55] plot[mark=*,mark options=...
5
votes
1answer
208 views

dot2tex concentrate edges, bug fix or workaround

It is a known bug that dot2tex produces weird output when combining concentrate=true and tikz code output. It creates multiple squiggly edges instead of one nice curved edges. However, we get semi-...
15
votes
3answers
4k views

Creation of a new poster template

Elena Botoeva has written a package with 5 templates for posters, called fancytikzposter, consisting of a unique TikZ picture. Her class had some success (see here) I am looking for a way to improve ...
2
votes
1answer
521 views

Tikz US-style components and other components

In circuittikz there is a full library of US-style components like the +/- voltage source, directed arrow current source, etc. As far as I can tell from the documentation, the Tikz circuit library ...
15
votes
1answer
366 views

Making TikZ path into a hyperlink

I'd like to know if there's a way to make an arbitrary closed path in TikZ into a hyperlink; either directly or by turning it into a node. Here's an example of code to work with: \documentclass[10pt,...
20
votes
1answer
958 views

Code examples, like in the TikZ/PGF manual

I like very much the 'side-by-side' code examples in the TikZ/PGF manual... ... and I would like to use the same thing in a manual I'm writing. I have found the source code for the codeexample ...
4
votes
1answer
4k views

Understanding TikZ node placement

I'm having a hard time understanding how TikZ uses space \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzset{red/.style={fill=red,circle,inner sep=0pt}} \...
2
votes
1answer
364 views

show part of tikzpicture

Is it possible to extract a part of a tikzpicture? See for example this tikzpicture. I would like to show the parts with different colors on different slides. (The real picture is more complex, wide ...
4
votes
1answer
1k views

Dimension too large after exporting box plot with matlab2tikz

When exporting a box plot with matlab2tikz I get no errors, but when running pdflatex I get a "dimension too large" error. This only happens with box plots. Still the box plot shows up as it should, ...
4
votes
2answers
232 views

fill in the blank between two curves and arrow which shows the change

In continue to my previous question, concave curve in tikz, I would like to know how can I achieve the yellow area of the next figure and the little arrow in it? I don't care about how small the arrow ...
1
vote
1answer
549 views

concave curve in tikz

How can we draw a concave curve like the following one without having any numeric data?
8
votes
3answers
3k views

Draw line from a point to another line (along x-axis or y-axis) in TikZ

I would like to make use of the intersection tools to draw a line to another line in a way that it only reaches along the x-axis or y-axis. I mean I currently think that I would achieve this via the ...