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)

1
vote
1answer
298 views

How to add a package stereotype in tikz-uml?

I need to draw an "extended" uml diagram for problem frames. For this purpose I installed tikz-uml (because I am also using tikz for other drawings). My packages need a stereotype, but the tikz-uml ...
5
votes
2answers
890 views

circuitikz label placement seems inconsistent - how to fix it?

I'm new to circuitikz and fairly new to TikZ, and have a seemingly simple problem. The labels on my resistors are on opposite sides, for no reason that I can find. \documentclass{standalone} ...
4
votes
1answer
381 views

Preserving styles while changing axis y line in pgfplots

The code for the MWE generating this image is given below (click for full-size): Basically, I had some graphs like on the left, until I realized I need to shift the x axis - this also forces me to ...
3
votes
1answer
192 views

Total Height of Minipages and MDFramed Boxes

I want to use an arbitrary number of mdframed boxes in a multicol environment. Each column should have the same height, which means the ends of the last box in each column should match (see figure ...
3
votes
1answer
304 views

Animated arrows

I would like to animate red arrows, some one would help me? thank you. \documentclass{beamer} \usepackage{graphics} \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} \usepackage{lmodern} ...
3
votes
1answer
363 views

TikZ/figure environment: Placing footnote at end of figure

Another update. This code displays essentially what I need. The only question I have at this point is if there is a way to enter the text of my "footnote" so that each line doesn't have to be placed ...
4
votes
1answer
325 views

Drawing directed hyperedges with TikZ

I'm currently working with modelchecking of symbolic dependecy graphs for my semester project in Computer Science, and am dire need of an easy way to draw dependency graphs preferably using TikZ. My ...
7
votes
1answer
2k views

Does pgf 3.0.0 on ctan not have the arrows.meta tikz library?

Ever since upgrading to pgf 3.0.0 and tikz-cd 0.9b, I cannot load the tikz-cd package. The issue seems to be with the arrows.meta tikz library. The following MWE throws up 3 errors and a warning, also ...
2
votes
1answer
313 views

Overlapping transparent impulses (ycomb) with pgfplots?

