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)

3
votes
0answers
35 views

Why does the meaning of “above” seem to change when my “shift” coordinate changes?

The only difference between these two examples is the size of the xshift. The MWE with xshift=-1.5in and xshift=-1.0in places the text where I expect, but not with xshift=-0.75in and xshift=-0.5in: ...
3
votes
0answers
87 views

How do determine the arrow form in Tikz

I plotted following image: Using this code: \documentclass[10pt,a4paper,twocolumn]{article} \usepackage{bondgraph} %Draw bondgraphs ...
3
votes
0answers
41 views

convert TikZ to XAML

How can I convert that drawing to XAML? \documentclass[12pt]{scrartcl} \usepackage[utf8]{inputenc} % ö,ä,ü möglich im Text \usepackage{float} % damit Bilder fließen können \usepackage{tikz} % ...
3
votes
0answers
195 views

How to draw 3d molecules with TikZ?

Is it possible to draw molecules in 3d with TikZ like in this picture?
3
votes
0answers
159 views

tikz externalization: list and make forces make to recompile the tikz images every time

I'm trying to speed up my latex development by parallelising as much tasks as possible and by redoing as little work as possible on every run. Amongst other things, I want to externalise my tikz ...
3
votes
0answers
342 views

using gnuplot to plot data from a file

I am trying to plot some data using pgfplots, but the data are so extensive that the maximum capacity is reached. I get the error: TeX capacity exceeded, sorry [main memory size=3000000]. What can I ...
3
votes
0answers
173 views

How to automatically optimize the PDF output of TiKZ externalize?

I use pgfplots with externalization for generating plots in my document. For heavy plots the output PDF for a figure can grow to few hundred KB. I used Adobe Acrobat to optimize the PDFs which ...
3
votes
0answers
279 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 ...
3
votes
0answers
257 views

Compiler error “save size exceeded”

I have a problem with compiling my thesis. Due to a new plot I inserted, it lo longer compiles. According to this guide, i increased the limits for lualatex as follows: pool_size=5000000 ...
3
votes
0answers
250 views

Generating Gantt Charts for process scheduling

I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need ...
3
votes
0answers
102 views

how to mark the minimum of a function in a certain range?

In the MWE below, \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot [domain=-10:10, samples=101, blue]{(1.5*x)^((x/(1-x)))}; \addplot ...
3
votes
0answers
33 views

Why are the numbers I get from the PGF profiler library all so close to an integer number of seconds?

I wanted to see whether some macros I wrote could be made noticeably quicker by eliminating the use of parsed PGF math commands, in favour of using the PGF math function macros (\pgfmathadd, etc.) ...
3
votes
0answers
125 views

How to define a pgf curve with points instead of controls?

The syntax to produce a Bézier curve in pgf is \pgfpathcurveto{first control point}{second control point}{target} This defines the curvature by control points. Considering the degrees of freedom ...
3
votes
0answers
204 views

pgfplots - divide y-axis in 2 parts

I have a plot, code here. Now the problem I have is that because of the scale of y-axis it looks as if the plots are actually just 3 lines. Now what I want is that the y-axis is sort of splitted. Into ...
3
votes
0answers
534 views

PGFPlots: importing data from a txt file

So I imported data from two txt files. However, I would like to plot the mean of the data and then the standard deviation bars. How can this be done? \documentclass[tikz, convert = ...
3
votes
0answers
160 views

Help for reproducing this page with TikZ

I am not new to LaTex/XeLaTeX, but, I am new to the TikZ world, I want to put the number page and the name of the book (or what ever) as this example: ...
3
votes
0answers
407 views

TikZ scaling graphic and adjust node position and keep font size

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and ...
3
votes
0answers
202 views

tikzipicture have different arrow tip colors in pdf output and dvi output

i have the following mwe \documentclass[tikz,border=4pt]{standalone} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=angle 45,scale=3,ultra thick] \draw[help lines] ...
3
votes
0answers
97 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 ...
3
votes
0answers
139 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 ...
3
votes
0answers
419 views

Clustered Stacked bar Chart Overlapping Labels

