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)

2
votes
0answers
56 views

tikz command fails after .cls file change

The following tex content is a part a tex file which is added to main file with command input. With a new .cls and some other unrelated changes, tex isn't compiling with error message of ! Package ...
2
votes
0answers
183 views

Relative paths when using tikz externalize + subfiles

I have a large document which consists of ~100 smaller files which are compiled together using the subfiles package. To be able to use a common style file for them, whose relative path should be the ...
2
votes
0answers
76 views

TikZ and Gnuplot: Put all *.gunplot and *.table in a customized folder

My question is an extension from the question "bodegraph on Ubuntu 10.04" Based on the answers of that question, we can either put all generated *.gnuplot in the directory gnuplot/\jobname/, or in ...
2
votes
0answers
138 views

How to close path for complex path in TikZ?

I'm doing a bit of 3D primitive fugures using this code: \documentclass[tikz,10pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} ...
2
votes
0answers
85 views

Defining a command for drawing contours

I have seen a lot of questions asking about how to draw arrows along curves. The decoration libary can help with this, but the solution seems very manual.. Is it possible to make a command that draws ...
2
votes
0answers
156 views

Constraint for a decoration: how to know result after decoration

My question is kind of extending of this answer. I want to decorate a path with text only when text fit the path, but also I want to know if decoration was success. I need to know this to be able to ...
2
votes
0answers
53 views

Sectional plane disappears after using “unit vector ratio”

I simply can't find a solution for my problem. I hope you can help! I use matlab2tikz to plot a 3D slice plot from matlab in tikz. The problem is after setting the unit vector ratio = 1 1 1 the ...
2
votes
0answers
180 views

Wrapper box for TikZ picture

I am trying to wrap a tikzpicture node inside a box, so that I can refer to this "bounding box" from inside the picture for positioning the nodes relative to that box. I am looking for a command ...
2
votes
0answers
224 views

How should I read the current TikZ “label distance”?

I decided that I don't like the behaviour of the label functionality of TikZ. I want to get labels that are positioned using the anchor opposite the specified label angle. So for example if the label ...
2
votes
0answers
120 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
2
votes
0answers
42 views

How does \pgfdecoratedpathlength work?

I am trying to understand how it works the decoration pgf module, in order to solve the unanswered question Fiber-Optic-Style decoration. I am having an hard time with some macros, for example ...
2
votes
0answers
86 views

How to make travel smoothly a tikz picture across a slide?

The beamer frame below shows a tikz circle. I would like the tikz circle to travel smoothly across the frame according to some "random" path. Can you help me with the animateinline environment? ...
2
votes
0answers
112 views

mdframed parchment layout

I have recently found a very nice example of how to create text boxes with a parchment-style layout: http://www.texample.net/tikz/examples/framed-tikz/ Also, here on tex.stackexchange, there are ...
2
votes
0answers
148 views

load tikz library from relative path

I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it tikzlibraryname.code.tex. Then it can be ...
2
votes
0answers
84 views

Showing graph nodes at various distance after pause in beamer

I have a graph with some nodes. I have the tikz code and output for the same as: \begin{tikzpicture} \tikzstyle{v} = [circle,fill=black!25, text width = 9pt,text centered, minimum size = 5pt, inner ...
2
votes
0answers
200 views

TikZ: How to set a node on an exact position on a line?

to set a node on a line the usual way should be something like this: \begin{tikzpicture} % place nodes \node[draw] at (0, 0) (a) {A}; \node[draw] at (5, 0) (b) {B}; \node[draw] ...
2
votes
0answers
156 views

Tikz library files at given path

I am using tikz library files from this question. I use the code: \usetikzlibrary{paths.ortho} and put files tikzlibrarypaths.ortho.code.tex and tikzlibrarypaths.ortho.tex in the root folder. I ...
2
votes
0answers
129 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
2
votes
0answers
138 views

Why can't I get a conditional command to work in a macro invoked within a tikzpicture?

I wanted to create a macro that can be invoked in the middle of a tikz path and behave differently, conditional on one of the arguments. Here is an example document: \documentclass[a4paper]{amsart} ...
2
votes
0answers
158 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
2
votes
0answers
73 views

Has anyone combined marginfix and tikzmark yet?

I am working on a big book project, and up until today I refrained from using glue. But now I had to, and, lo and behold, suddenly my margin notes' position is broken :( The reason is that marginfix ...
2
votes
0answers
129 views

Tikzpicture: Data from File

I want to create a number of trees from a series of input files. What syntax would the file need to be in to create the following tree? This is what I need done, but from a file and with loops ...
2
votes
0answers
91 views

Producing odt from tikzpicture?

How can I produce an odt file from a tex source which includes tikzpicture ? I tried mk4ht oolatex test.tex but I only be able to produce an empty odt file from the following code : ...
2
votes
0answers
78 views

different coordinate frames for anchors and backgroundpath in node shapes?

I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the ...
2
votes
0answers
93 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...
2
votes
0answers
88 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
2
votes
0answers
2k views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). ...
2
votes
0answers
196 views

tikz-3dplot: Drawing an arc with the let syntax in 3d

