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
836 views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
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
50 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
178 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
207 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
117 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
41 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
108 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
138 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
82 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
185 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
145 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
135 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
125 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
75 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
92 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
87 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
1k 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
191 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
124 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
249 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
167 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
88 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
132 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
267 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
397 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
263 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
349 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
42 views

tikz cannot parse radius in “radius=0.3” command

\documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture}[scale=1] \draw (0,1.7) circle [radius=0.3] node {$T_1$}; \end{tikzpicture} ...
1
vote
0answers
49 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
28 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
52 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
51 views

Calculation in TiKz coordinates

Could somebody tell me why with that code \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{positioning} \usetikzlibrary{calc} \newcommand{\loga}[1]{{log10(#1)}} ...
1
vote
0answers
38 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
61 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
49 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
81 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
31 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
67 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 ...
1
vote
0answers
35 views

Can I make an alias for a node argument in TikZ

When I am drawing illustrations with TikZ, the most common mistake I make is incorrectly writing the relative position of a node. I would for example write "left above" in stead of "above left". It is ...
1
vote
0answers
80 views

Electric network one-line diagrams

I'm looking for a way of drawing one line diagrams of power distribution grids. So far I've come across CircuiTikZ, but this package seems to be oriented to a different kind of circuit diagram and ...
1
vote
0answers
87 views

Semi-transparent Tikz nodes

Trying to reproduce the semi-transparent fill from the answer to my previous question http://tex.stackexchange.com/a/188453/37570 I cannot get it to work. Tried adding backgrounds library inside ifpdf ...
1
vote
0answers
34 views

\draw via \pgfplotstableforeachcolumnelement fails outside {axis} environment, but works inside?

Consider this MWE: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotstableread[col sep=space,row sep=newline,header=true]{ ts val 0.0 0.0 1.0 ...
1
vote
0answers
90 views

Flowchart arrows Using TikZ

I would like to write one continuous tex file for my entire flowchart, and let it automatically place itself on the right pages. Is there a way to do that? Currently I have to write a separate tex ...