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

Controlling delimiters in matrices typeset with TiKZ

This question is directly related to Loop Space user's answer to question Broken matrix - gaps in brackets, in which an alternative TiKZ method to amsmath matrix typesetting is provided. The ...
2
votes
0answers
192 views

TikZ ER-Diagram double edge looks ugly

Drawing an ER-Diagram in TikZ and using double edges results in ugly connections of those edges into the nodes. What can be done to connect those edges nicely to other nodes? \documentclass{scrartcl} ...
2
votes
0answers
123 views

Raising a matrix of math nodes in tikz

I'm drawing a series of diagrams with many parallel edges, which I typeset with many instances of paths, yshifted as necessary. I'd like to use the same code for all diagrams, but some of them ...
2
votes
0answers
159 views

Tikz Sphere without using Shade

I am using following graphic in my beamer slides I use evince pdf viewer and I find that the pdf displays very slowly. When I click for next page, it appears around 15-20 seconds later. I have a ...
2
votes
0answers
215 views

Question on compiling pgfplot/tikz figures through latex+dvips+ps2pdf

I have a lot of problems when compiling pgfplots/tikz figures through the latex+dvips+ps2pdf chain. I can successfully compile the same set of pgfplots/tikz figures through pdflatex. The reason that I ...
2
votes
0answers
136 views

How to scale hatch in tikz figure in LaTeX?

I have ellipses with hatch. I want to use lines or bricks hatch but more rare than default. I can change spread between lines in this way Custom and built in TikZ fill patterns. It worked, but it's ...
2
votes
0answers
85 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} ...
2
votes
0answers
147 views

Arrow head at end of spiral curve

Folks, Here is my MWE. I need to draw a spiral for trigonometry more than one revolution. How to place an arrow head on the spiral where it meets the terminal end? \begin{tikzpicture}[scale=1.5, ...
2
votes
0answers
113 views

Beamer Handouts: 4 on 1 w/ adjusted positions, but page numbering incorrect

I need to make Beamer handouts (either 4 on 1 or 8 on 1). Below is my MWE. I think the usual 4 on 1 has too much space between slides, with the slides too close to the margins (printing the handouts ...
2
votes
0answers
73 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 ...
2
votes
0answers
71 views

lyx with background won't load unless I type \newpage after the text

I try to write a document with a background in lyx, I made sure it works on Texmaker, on Texmaker it needed to be built a couple of times and then it got it right but when I try to preview or export ...
2
votes
0answers
83 views

Externalised pgfplots figure.eps gets rotated 180 degrees

I am externalizing some plots by pgfplots in .eps format by using these two sizes case1: width=0.55\textwidth height=0.40\textwidth case2: width=0.6\textwidth height=0.45\textwidth which give a ...
2
votes
0answers
171 views

How do I get a straight line in \begin{tikzpicture}[decoration=Koch snowflake]?

The following code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.fractals} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=3,decoration=Koch snowflake] ...
2
votes
0answers
137 views

beamer: make a picture stay in the foreground

I am trying to write some style file for a poster framework, we can use. The header is almost ready: \setbeamertemplate{headline} { \begin{beamercolorbox}[ht=15cm]{headline} ...
2
votes
0answers
244 views

Solid of revolution about arbitrary axis

I'd like to rotate the region between y=cos(x) and y=x^2 - 0.25*pi^2 about the line x=pi. How to do this? So far I have only managed to rotate around the x-axis: \documentclass[letterpaper]{article} ...
2
votes
0answers
75 views

Why is there a compilation error? - moderntimeline

I am using article class to prepare my CV. When I went through this, I found that moderntimeline package can be used only with moderncv. So I took only the TikZ code answered by Jake.But I get ...
2
votes
0answers
92 views

Referring to nested tikz nodes - works with pdflatex but not with latex

I am trying to achieve a box within another box in tikz and then drawing an edge from the inner box to an outer node. I stumbled upon this solution When I compile it using pdflatex, I get the desired ...
2
votes
0answers
235 views

Controlling the orientation of a Tikz decoration markings arrow?

I thought that my woes in Decoration marking arrow style ignored in custom node shape? were temporarily solved, but alas: if I do a dimension line (A) -- (B), then all is fine; but if I do (B) -- (A), ...
2
votes
0answers
396 views

Special decoration for TikZ pin feature

I try to achieve the curvy pin style I sketched below. It would help to distinguish pin lines from grid and other lines in the diagram. How can I realize a decoration that automatically draws such ...
2
votes
0answers
141 views

polar chart heat map

I was wondering if anyone could help me with making a polar heat map. To the template i chosen is http://www.texample.net/tikz/examples/polar-coordinates-template/ what i would like to do is to colour ...
2
votes
0answers
299 views

pgfkeys: I do not know the key '/tikz/triangle 60'

Here I am back again with a new question. I try to make a poster with beamerposter. Now I would like to draw a arrow with tikz, but I get this error message pgfkeys: I do not know the key ...
2
votes
0answers
93 views

(not)implies sign as edges in tikz graph

I would like to make a graph in tikz as in However I would like to have an implies symbol instead of an arrow. How can I make a figure such as above but with implies (as well as not implies signs) ...
2
votes
0answers
42 views

Why doesn't prefixing an estyle work

Prefixing a style to a previously created /.estyle using the current (June 2014) iteration of Mac Latex inserts a \noexpand before the original style. As you can imagine this causes chaos! Bug?
2
votes
0answers
420 views

Combining beamer, tikz, externalize and standalone

I've read a bunch of questions and answers on these topics as well as the documentation of the external library for tikz. I suspect I fundamentally misunderstand what I'm doing. I have a mindmap ...
2
votes
0answers
268 views

Passing an array type argument for new command

I've looked around and can't seem to find anywhere, but I was wondering if there is somewhere you can do something like the following: \newcommand{\loopy}[1]{ \begin{tikzpicture} \foreach ...
2
votes
0answers
99 views

How to zoom (and apply grid on) subfigures

So I have folders containing triplets of images which all have the same style as shown in an example below It is basically an automatically generated image and a color-bar besides it. I want to ...
2
votes
0answers
154 views

How to draw an arc greater than 180 deg in tikz-3dplot?

\tdplotdrawarc command draws an inferior arc by default, but how to draw an superior arc? I know that there is a way to draw an superior arc in tikz: \tikz \draw (0,0) arc [start angle=0, end ...
2
votes
0answers
104 views

Colour of edges according to edge value

I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value ...
2
votes
0answers
104 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
107 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
143 views

Self similar fractal with first iteration highlighted

I want to draw some self similar fractals and highlight the first iteration. I was able to do so for the Sierpinski Triangle, although my code is somewhat ugly. (A minimal working example is included ...
2
votes
0answers
222 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
85 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
270 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
311 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
56 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
200 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
115 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
158 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
241 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
207 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
164 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
106 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
3k 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
490 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
347 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
669 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
370 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 ...
1
vote
0answers
27 views

Scaling tikz graph when pgfplots is loaded

This question is related to: tikz: Scaling the unscalable — issues with a TikZ graph I'm using the suggested modification from the linked answer to scale tikz graphs. However, I'm also including ...
1
vote
0answers
60 views

Odd behavior of tikz in beamer style

I want to create my own beamer style for my presentations, and I follow this link to do so. I change the title page template as following \defbeamertemplate*{title page}{texsx}[1][] { ...