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
197 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
478 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
152 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
372 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
183 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
198 views

Using TikZ with DokuWiki

I am using DokuWiki to write my notes. The one thing that I am missing is the ability to plot. I would like to use TikZ to fill this need, but I have been unable to get exactly what I want. I am using ...
3
votes
0answers
371 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
222 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
633 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
407 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
276 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
301 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
22 views

Filling regions created by plot[smooth] with color

I would like to color each region of the picture by some color. Tikz code: \begin{tikzpicture} \node[draw=none] at (3.5,3) {\scriptsize \ldots}; \node[draw=none] at (0.42,1.47) [text width=1cm] ...
2
votes
0answers
37 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
49 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
64 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
61 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
60 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
48 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
67 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
55 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
54 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
82 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
89 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
77 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
37 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
86 views

How to add vertical and horizontal lines to ybar figure and defining colors for bars?

I'm trying to reproduce a figure from a paper so it would be in line with the visual style of my paper. The figure I'm trying to reproduce is Since originally posting I've found a way to define ...
2
votes
0answers
46 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
84 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
80 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
126 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
88 views

Custom tikz pattern: hatchangle

In PSTricks there exist the fillstyles vlines, hlines, crosshatch which have counterparts in tikz patterns library. However, in PSTricks they can be modified by following options: hatchwidth, ...
2
votes
0answers
55 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
185 views

Generating On-Shell Diagrams

There is a paper called "Scattering Amplitudes and the Positive Grassmannian", and they have diagrams that they call "On-Shell Diagrams". (See pg. 10 of http://arxiv.org/pdf/1212.5605v2.pdf). I am ...
2
votes
0answers
70 views

callout with multiple pointers, how to design it

I know, that this question was asked more than year ago (see here), but given answer is limited to callouts without border line. Is there a way to improve there given answer with callout shape with ...
2
votes
0answers
51 views

Tikz: Drawing lines with \draw[opacity = 0] produces .dvi files in which the lines are visible

Here's my MWE: \documentclass[11pt]{article} \usepackage{pgf,tikz} \begin{document} \begin{figure} \begin{tikzpicture} % Bounding box coordinates \coordinate (q) at (1, 0); ...
2
votes
0answers
74 views

Location and size of pgf plot axis in a tikzpicture - with tikz positioning library?

This could be a second part to Positioning pgfplots axis in tikzpicture , I guess ; consider the following MWE: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{positioning} ...
2
votes
0answers
239 views

pgf-Tikz code generator for Latex

LatexDraw is a PSTricks code generator for Latex. LatexDraw generates PSTricks codes of any fugure are drawn. Are there any such tools that will generate pgf-tikz code of any figure for latex? If ...
2
votes
0answers
67 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
2
votes
0answers
109 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
98 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
67 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
38 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
57 views

How to position a node in the corner of the (current) TikZ picture?

I'm drawing a flowchart as a standalone TikZ picture and want to position the legend in the lower right corner of the picture. How can I reference this position or find its coordinates?
2
votes
0answers
84 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
84 views

Fork down edge style with Tikz 3.0 tree graph

When node/child style is used, it is possible to achieve fork down edge style picured here: What would be the syntax for the similar edge style, but using graph? The below MWE produces sloped ...
2
votes
0answers
207 views

Installing pfgornament?

Note: I have already searched through this site on how to do this but a lot of the things explained make little to no sense to me, I am a novice at this stuff so I was wondering if could get a little ...
2
votes
0answers
109 views

Double arrow a la chef with two edges shows gap

I am looking for a double arrow that describes a complete 180 degree path. I found a wonderful example, but I have a little issue with one of the edges. \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
59 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
130 views

How to draw “stacked blocks” with tikz?

I want to draw using tikz a figure which looks like the following: I started writing it using nodes and positioning them using right of =, above of = but I don't know how to avoid using hard coded ...