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
0answers
4 views

tikz problem using \draw … to[out in] and mirroring/rotating

I have a graph in tikz, using \draw ... to[out=...,in=...] for arcs. It seems that mirroring and rotating does not work properly regarding the anchors of the to-node. Is this to be expected, or is it ...
1
vote
0answers
12 views

Cannot get animation to work

I am trying to create a pdf with animated content using the animate package. My test.tex file is: \documentclass{article} \usepackage{animate} \begin{document} \begin{center} \animategraphics[...
17
votes
1answer
346 views
+150

Customizing \fill and line in TikZ

How I can draw these (flexible) nodes and arrow? (as in this presentation) A MWE: \documentclass{beamer} \usepackage{tikz} \usetheme{CambridgeUS} \usetikzlibrary{calc} \usepackage[T1]{fontenc} \...
1
vote
1answer
21 views

subfloat and pgfplot with trim

I am using subfloat and pgfplot to place two plots side by side. I want the subfloat caption to centre aligned with the axis so I use trim axis. But then my plots label goes out of the margin. \begin{...
1
vote
1answer
59 views

How to plot boolean (digital) variables using pgfplots?

I work with electrical power systems and always I need to plot voltage and current signals. Sometimes I need to plot boolean signals. I'm using pgfplots and groupplots specifically to do this work as ...
1
vote
2answers
53 views

Wrapping text around Tikz picture

I have problem with wrapping text around my tikz picture. The text pushes the picture down on the left side. The right side of the picture is just white blank space. Here is the code I am using: \...
0
votes
1answer
41 views

How to align the content of the legend to the left instead of default centre?

I have a question regarding the alignment of the content of the legend. The default option is centering, but I want to have it aligned to the left. How can I change this? \begin{figure}[H] \begin{...
10
votes
1answer
744 views

Problem: tikz, pgfplots and external coordinates using overlay

I need to draw arrows from text to a pgfplots graph using TikZ. For some reason, the arrow coordinates are not where I want them to be in the pgfplots graph. Here is an example: \documentclass[12pt]{...
3
votes
1answer
45 views

colors text in latex

How can I make in this fashion with same color of blue and white? Thank you!
2
votes
2answers
29 views

How to make properly macro with the use of pic?

I'd like do make a picture that consists of few blocks. One of these blocks I called \elementsymbol (in MWE below) - it consists of an arrow surrounded by a circle. I have the problem with scaling ...
1
vote
2answers
90 views

pgfplot/tikz stacked bar chart

I have the following table with data And I am trying to replicate it in a stacked bar chart. Could anybody help to build this kind of chart? The table is easy to replicate it in latex, but I am ...
7
votes
3answers
141 views

How to have a node's width match another's height?

I have the following situation: Here, I would like the rotated node to automatically match the height of the text node to its left, automatically growing or shrinking depending on the amount of ...
5
votes
3answers
104 views

TikZ: Place different elements of a same path on various layers

I have different elements (say, a node and a filled circle) defined using a single path: \path (0,0) node [blue] {some text} [fill, red] circle [radius = 1]; Issue: I would like to put one ...
1
vote
1answer
15 views

How to modify the pgfplots arrows?

The code \documentclass[10pt,reqno]{amsart} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[arrow1/.style={->,color=black,solid}] \begin{axis} \addplot [arrow1] ...
1
vote
1answer
70 views

How one can improve these codes more expressive? Tracing the line in tikz

How to make these codes more expressive?? \begin{tikzpicture}[scale=.8, font=\footnotesize] \begin{axis}[domain=-1:15, xmin=-1, xmax=13, ymin=-1, ymax=14, axis y line=center, axis x line=middle] ...
2
votes
2answers
42 views

Move image proper distance

I'm trying to move the image in this document precisely 1 inch in from the top and 2 inches in from the left. However, the image has not moved the proper distance. How can I correct that? \...
1
vote
1answer
37 views

how do I draw a self loop and also label graph edges in Tikz?

I have the following tikz code: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{shapes,snakes} \begin{document} \begin{tikzpicture} \draw (10,10) node(C)[ellipse,draw] {C}; ...
2
votes
1answer
37 views

Problem putting tikzpicture as background for all pages with background package

UPDATE: I'm using XeLaTeX, as I use polyglossia and fontspec packages. @PeterGrill pointed out that with pdflatex the picture is perfectly placed. I'm trying to put a TikZ picture as background for ...
2
votes
2answers
26 views

Calculate coordinates using components of other coordinates [duplicate]

I am trying to calculate a new coordinate in relation to two other cordinates. How can I use the x component of one coordinate and the y component of the other? Thanks in advance. Minimal example: \...
3
votes
2answers
184 views

Custom PSTricks directory tree to TikZ

I have a PSTricks implementation of a custom directory tree which I find quite appealing. I basically want to convert the whole thing to TikZ. I managed to get the very basic idea running in TikZ: I ...
5
votes
1answer
76 views

Draw permutahedron of order 3 with tikz but without sagetex

How do I draw a Permutahedron of order 3 in tikz in 3 dimensions? I'd like to get a readable code which draws a planar projection of a 3D object rather than unreadable (hence unmaintainbale) ...
1
vote
0answers
35 views

Costum references (from TU Delft dissertation template) to work with parts

I am currently working on modifying the TU Delft (TUD) dissertation template (found here) to meet my needs. Instead of just chapters I will have parts as well. The referencing of the TUD template ...
5
votes
3answers
72 views

Shading between a circle and two lines

I have drawn the unit circle and some tangent lines to the circle. I now wish to shade the area between the two lines bounded by the circle. Here is the tex that I have already written. \...
1
vote
0answers
29 views

Tikz picture: Volume between two surfaces

I would like to draw such a picture in Tikz, especially to emphasize the volume between these two paraboloids. Since Tikz looks quite complicated to me I ask you for some help (not to present me the ...
47
votes
6answers
3k views

How do we Draw a Bird in LaTeX

Yes, it's that time of the month again. It's time for somebody to ask how we can draw X in LaTeX. This time I'm asking the question and X is a bird. The reason why I'm interested in this question is ...
4
votes
1answer
65 views

How to shade the intersection portion? using tikz?

How to shade the intersection portion? \documentclass[border=2pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[xmax=9,ymax=9, samples=50] \addplot[blue, ...
1
vote
0answers
35 views

Legend next to each slice - pie graph

I already made a similar question but didn't explain my self well - Align 3 graph pies I want to have something like this: And here is the code how I constructed each pie: \def\stackalignment{r} ...
1
vote
1answer
44 views

Enhancing Booktab Tables containing Tikz picture

I have created a table containing text, equations and a tikz picture [created using Geogebra and scaled using \resizebox]. As a beginner, I found it difficult to center my content and to remove the ...
7
votes
1answer
56 views

Trees in context

Excuse me for my english, is not my language. I have a document in LaTeX, the relevant code is \documentclass[a4 paper, 12pt]{article} \usepackage{tikz-qtree} \usepackage{tikz} \usepackage{pgf} \...
1
vote
2answers
23 views

tikz-cd message pgf Error: No shape named tikz@f@2-2-4 is known

The diagram $\begin{tikzcd} & U_0 \ar[dl, "\operatorname{f}_0"] & \ar[dr, "\operatorname{f}'_0"] \\ U_1 \ar[d, "\operatorname{f}_1"] & & V_1 \...
5
votes
3answers
65 views

How to retrieve current stroke and fill color in PGF/TikZ

I am defining a shape which can be drawn in normal or inverted mode. In normal mode, the border lines and inner lines are drawn with the current stoke color, while the shape is filled with the current ...
2
votes
2answers
35 views

Multiple outputs in node

I am trying to draw multiple outputs system with TiKz but I'm having several problems to get it right.I have searched for examples, but I could not find anything that looks like to what I want to draw....
1
vote
1answer
40 views

usage of control points twice

I just started learning Tikz from the The TikZ and PGF Packages Manual for version 3.0.1a, and in the curved path construction subtopic I encountered the following piece of code \begin{tikzpicture} \...
11
votes
2answers
2k views

TIKZ drawing vector field from external file

I would like to draw a vector field from a data file. I tried to adapt code from Manual for Package pgfplots but this doesn't work \documentclass{standalone} \usepackage{pgfplots} \pgfplotstableread{...
2
votes
2answers
27 views

Using \hphantom within TikZ nodes

I'm trying to align the following piece of text: *Corresponding author Name Nameson name@mydomain.com such that the two lower lines are horizontally aligned with the C, rather than the * in the ...
4
votes
2answers
147 views

How to draw Block diagram like this in LaTeX?

I like to draw the following diagram: So far i succeed to draw the the following: \begin{tikzpicture}[ block/.style={draw, minimum width=10mm, minimum height=6mm}, sum/.style={circle, draw, ...
2
votes
0answers
21 views

matlab2tikz Invalid Code (13x) [on hold]

I have a question or rather a significant problem with matlab2tikz. When I insert the resulting tikz file into my document and try to compile a get a large number of ! Invalid code (13x), should be ...
2
votes
1answer
228 views

TeX capacity exceeded using pgfplots with/without externalization

The following MWE compiles (for me) \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{external} \tikzexternalize[prefix=figures/externalized/] \begin{...
5
votes
2answers
137 views

Problems with flow chart - decision tree

I am creating a decision tree with flow chart in the using the tikz-package. A MWE is as follow: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} ...
1
vote
2answers
70 views

Horizontal bar chart with different colors for each bar

I want to create a horizontal bar chart with different labels on the y-axis for each bar. Also, the value should be displayed on the right-hand side of each bar. Fx: "Test A" ... red bar ... 400 "...
0
votes
0answers
36 views

Exponential numbers on a graph

I'm writing a document and I want know how can I set the X axis numbers using a scientific notation. I have this table: \begin{tikzpicture}[scale = 1] \begin{axis}[ xmode=log, log ticks with ...
0
votes
0answers
21 views

Trying to make a scatter plot for the first time; pgfplots [on hold]

I am trying to make two scatter plots for my physics lab report. I keep getting errors and I keep referring to the pgfplots manual but to no avail. \documentclass[12pt]{article} \usepackage[margin=...
1
vote
1answer
76 views

Question about including tikzpicture in a research paper

I am using \documentclass[conference]{IEEEtran} for writing a paper. I will be using tikz environment for drawing figures. Some figures will occupy only a single column, but I have a couple of figures ...
8
votes
2answers
3k views

How to overbrace / underbrace in text mode (using TikZ?)

I want to create something that somewhat looks like this: I know about \overbrace but that only applies to math mode. I couldn't find an \overbrace for text. And while I probably could use math ...
1
vote
2answers
47 views

how to finish this latex drawing with an angle between two arcs and two pictures and arrows?

I have the following tikz picture that I managed to draw: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \foreach \x in {30,45} { ...
1
vote
4answers
172 views

How to draw a circle in TikZ?

I want to draw a disc using TikZ whose two halves are of different color.
2
votes
1answer
35 views

Alignment of pictures in TikZ

I'm having some trouble with drawing a couple of pictures in TikZ. It puts a different alignment on two adjacent pictures, as follows: Also, how can I get the "and" to be centered vertically? My ...
0
votes
1answer
58 views

Annotate row and column highlighted in one table with different color by Tikzmark in Beamer

I found example for row only here: Annotate the table row highlighted by Tikzmark in Beamer Also found example for column only here: Annotate the table column highlighted by Tikzmark in Beamer but ...
0
votes
0answers
13 views

Tikz error using media9

This is my first attempt to include a video in a PDF file, so basicaly, most of the things I did were just copy-paste from other examples to see how the thing worked. To sum it up, my file looks like ...
1
vote
1answer
36 views

Two tikz figures (with colored areas) next to each other

I would like place to figures/graphs next to each other. So far, I've managed to create the first figure and parts of the second figure. I don't know how to place them next to each other and how to ...