Consider the following MWE: \documentclass[% 12pt, journal, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{tikz} ...
2
votes
1answer
456 views

TikZ libraries 'shapes' and 'graphs' incompatible and compilations fails with “missing \endcsname”

I need to use the TikZ libraries graphs and shapes in the same document. But they seem to be incompatible. Here is a minimal example that makes active use of the graphs library, but does not need the ...
0
votes
1answer
225 views

Aligning .tikz pgfplots with semi custom styles

Previously I was helped with how to align and position graphs in a table with optional subplots in this question: Overlay two .tikz files from input It worked great, but I was not happy using scaling ...
2
votes
1answer
169 views

Custom style just for width and height?

I have some pgfplot graphs in .tikz files and I want to define a custom style to them that only overrides some entries, and uses whats in the .tikz files for the rest. Example: In my .tikz file I ...
6
votes
1answer
265 views

Why doesn't a \foreach variable work in \draw in an \axis?

I'm finding some weird behavior with TikZ's \foreach within an \begin{axis} environment. This works: \foreach \x in {-2,-1,...,2} { \addplot[thick, domain=0.05+(\x*2-1)*pi/2:+(\x*2+1)*pi/2-0.05] ...
10
votes
1answer
1k views

semiverbatim with tikz in beamer

I'm using semiverbatim with tikz in beamer. My following MWE throws error: ! Package tikz Error: Sorry, some package has redefined the meaning of the math-mode dollar sign. This is incompatible ...
3
votes
0answers
165 views

Using tikzpicture in beamer to make a directed acrylic graph [closed]

I am trying to add a directed acrylic graph to a beamer presentation. Using this code (reproduced below) I created a slide, but the image produced has every node and arrow stacked roughly on top of ...
2
votes
1answer
161 views

How to center text in a schemabox?

I would like the text in the nodes between the arrows to be centered rather than left aligned. Using \centering or \begin{center} ... \end{center} around the minipage or setting text align=center in ...
25
votes
5answers
1k views

TikZ - Recursive Arc Drawing

I'm trying to make Farey diagrams similar to those seen here (click) or the screenshot as follows, Namely, I'd like an example of the one seen on the top of page 6. From there I hope I can figure ...
3
votes
2answers
248 views

Rotating curve by 360 degrees properly with TikZ

I'm writing about the volume by an integral, and I had to draw this. How do I draw it properly? Here is my codes: \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} ...
5
votes
1answer
155 views

How can I style tkz-euclide points?

The tkz-euclide package lets you do things like \begin{tikzpicture} \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C} \tkzDrawPoints(A,B,C) \tkzDrawSegments(A,B B,C C,A) ...
8
votes
2answers
693 views

Descriptive diagram with direction

I'm new to Tikz and am working on converting SmartArt from MS PowerPoint to LaTeX. One of my diagrams looks like this: I'm aware of the package smartdiagram, and I found the "descriptive diagram", ...
2
votes
1answer
1k views

Simple Line-Plot with date on x-axis

I need to do a really simple line plot and my data is looking like this: Date Value Apr2013 0.06 Mai2013 0.08 Jun2013 0.1 Jul2013 0.2 Aug2013 0.4 Sep2013 1.5 Okt2013 2.0 Nov2013 4.1 Dez2013 8.1 ...
3
votes
3answers
1k views

tikz-figures in minipage: Captions at the same height and top alignment

I want to place two tikz pictures next to each other, both of them should be figures I can reference to. Please consider the following MWE: \documentclass{scrartcl} \usepackage{tikz} \begin{document} ...
0
votes
0answers
54 views

Visualisation of the Cantor set [duplicate]

I want to draw the first few iterations of the construction of the Cantor set. Since I am a TikZ beginner, I need your help. Thanks in advance. More information about the Cantor set can be found ...
4
votes
1answer
135 views

mdframe size not matching table size

I'm having some problems with the mdframed package in combination with tabular. After figuring out how to get the width of the frame to match the width of the object (a table in my case) using a hack ...
4
votes
2answers
328 views

Control Structures in TikZ

I'm just now learning TikZ and I'm experimenting with some control structures. Could somebody possibly help me with my code below? \documentclass{article} \usepackage{tikz} \begin{document} ...
6
votes
2answers
344 views

Line shown behind filled rectangle made with TikZ

I need to create a TikZ style that is a filled rectangle with a line crossing it. The problem I'm facing now is that when the rectangle is filled with a color, then the line is drawn behind the ...
1
vote
1answer
3k views

arrows.meta in tikz

I have an up-to-date MikTeX 2.9 installation with tikz/pgf 3.0, but trying to compile \documentclass[tikz,border=0.125cm]{standalone} \usetikzlibrary{arrows.meta} \begin{document} ...
6
votes
1answer
266 views

Beginner in TikZ: Replicating an easy graph nicely

It's my first plot and I tried to google for half an hour but couldn't figure out how to fix my attempt to replicate this graph. Could someone help me? This is, what I have got: Errors so far: ...
3
votes
1answer
216 views

Adjusting pgfplots

I am having trouble controlling the axes in pgfplots. I have defined an evironment for graphs \newenvironment{graph}[3][]{\begin{figure}[htp] \def\tempa{#1} %Saves caption since \end cannot take ...
6
votes
1answer
86 views

Inclusion of TikZ package changes page dimensions

For some reason, inclusion of the TikZ package in a document seems to change the page size: the bottom of the page is slightly shorter if TikZ is included. A minimal example is ...
5
votes
3answers
701 views

Fill the area under minimum of two functions using tikz and pgfplots

I am loading two curves from a file and plot them with \addplot table [...] {the table.txt}; I have managed to fill the area under a single curve, but I want the minimum of the two curves filled. What ...
8
votes
1answer
726 views

Fill rectangle with custom image file

I found a piece of tikz code for drawing pyramids of rectangles taken from here. In my document I need to fill sloped rectangles with a specific image file. Here is the code: % Using signed distance ...
3
votes
2answers
272 views

How to insert lines between text on Tikz

I am new to Tikz I just started working with it today and I came across with some difficulties that I can not find solution to them. I am producing a block diagram based on the example from Example: ...
9
votes
2answers
558 views

An application of \foreach command in TikZ to generate labels

I would like ask you to help me solve the following application of \foreach of the TikZ package. By means of the following code: \documentclass{article} \usepackage{tikz} \begin{document} ...
3
votes
1answer
661 views

define manually the position of a pgfplots plot inside the TikZ picture

I just started using matlab2tikz for the graphics in my thesis and got stuck with a probably simple problem: I have a plot of a function and an inset (zoom-in) on it. Both the main plot and the inset ...
2
votes
1answer
585 views

PGFPlots and gnuplot: How to add asymptote, a xtick that isn't a number, and can intersection be used?

\documentclass[tikz, convert = false]{standalone} \usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx % Euler for math | Palatino for rm | Helvetica for ss | Courier for tt ...
1
vote
1answer
2k views

! Package tikz Error: missing semicolon [closed]

I have found this sample of code from here: Block diagram generation in LaTeX. Initially I had some problems while I was compiling the code and I solved them due to copy paste features some of the ...
3
votes
1answer
280 views

Automatically define domain of function

I use the following code to depict mathematical functions. This is my coordinate system: \newenvironment{graph}[2]{\begin{tikzpicture}[scale=0.6] \draw[->] (0,0) -- (10,0) node[right] {$#1$}; ...
-1
votes
1answer
891 views

How to draw a spiral in phase portrait?

I am aware of easily drawing a spiral in the note of nonlinear dynamics. Here are some examples:
7
votes
4answers
272 views

tikz has probably problems with czech babel when compiling .Rnw

Problem Tikz seems to have a problem with \usepackage[czech]{babel}. I had a moderately big .Rnw document written in czech with some plots via knitr chunks. When I set dev = 'tikz' the TeXmaker ...
6
votes
4answers
744 views

Using Tikz, is it possible to draw a cube within a sphere?

I would like to construct a diagram of a cube sitting inside a sphere. I can draw them both separately, but need some idea of how to construct the diagram such that the cube sits exactly within the ...
4
votes
0answers
116 views

Typo in TikZ manual? [closed]

First of all, I resort to asking this here because it seemed a less bad idea then emailing Till Tantau directly. Now, onto what I think is a typo. On the fourth paragraph of section 2.21 of the fine ...
2
votes
1answer
294 views

particular prominent yticklabels

Since the paraview legends look horrible when they appear inside a latex document, I want to replace them using Python's matplotlib and Nico's matplotlib2tikz package. So I have compiled a python ...
6
votes
0answers
122 views

Rebuilding TikZ's pgfmanual.pdf [duplicate]

The following steps to rebuild TikZ's pgfmanual.pdf fail on Windows 7 64 bit using MikTex and bash shell: 1) cp -iar /c/opt/miktex_2.9/doc/generic/pgf . 2) cd pgf/version-for-luatex/en 3) ...
18
votes
0answers
223 views

Problem with a path between pgf 2.1 and pgf 3.0 [closed]

\documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[domain=0:2] \path[fill=blue] (0,0) -- plot function{x+1} -- (2,0); \end{tikzpicture} ...
6
votes
1answer
3k views

How can I import and scale matplotlib plots, keeping fonts the correct size?

I'm working on several pieces of coursework involving lots of plots generated with matplotlib in python scripts. Currently I'm doing this with an iterative process where I set a plot size in the ...
1
vote
1answer
198 views

How can I resolve the side effects of AddEverypageHook to external pgfplots?

I have quite a huge document with many pgfplots, which I would like to externalize. Well I can externalize them, but my \AddEverypageHook command from the everypage package affects this externalized ...
7
votes
4answers
8k views

Pgfplots: how to fill bounded area under a curve using addplot and fill?

I am looking shade the bounded area under the graph of f(x)=x^2 from 0 to 1. For my other plots I was fine using the shading with coordinates because they were all polygons. I've come across a bunch ...
2
votes
4answers
779 views

Circuitikz: Electrical diagram

Below is what I have so far \documentclass[convert = false]{standalone} \usepackage[american]{circuitikz} \usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx % Euler for math | Palatino for rm ...
2
votes
1answer
134 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 ...