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
1answer
20 views

tikz xbar extra coordinate

I am trying to plot a comparison of numbers with \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xbar, y axis line ...
1
vote
0answers
24 views

Tikz, no shape named is known error

I am trying to compile following MWE \documentclass[border=9 pt]{standalone} \usepackage{epsfig,graphicx,tikz} \usepackage{standalone} \usetikzlibrary{intersections} \usepackage{pgfplots} \usepackage{...
2
votes
1answer
17 views

Tree in Tikz with unwanted crossing nodes

I am trying to make a simple tree using Tikz, but I have some problems with the right position (level) of the right side of the tree. How can this be fixed? \documentclass{standalone} \usepackage{...
2
votes
1answer
38 views

Creating a flowchart for a proof

I am doing a seminar talk soon, which will consist only of proving one complicated theorem. The proof involves several steps and it's hard to keep track of what's going on. For this reason I want to ...
1
vote
2answers
83 views

How to plot a function with labels and a hatched area?

I have now spend quite the whole afternoon to draw a function as you can see it on this picture here: I thought it would not be to difficult. But I was wrong. I already asked google for help and ...
3
votes
3answers
126 views

Tikz and variables

I have defined two variables \def\aa{3} \def\bb{1} \def\qq{\multiply\aa by \bb} but when I try to use \qq in a \matrix command like \matrix[matrix of math nodes]{12 & \qq\\}; ktikz says: ...
3
votes
1answer
78 views

Draw an arc using radius and angles up to specific point

I have following code in TiKZ: \documentclass[border=.5cm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,calc,decorations.text} \begin{document} \begin{tikzpicture} \draw (0, 0) ...
1
vote
1answer
517 views

Including a tikz figure with a reference to a table on file, problems with folder structure

I am trying to include a tikz figure in the chapter 6 of my thesis. I am using separate folders and .tex files for each chapter, as you may notice in the example. This means that in my main document I ...
2
votes
1answer
45 views

Problem installing Tikz Feynman

I have to draw a couple of Feynman diagrams for my paper. I am using Overleaf. After placing \usepackege{tikz-feynman} in the preamble, it sais tikz-Feynman not found. My question is, how can I ...
3
votes
1answer
44 views

TikZ - Circled text number in superscript - Missing $

I'm using TikZ to create some circles with numbers as some sort of marker. But I want to use them as superscript. So to generate a circle I'm using this command (suggested here: Good way to make \...
4
votes
0answers
40 views

Include semicolon in preamble definition for tikz macro?

Say I define a macro \arr in the preamble for use in a tikzpicture. Is it best practice to: Exclude the semicolon from the definition and include it in the tikzpicture, \documentclass{article} \...
1
vote
0answers
18 views

Tikz datavisualization: errorbar plot working with logarithmic axis

I'm trying to plot some data with errorbars using tikz. So far i'm successful plotting a examples with linear axis using a different visualizer. Used chapter 78.4 "Creating New Visualizers" as ...
10
votes
1answer
8k views

Boxplot in LaTeX

I am new to LaTeX. How can I draw a boxplot in LaTeX. My data set is as below index median box_top box_bottom whisker_top whisker_bottom 0 1 1.2 0.4 1.5 0.2 1 2 2.3 1.5 2.7 1 2 0.7 1.4 0.5 1.9 0.1 ...
1
vote
0answers
37 views

Symbols at node in latex and their explanation

Let’s say, I draw a diagram like this % \usetikzlibrary{arrows} \begin{tikzpicture}[thick, scale = 0.8, line cap = round, line join = round,>=triangle 45, x = 1.0cm, y = 1.0cm] \coordinate (O) at (...
3
votes
1answer
75 views

Drawing arrows for elements of a vector

I want to draw straight down arrows from different elements of a vector. I modified the code for Arrows pointing to equation. Can someone let me know why the rightmost arrow is not placed at the ...
1
vote
0answers
50 views

Hyperarcs with Tikz

I would like to draw hyperarcs with tikz, with one head node and several tails. Something like this: However I did not find how to do this, and I am not sure how I could write such a command in ...
2
votes
3answers
111 views

Creating Concept map akin to markdown

After watching some videos on concept maps such as concept mapping for time management and long term memory, I decided that this might be a useful way to learn. When looking for apps (e.g. CmapTools) ...
0
votes
0answers
15 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{...
5
votes
2answers
3k views

Problem with pgfplots/pgfkeys: “I do not know the key '/tikz/use units'”

Problem in short: I'm using pgfplots but I can't use units in the labels. I tried this minimal example (from http://pgfplots.sourceforge.net/gallery.html) and get an error message: \documentclass{...
3
votes
1answer
42 views

How to adjust 'fill' option in this problem

I have a question related to How to make beamer overlays with Tikz node. What Do I need to do so that the rectangles get filled with a color when they get highlighted. I am looking for a piece of ...
2
votes
0answers
41 views

Aligning elements in height

I have created a tikz file representing a legend (for different plots). my file looks as follows: % This file was created by matlab2tikz. % \definecolor{mycolor1}{rgb}{0.00000,0.70000,0.70000}% \...
44
votes
2answers
15k views

How to make beamer overlays with Tikz node

I have a diagram of 4 nodes in my beamer slide. \begin{figure}[h] \begin{centering} \begin{tikzpicture}[system/.style={draw,rectangle,rounded corners=3,minimum width=2cm,text width=1.8cm,text ...
0
votes
0answers
39 views

How to add animation to this tikzpicture? [duplicate]

I want to add animation to following graphic created in tikz environment. The desired sequence is 1 2 3 1 2 3 2...... Block $\mathcal{C}_1^{-1}$ turns green AND digit:1 appears in green below the ...
3
votes
0answers
36 views

Need help in understanding answer to “how-to-make-beamer-overlays-with-tikz-node”?

Can someone explain this code. How to make beamer overlays with Tikz node. In particular I need to know Why do we get three copies of a given slide. If I need to make more than two copies, what ...
10
votes
9answers
5k views

Drawing minimal xy axis

can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum. The axis should be black but the grid behind it a shade o gray, dashed. It would be ...
3
votes
2answers
65 views

How to add a simple text through an arrow break between nodes in tikzicture?

I guess I need to define a different node style for this arrow break. \documentclass[border=3cm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \begin{document} \...
2
votes
2answers
51 views

Drawing simple xy axis [duplicate]

Can anybody help me to produce this? I couldn't find anything similar on the forum. No need for a grid. Thank you, Mironas
3
votes
3answers
578 views

Plotting functions and denoting equation on the figure

How can I plot the functions P=20-1/5*Q and P=5+1/9*Q so as to find the equilibrium point? The figure I need is like the following: Furthermore, how could I put the equation on each ...
3
votes
1answer
77 views

Drawing a funnel with Tikz

Does anyone have a method for drawing a funnel in Tikz? I am attempting to replicate the funnel drawn for this past year's AP Calculus BC free-response questions. I have attached the image that I ...
1
vote
0answers
27 views

Image disappearing when scaling

I was trying to do an includegraphics within a tikzpicture, so I have something like \begin{tikzpicture}[scale=.7] ... \node (server) at (30, 0) {\includegraphics[scale=0.5]{img/server}}; \node (key) ...
1
vote
0answers
34 views

How to do 3d barcharts in latex using tikz?

I wanted to do a barchart for annual report. I have made it in excel There are so many problems of using this in latex as it is since I dont want any backgroud for this. In the sense that it has to ...
1
vote
1answer
34 views

Changing commas and dot on bar graph

Here's what I have right now: Is there a way to change commas for dots and vice versa? This table was made using the answer from this question, so it's basically the same thing. This isnt't an ...
3
votes
1answer
84 views

Compiling “Thinking Forth” LaTeX source

I have a good book "Thinking Forth" which has LaTeX code availale. (http://thinking-forth.sourceforge.net) The source code uses PSTricks, so I'm trying to remove the PSTricks dependent code. The ...
2
votes
1answer
44 views

Is it possible to have more than one label for a tikz node and use arrows for connecting nodes to labels?

\documentclass[border=100pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle, shading=ball, drop shadow, ball color=red!10!black, minimum width=4cm, color=white, ...
2
votes
0answers
82 views
+50

Pgfplots and large exponents in expression and domain

After I discovered the fpu library for increased precision, I tried to make a plot involving large exponents. I choosed as an example a plot of the gravitational force of the moon on a test mass in SI-...
4
votes
1answer
53 views

Quiver plot in polar coordinates

I need to plot an analytically given vector field in polar coordinates. I would like to get something like the picture in this answer by Christian Feuersänger, but in circular axes. I tried to use the ...
1
vote
1answer
37 views

Tikz plot set legend entries manually

I have a plot in which I have only one actual plot line and two things I draw into the plot area. A horizontal line and a circle which I want both to appear in the legend. I tried using the \...
5
votes
1answer
54 views

tikz - diagram problem

first of all I would like to thank you for this helpful forum. This is my first post here so if I can improve something, just tell it to me for the future :) I have some troubles with tikz and hope ...
3
votes
1answer
140 views

Positioning things with respect to axis of a pgfplot in tikz

I have a figure on an axis and want to add descriptive text and signs to it with tikz. However, I need to do the alignment of the text with respect to the axis by visually observing if it matches. Is ...
2
votes
1answer
32 views

Alignment of a TikZ environment with a minipage environment

I have a TikZ environment with a minipage environment, and I would like them aligned at the top. I use the option baseline=(current bounding box.north) with the TikZ environment, and the the option [t]...
7
votes
0answers
52 views

No vertical spacing between TikZ Pictures

I would like to have absolutely no vertical space between the two TikZ Pictures. I could use for example \\[-1pt] but I don't know if 1pt is really the exact value... (so I removed it from the code)! ...
0
votes
0answers
34 views

How to create multiple lines with tikz

This is my first time working with tikz. I wanted to draw the scheme in the figure. What I have from my code are the red parts and the green one as well. How should I proceed if I wanted to turn the ...
0
votes
0answers
21 views

Problems with -shell-escape with externalizing pgfplots

I tried it now in all possible ways but I still do not understand why this option sometimes works and sometimes does not and what I can do about it. I wish to draw a figure with pgfplots but since it ...
86
votes
3answers
24k views

Putting a timeline for dates in moderncv

This question led to a new package: moderntimeline I just had the idea of using a timeline to specify dates in my CV. I've made a mockup in Inkscape: The idea, as you see it, is to display the ...
1
vote
2answers
83 views

tcolorbox and tikz: two pictures in two columns

Basically I want two tikzpictures of the same size aligned in two columns. To realise this I use the tcolorbox package with its \tcbsidebyside{}-command. The problem is that the picture in the second ...
4
votes
1answer
74 views

Tikz - Drawing a partial circle between two lines

So I am trying to draw a triangle excircles but I do not need the extra circle beyond the circle's center point. How do I draw the circles partially? Is there any way to cut off the segments? Here ...
3
votes
2answers
75 views

How to adjust arrows in this tikzpicture?

I want to draw following block diagram in tikz environment. Here is my code: \documentclass{beamer} \usetheme{default} \usecolortheme{default} \usepackage[english]{babel} \usepackage[style=verbose,...
2
votes
2answers
67 views

Allow page breaks in a dashed box

I use tikzpicture for my dashed box, but the box breaks to a newpage when the inside text is too long: Here is my .tex: \documentclass{article} \usepackage{lipsum} \usepackage{tikz} ...
1
vote
1answer
51 views

Enlarge the arrows on the edges

I have written the following code for a directed graph, but the size of arrow is too small. My question is how can I enlarge the size of the arrows \documentclass{standalone} \usepackage{tikz} \...
4
votes
1answer
51 views

How to draw vertical arrows toward a line between two coordinates?

In this shape I need to draw the two vertical arrows from nodes toward the line as shown in red. \documentclass[border=1cm]{standalone} \usepackage{tikz} \usepackage{amsfonts, amsmath, amsthm, ...