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.

learn more… | top users | synonyms (3)

18
votes
0answers
419 views

Radial Labels on Mindmap - Part II

This is a continuation from Part I, where a solution was provided to create rotating labels in a radial fashion. Closeup of the output looking like this: I was able to improve the solution, ...
12
votes
0answers
1k views

PGFplot Axis Labels Detaching From Graph

Update: Oct 11, 2012 With the current version of TeXLive 2012, this problem no longer occurs with the standalone class. However using the article class, this problem still reproducible. The MWEs ...
7
votes
0answers
303 views

Visualizing correct page lengths with 'layouts' and 'tikz' packages?

I am currently working on a project with xelatex/fontspec and tikz, and so, this example is basically the same as the one from layouts package reads all length as zero with tikz/fontspec/xelatex?. ...
6
votes
0answers
241 views

TikZ exercises

I am not sure that this is a right fit for SE, but I will risk it. I was recently acquainting myself with the xy-pic package, and I found the included exercises very helpful in getting up to speed ...
6
votes
0answers
180 views

TikZ trapezoid transformation (vanishing point)

Within a TikZ drawing, I want to distort a 2D rasterimage (from \includegraphics) so that it appears to be rotated by 90° around the vertical axis in 3D (it should look perpendicular to the sheet of ...
5
votes
0answers
119 views

Custom, space-saving ellipse as TikZ node shape?

in some applications, one wants to use ellipses as node shapes in figures, e.g., when in the literature on a subject typically uses ellipses to denote certain things in figures. The problems with ...
4
votes
0answers
57 views

Conversion of pgf code into TikZ code?

I am not clear about differences between pgf and TikZ. The latter is the frontend of the former. That's fine. In any case, their codes are clearly different. I have two questions. Is it possible to ...
4
votes
0answers
141 views

Drawing a silhouette cone with tikz

I am trying to draw something like this but with a more fancy object, instead of a square, say a bunny or a human (whose silhouette's contour points I exported from an image). I know I need to ...
4
votes
0answers
86 views

Is fine-grained grid control possible?

I want to make a variety of checklists which are essentially based on a grid layout. I care about having fine-grained control over the exact placement of labels and boxes. I do not care about ...
4
votes
0answers
93 views

Align TikZ grid with geometry crop marks

I am drawing a grid on top of the layout defined with geometry. \documentclass[letter]{article} \usepackage{geometry} \geometry{ showcrop, paper = a4paper, layout = a5paper, ...
4
votes
0answers
114 views

Strange error when combining Beamer, Animate, Tikz and Listings

I'm working on some slides where I show how code is actually executed in Java. Therefore I'm working with the animate package to generate animations. Without going into details, I've written a macro ...
4
votes
0answers
108 views

Making arrow heads smaller using “arrowsnew”

I want to make the arrowheads smaller on the $\delta v_A$ arrow and on the [<->] arrows. I made the file from this post Is it possible to change the size of an arrowhead in TikZ/PGF? but it ...
4
votes
0answers
106 views

Documentation for the animate package with TikZ

I'm trying to locate some detailed documentation on the animate package. When I look at examples here and in other places, there is really way too much unknown syntax to figure out. I was hoping ...
4
votes
0answers
359 views

Draw a breaking ocean wave with Tikz?

I've just discovered this wonderful forum. After having tried for a while (and unsuccessfully) to draw a breaking ocean wave when approaching sore, I am asking anybody who might want to contribute ...
4
votes
0answers
125 views

pdflatex does not overwrite existing PDF files upon compilation when using TikZ external

I have a LaTeX/pgf/TikZ file that I'm trying to compile. I included the library external so that I could export the file. However, the problem is that \tikzexternalize apparently doesn't have a ...
4
votes
0answers
185 views

Drawing a gear with Tikz

I need some help to modify the \gear macro of this answer in order to be able to fill the drawn gear with a solid color. I've tried to move the \draw command outside the loop, but it does not work as ...
4
votes
0answers
302 views

Commonly used arrows with TikZ

In a previous question Gonzalo Medina and Peter Grill gave a solution to replace the \to arrow by an arrow generated by TikZ. For some people using TikZ in commutative diagrams, it would be perhaps ...
3
votes
0answers
138 views

Adding a normal vector to a curved mesh area

How can I put a normal vector on the outer blue mesh? TeXample \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{amsmath} \usetikzlibrary{arrows} ...
3
votes
0answers
158 views

Making a family of graphs in TikZ by a few definitions

I am trying to make in TikZ a family of graphs, as in included pictures. I can make them one by one, using nodes (circle/square/triangle, black/white) and joining them. However it seems to me, that ...
3
votes
0answers
57 views

Specify positions for top/bottom in Beamer vertical shading

MWE \documentclass{beamer} % Yes, this is a poster, if that matters in the slightest %\usepackage[orientation=portrait,size=a0]{beamerposter} \mode<presentation>{} ...
3
votes
0answers
92 views

Adding external figure using TikZ

I want to include figure in my pdf using TikZ. I used the following code but the figure disappears: \documentclass[12pt,vi,twoside]{mitthesis} \usepackage{lgrind} \usepackage{hyperref} ...
3
votes
0answers
79 views

Table and \tikzexternalize

It might not be a usual thing to do but I need to put some tikz pictures in a Table with externalization. I did \documentclass{report} \usepackage{tabu} \usepackage{tikz} \usetikzlibrary{external} ...
3
votes
0answers
91 views

Scale markers in external Tikz file

I use external .tikz files to include graphics in my LaTeX document. These .tikz files are generated by matlab2tikz. The scatter plots that come out though have very small markers. I want to scale ...
3
votes
0answers
94 views

Scale TikZ nodes and shapes for a given canvas size

I have the following code to produce an hexagon coverage area: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usetikzlibrary{positioning} \usetikzlibrary{calc} ...
3
votes
0answers
60 views

TikZ: using a bitmaps's dimensions as global bounding box

I'm using a tikzpicture environment to draw on a bitmap image in order to add annotations. I'm setting the width of my bitmap to \textwidth. I want to add annotations in the left or right margins of ...
3
votes
0answers
88 views

Optimizing tikz code for less redundancies

I don't use tikz very often. When I do, I'm usually pretty happy with the result (and with how useful that manual is). But I always think the code I produced to get there could be optimized, as in the ...
3
votes
0answers
138 views

Resizing pgf plots in an A0 beamer poster

I am creating a A0 scientific poster with the beamerposter package and I want to include TikZ/PGF plots. However, if I typeset these plots, the line width for the axis and for the data are too small. ...
3
votes
0answers
162 views

Matlab2tikz adds extra legend entries

The legend from a boxplot figure is not being created properly. I get this: Instead of thiS: But really only need 2 legend entries. Any Ideas why all the objects in this plot are being given ...
3
votes
0answers
58 views

How to extend the table when text longer then the size of a cell is inserted?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \tikzset{ table/.style={ matrix of nodes, row ...
3
votes
0answers
136 views

Naming 3D axes in pgfplots

I want to label the axes in a 3D plot with pgfplots. Using the anchors .right of origin and .above origin, I can label the axes as "x" and "y" in 2D with ease. In 3D, the labels must be tweaked to ...
3
votes
0answers
73 views

change the rotation in tikz 3d?

\documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{115} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (1,1,1); ...
3
votes
0answers
135 views

How to vertically align the captions for sub figures in subfigure?

This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \usepackage{caption} ...
3
votes
0answers
105 views

how to transform a pattern in tikz

I would like to be able to transform tikz's predefined patterns. To make things concrete, how should I modify the following code to get the checkerboard pattern to be slanted along with the rectangle? ...
3
votes
0answers
117 views

Arrowheads every two points in Tikz

I have a file data.dat with the following lines: -1.200000 0.000000 -1.200000 -0.728000 -0.728000 -0.728000 -0.728000 0.614172 0.614172 0.614172 0.614172 1.231670 which ...
3
votes
0answers
237 views

Tikz bar plot problem: Missing number, treated as zero \end

I have been trying to plot the figure: by using TikZ. However, the code does not compile and I get many errors on line 48, which is \end{axis}, as follows: Dimension too large Missing number, ...
3
votes
0answers
74 views

Is is possible to associate part of a drawing to a pdfcomment (or similar) interactive bubble?

It is apparently possible to put a TikZ drawing inside a pdfcomment (but using mbox). Is is possible to associate only part of a drawing (e.g. a line) to a pdfcomment? Below it is the suggested ...
3
votes
0answers
117 views

Defining multipart nested node with pictogram in north east corner

I'm trying to set up a node style that allows me to draw nodes like UML2 components diagrams, etc. What I consider as a good idea for a syntax is: \node {node} child{ \node {other node} ...
3
votes
0answers
253 views

Bode plot : any good alternative to bodegraph

I'm wondering if there is any alternative to "bodegraph" for plotting bode graph with latex. Especially I would ideally be looking for something easy to run (avoid external computation like with ...
3
votes
0answers
126 views

I need to provide a duotone pdf, what do I need to do with my figures?

I need to provide a duotone pdf (say black and cyan). My figures are made with tikz, pgfplots and asymptote (3D but no prc), some with opacity effects. I compile with pdftex and luatex. What do I ...
3
votes
0answers
227 views

How to add axes in a magnified part of a graph using spy?

My problem is the following. I would like to draw the (magnified) axes on the magnified area of spy. For instance, take the following example (from pgfplots.pdf, p.121): % Preamble: ...
2
votes
0answers
81 views

How to find intersections between line and rectangle with rounded corners

I'm trying to display a line "under" a rectangle. For this I tried using the intersections package, but somehow I the line doesn't stop: \documentclass[a4paper]{article} \usepackage{tikz} ...
2
votes
0answers
66 views

TikZ fit nodes with non-regular shape

I am seeking a better way of doing the following: fitting nodes with a non regular shape, like it is in the MWE. So that I can give a label to the fitted nodes. \documentclass{standalone} ...
2
votes
0answers
94 views

3D effect with tikz

I am completely new to tikz, and I have this at the moment . Here is the script I used to get this. Is there anyway to make it look more 3D. I mean the red cone is in 3D, but look rather 2D-ish. ...
2
votes
0answers
75 views

Rounding a coordinate in TikZ

I'm trying to combine animate's \multiframe command with a TikZ \fill command so that in every fourth frame, the top of my rectangle is moved by one unit: \multiframe{20}{rya=10+-0.25}{ ...
2
votes
0answers
113 views

Model Railway planning

As there are so many fancy things which are able to do with LaTeX, is there a possibility to create layouts for model railroads? I know only special (mostly Windows) programs, to do that, e.g. ...
2
votes
0answers
52 views

Transparency group and decoration markings

How can I set the transparency so that the arrow belongs to the same transparency group as the path? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} ...
2
votes
0answers
173 views

How to draw a bow-tie risk diagram

I'd like to draw some bow-tie diagrams, which are diagrams for modelling risk, particularly for businesses like oil and gas and transport. In the centre, there is a "top event", and there are zero or ...
2
votes
0answers
63 views

Stretching each cell to the same height

I'm building a TikZ diagram in a row-by-row fashion. Each row is composed of a sequence of blobs, and the end of the row is signalled by issuing \newrow. Here is the code I have produced so far: ...
2
votes
0answers
60 views

Pass a coordinate via pgfkeys

I'm using 3dplot to draw in 3D. Now I want to define my own environment, called pose, that is supposed to be used inside a tikzpicture-environment. It should perform a coordinate system tansformation ...
2
votes
0answers
84 views

Dependent node size in TikZ

I'm producing some control theory flow sheets in TikZ where I have specified the node box size. Since I'm making a lot of these flow sheets, I have set global styles for them, for instance the box ...

1 2