How can I use the let syntax to draw an arc when using tikz-3dplot? At the present, the arc is drawn but doesn't look right. \documentclass[tikz, convert = false]{standalone} ...
2
votes
0answers
126 views

Changing the font size of nodes inside a savebox causes TeX to exceed stack size

I'd like to have a tikzpicture (actually several) appear inside a node of another tikzpicture. I already know that I can use savebox for that, the problem is: When I change the fontsize of a node ...
2
votes
0answers
258 views

matlab2tikz/pgfplots adding colorbar afterwards

I am currently using both matlab2tikz and pgfplots with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning ...
2
votes
0answers
169 views

Drawing recursive randomized structures with TikZ

After I learned earlier today how to draw nice randomized trees (Draw randomized tree in TikZ) , I discovered that I'm not quite satisfied with how the results look like - because the structure I want ...
2
votes
0answers
89 views

Customizing pgfuml (distances)

I'm using pgfuml to create some sequence diagrams. As you can already see in the examples on the pgf-uml Homepage, diagramms get very crammed if you insert many descriptions. Text and arrows overlap ...
2
votes
0answers
133 views

TikZ shape definition from TikZ rather than PGF

Is there a way to define a TikZ shape using TikZ code rather than PGF? I'd like to have a gear shape (and some others) that I can use as a node and add text to it, have arrows go in and out of it, ...
2
votes
0answers
269 views

TikZ: constructing hyperbolic trajectories and angled circles on a sphere

I am trying to construct this sphere above. What I have so far is below: \documentclass[tikz, convert = false]{standalone} \newcommand\pgfmathsinandcos[3]{% ...
2
votes
0answers
406 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
0answers
266 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
2
votes
0answers
357 views

How to fit dot graph with dot2tex(i)

Currently I used the dot -Tpng to include graphs in my LaTeX document. However it produced sometimes suboptimal graphics I wanted to look into dot2tex(i). The problem I encountered is that previously ...
1
vote
0answers
51 views

Problem with Dense distribution

What is poisson.sty? and how can i fix this problem because I want to run the below code but there is an error ( poisson.sty not found) \documentclass{article} \usepackage{tikz} \usepackage{poisson} ...
1
vote
0answers
42 views

Unequal bin widths in pgfplots density histogram

In the pgfplots manual, it talks about density histograms with equal bin widths/ranges. Is it possible to make a density histogram with specified unequal bin widths/ranges? For example, if I set ...
1
vote
0answers
46 views

Tikz \draw not working with several tikzpictures on the same page

I need to output a bunch of number lines from a program, to latex, and I'm using tikz. On these number lines, some areas need to be highlighted, like in the first line of the picture. However, if a ...
1
vote
0answers
20 views

TikZ-UML Error When Creating Component Diagram

I use the latest version tikzuml-HEAD-2013-03-19.tbz of TikZ-UML from http://perso.ensta-paristech.fr/~kielbasi/tikzuml/src/. I try to create a component diagram like that: \documentclass{article} ...
1
vote
0answers
56 views

placing text using \widthof with tikz

I am new to using Tikz and I do have a question about writing a macro with allows me to use a parameter to scale a simple drawing and put text according to the size of the drawing. Here is what I ...
1
vote
0answers
30 views

how can I load a tableplot, put random colors, and the legends automaticaly using a foreach?

\begin{tikzpicture} \begin{axis}[scaled x ticks={real:1e3},xtick scale label code/.code={$\cdot 10^3$}, axis lines=left, %xticklabel={$\pgfmathprintnumber{\tick}\lambda$}, pone lambda al lado del tikz ...
1
vote
0answers
56 views

How to fill random spaces with random circles in tikz?

Does anybody know how to efficiently draw either one of the following pictures in tikz? Specifically the "Well Graded" interests me, as one would have to fill random spaces between circles - with ...
1
vote
0answers
45 views

How can I horizontally align the bars of two barplots

I would like to align the clusters of the two barplots of the figure below. For instance, I would like that the cluster of "Program-2" on the second bar appeared just below the "Program-2" cluster ...
1
vote
0answers
67 views

Fitting TikZ graphs into a small space

I am trying to produce a graph of the kind at the end of Kanamori's textbook - "The Higher Infinite": It would be nice to have a method that extends to any graph of implications, so rather than put ...
1
vote
0answers
59 views

Centering TikZ picture inside poster box

I would like to center a tikzpicture inside a posterbox (baposter) \headerbox{Vorgehensweise}{name=definitions,column=3,below=problem,span=3}{ \usetikzlibrary{shapes.geometric, ...
1
vote
0answers
130 views

Organizational Chart / Family Tree using tikz drawing library

Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose. Here are two previous questions that do this without the use ...
1
vote
0answers
37 views

Cannot align legend's text in plots using tikzpicture package

I'm trying to align the text (text + $math$) within the legend in my pgfplot. Despite I put the "legend cell align=left", the text still is centred. Any guess? \documentclass[]{article} ...
1
vote
0answers
75 views

TikZ decorated paths and fixedpointarithmetic library

Background: I am trying to apply multiple decorations to a path in a TikZ picture. In this particular case, my attempts fail as the maximum dimension PGF can calculate with is exceeded. This is not ...