I have following code by which I generate the following graph \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata,calc,shapes, ...
3
votes
0answers
237 views

drawing lines using polar axis coordinate system in pgfplots

I would like to draw arrows with polar axis notation in a pgfplots figure that has Cartesian axes with the draw command: \draw[->] (polar axis cs:radius=1, angle=30) -- (polar axis cs:radius=2, ...
3
votes
0answers
723 views

Multipart nodes with multipart subparts — style issue

I want to typeset multipart nodes that have multipart sub parts — similar to the following diagram (from Miller and Ranum) I have tried using TikZ horizontal split rectangles inside vertical split ...
3
votes
0answers
436 views

TikZ: scaling the tikz picture environment

If I scale the TikZ picture environment, everything should scale by a factor of x correct? If that is the case, why would some code not scale or scale incorrectly when it is in the environment? For ...
3
votes
0answers
309 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
317 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} ...
2
votes
0answers
51 views

! Dimension too large in pgf

I have no familiarity with TEX, PGF, etc -- but somebody was kind enough to offer me code to produce something I'd like to use. Unfortunately, I get a Dimension too large error when I run the ...
2
votes
0answers
45 views

tikz pattern north west lines dashed

Hello I am trying to create a figure with tikz. Im using patterns to define a few different regions. zone 0 is gray zone 1 is north east lines z2 is north west lines For some reason the diagonal ...
2
votes
0answers
51 views

Problem filling rectangle with a TikZ pattern

I am trying to add a pattern-striped background to a rectangle, but the PDF generated with PDFLatex produces a couple of completely black rectangles instead of the ones filled in with the pattern. The ...
2
votes
0answers
91 views
2
votes
0answers
39 views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
2
votes
0answers
61 views

How to make a function inside the tikzpicture behave like outside

I have a makro which generates a structure(rule) and a reference to that structure. It does not behave when inside a tikzpicture. How to make the function robust to reference the structure even when ...
2
votes
0answers
29 views

Adding prefix to TikZ node and coordinate names

This question is somewhat related to my search for a good practice to include TikZ stuff in my documents. Suppose a document (book) with a lot of formulas and equations which you have decorated with ...
2
votes
0answers
69 views

tikz-3dplot, geodesics and adressing endpoints in polar coordinates

I am trying to draw geodesics on a sphere. While many approaches, like for example this one, i am more interested in another way. If i specify two points, say qand p on the Sphere, i would like to ...
2
votes
0answers
35 views

Verbatim and Bacground&TikZ compatibility problems

If to compile below MWE, you'll get next error: According the error message, the problem is tikz and calc library package, which looks like links with background package. Also, you will not find ...
2
votes
0answers
139 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
76 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
67 views

Set tikz font type like text

I have the problem that my labels from lines as from the axis are in a different font as my text. How can I set the tikz font to a similar one as the text? I have the following example: ...
2
votes
0answers
69 views

My Markov-Chain Graph is not shown in the right place

This is my Graph: \begin{figure}[htb] \centering \tikzsetnextfilename{kalman} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node ...
2
votes
0answers
81 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
65 views

fancytikzposter damage pdf

I am using fancytikzposter, but for some reason that I do not understand the pdf file generated cannot be opened from another computer, here is my code that I got from here. \documentclass{a0poster} ...
2
votes
0answers
81 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
59 views

How can I make concentric circles as grid for a polar plane?

But I need to delimitate the circles for x, y in [-2,6]. \begin{tikzpicture} \draw[yellow!10, fill=hkvbluelogo!5](-2, -2) rectangle (6, 6); \foreach \s in {0, 1, 2} { \draw [lightgray] (0,0) circle ...
2
votes
0answers
123 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
66 views

“indirect” variables in foreach

I'm trying to draw three "graphs" which are rectangles situated side-by-side. Each has four points to be placed on them. These four points are the "scores". Using a foreach loop is a natural for the ...
2
votes
0answers
83 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
93 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
99 views

How to draw 3-junction and 4-junction SQUIDs?

UPDATE Thanks to John Kormylo I was able to draw a 4-junction SQUID using four components like: The whole SQUID is drawn using the following code \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
88 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
42 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 ...