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

How to draw following complex integration? [duplicate]

I am new to tikz package and want to draw following complex integration contours. I would like to insert these two pictures in my report. I read the previous posts on similar drawings but can't figure ...
2
votes
4answers
81 views

Use of overlay command in a graph

I have a diagram of part of a circle centered at the origin, an angle marked "alpha," a radius, and two line segments having an endpoint on the x-axis. It should have the following two modifications. ...
2
votes
0answers
55 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 ...
3
votes
1answer
100 views

How do I test for a new page?

I need to know when I change pages. I thought I had a solution using everypage. It works using \newpage, but not using \vspace. \documentclass{article} \usepackage{everypage} ...
3
votes
1answer
37 views

How to remove small value labels from ybar chart?

I can't figure out a way to prevent small values showing in my labels. A problem that looked very similar to mine can be found in here. Due to my non-existent coding skills I couldn't figure out this ...
3
votes
3answers
104 views

how can I use intersection points to draw a proper arc for my simple instance

I would like to join points (s) and (t) via arc. Could u help me to implement it?! I've tried it by such way \draw (s) arc (t); It is wrong! To say simply I need the correct arc without spreading over ...
-1
votes
1answer
239 views

How can I draw these pictures in LaTeX (with TikZ)?

I want to draw these pictures with TikZ. But I can not. Please guide me in this regard.
12
votes
3answers
361 views

Tikz: How to create and reuse a picture

I am a beginner in Tikz and I have two questions: I'm trying to draw the picture below but have been unsuccessful (I drew the right part though but couldn't draw the left one) How can I reuse these ...
5
votes
1answer
55 views

protocol message diagram - rectangle - 02

I try to compile this code suggested at this previous answer protocol message diagram - rectangle \documentclass{article} \usepackage[margin=12mm]{geometry} \usepackage{hyperref} ...
4
votes
2answers
124 views

Labels in diagram too far from lines

I'm having trouble with the labels in my diagram. I want them closer to the lines, but I can't seem to find a way. Is there any way to put the labels closer to the lines? Here is the code: ...
4
votes
1answer
78 views

Labeling the lengths and angles in a diagram with measurements

I have a diagram that is to be used to define the sine, cosine, and tangent functions. How do I label the drawn radius "r"? How do I draw the angle for alpha? (I am trying to adapt the code that I ...
1
vote
0answers
50 views

Centering TikZ picture inside poster box

I would like to center a tikzpicture inside a posterbox (baposter) \headerbox{Vorgehensweise}{name=definitions,column=3,below=problem,span=3}{ \usetikzlibrary{shapes.geometric, ...
7
votes
3answers
105 views

Decorate with text along the perimeter of a circle using TikZ

Using the following code I am trying to visualize nested circles: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,fpu} \usetikzlibrary{decorations.text} \begin{document} ...
1
vote
1answer
131 views

How to create this diagram with boxes and arrow?

How to create this diagram with boxes and arrow ? Thanks a lot.
0
votes
0answers
45 views

how can improve this tree (forest package) to fit in classicthesis?

I just learnt about the forest package, and following another question in this site, I produced a forest tree (see mwe). The question is very simple: how can I improve this tree? Indeed, I feel that ...
0
votes
0answers
20 views

Font size difference between LatexIt and regular compilation

I am currently write my PhD thesis and have a lot of pictures to make and use the tikz and pgf packages. I am using LatexIt on Mac to first design my pics and then copy/paste them into my actual ...
4
votes
1answer
59 views

How can I increase the size of integral inside tikz and the length of the arrow

Code: \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usepackage{amsmath} \usetikzlibrary{arrows,chains,positioning,scopes} % \makeatletter \tikzset{join/.code=\tikzset{after node path={% ...
2
votes
1answer
34 views

Gap at origin when using axis lines*=left in conjunction with line width spec via axis line style

Please forgive the strange graph displayed here - I am simply trying to display a replicable chunk of code in the presence of all the packages I am attempting to use and want to avoid displaying data ...
2
votes
1answer
104 views

Cylindrical Bar Chart

I know this might be a long shot, but does anyone happen to know (or point me to where to start) how to draw this chart. Say we have 6 values (5, 10, 15, 20, 25, 30), one for each column. Thanks in ...
3
votes
2answers
88 views

How can I insert a picture into a TikZ diagram?

I want to insert a picture into a TikZ graphic, is it possible? An example:
3
votes
1answer
98 views

TikZ code no longer compiling

Consider the following code: \documentclass{article} \usepackage{expl3} \usepackage{tikz} \usetikzlibrary{ hobby, shapes.geometric, decorations, decorations.shapes, shapes.geometric, ...
2
votes
2answers
97 views

How can I draw this simple tree in tikz?

How could I draw something like this in tikz ? Thanks \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\midarrow}{\tikz \draw[-triangle 90] (0,0) -- +(.1,0);} ...
0
votes
2answers
69 views

Drawing a tree without nodes

How could I redraw this without nodes and just having dots between arrows? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{petri} ...
3
votes
0answers
67 views

Tikz how to extract spherical coordinates

I have X coordinate defined in Spherical coordinate system (the point is to be situated on the circle so it's easier): \def\Sx{0} \def\Sy{0} \def\Sz{2} ...
4
votes
1answer
97 views

Arrow labelling

How would I label the arrows in the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{petri} \tikzset{state/.style={circle,draw=gray,inner ...
5
votes
1answer
52 views

Package pgfkeys Error: The key '/tikz/opacity' requires a value

I'm drawing a diagram for a physical phenomenon, "motion in one dimension". I have this figure with a tikzpicture: \documentclass{article} \usepackage{tikz} \definecolor{particle}{rgb}{1.0,0.7,0.3} ...
6
votes
1answer
286 views

drawing water droplets with tikz

I have drawn a few arrows as follows: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing, arrows.meta, arrows} \begin{document} \begin{tikzpicture}[>=Stealth] ...
5
votes
0answers
92 views

Cross in particular plane in 3D

I'm creating tikz graphics in (x,y,z) Cartesian coordinate system. I'm defining objects (circle in my WE) in some plane using \tikzset{xyplane/.style={canvas is yx plane at z=#1}}. I noticed it ...
5
votes
1answer
151 views

Drawing a half arrow with tikz

Is there a command to draw upper half of an arrow in tikz? Something similar to:
8
votes
1answer
76 views

drawing path in foreach loop with pgfsetmacro

I have N points on a circle, I want to draw the intersection of the convex hulls of all sets of N-k consecutive points. The points are not evenly spaced. The values of N and k (and the actual angles ...
3
votes
0answers
57 views

Example from tutorial does not work: problem with edge style in graph

I tried an example from the TikZ tutorial: \documentclass{article} \usepackage{tikz} %\usepackage{pgfsys} \usetikzlibrary{positioning} \usetikzlibrary{graphs} %\usetikzlibrary{arrows} ...
5
votes
1answer
84 views

TikZ: How to extract part of a path for later usage

I want to know if there is a way to extract some part of a named path and use this part later on for e.g. stroking. In my example, I want to stroke the line in the middle (the path named mitte) from ...
9
votes
1answer
708 views

Beautiful text - typography

Can anyone show me how to draw something like this. I am thinking of having a quote with similar font but have no idea where to start.
6
votes
2answers
102 views

Adding vertical hierarchy lines to a category column of a table

I often need to represent hierarchies within tables but I've yet to find an elegant way to do this. Oftentimes I do a variation on the following theme, with nested whitespace in the category column: ...
6
votes
1answer
111 views

Drawing Hex Boards with specific boundary

I would like to draw hexagons with specific layout and boundary like: Ideally, the shape of the board of hexagons could be change easily, and the boundaries could be drawn automatically. I did ...
6
votes
2answers
126 views

Interpolation and curve fitting - Tikzpicture? Gnuplot? Pgfplot?

well, I am fairly new to LaTeX, but I tried my hardest do find a solution for my problem but I couldn't find a proper answer, so I hope someone here has the answer or another suggestion for me. I ...
1
vote
0answers
85 views

Organizational Chart / Family Tree using tikz drawing library

Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose. Here are two previous questions that do this without the use ...
3
votes
1answer
44 views

Why do I get an extra white page before my TikZ picture?

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it. Only problem is, when I put it between \begin{landscape} ...
2
votes
2answers
76 views

Aligning ticklabels in secondary y-axis in pgfplot

I want to right align the ticklabels in secondary y-axiz in pgfplot. Here is my output and MWE. Thanks in advance for your help. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat ...
3
votes
2answers
55 views

TikZ/ERD: node (=Entity) label on the inside

I'm trying to draw an ERD diagram. I recycled code from a couple of posts around here and added my own spice, finally ending up with: \documentclass[border=0.5in]{article} \usepackage{tikz} ...
3
votes
0answers
97 views

pgfplots error using matlab2tikz

I am trying to plot a matlab figure in latex file. so i use this matlab2tikz function. It works really well, until I try to add some customised text on the figure before converting it to tikz file, ...
3
votes
1answer
56 views

Image in upper left moved down toward center

I'm trying to insert an image at the upper left corner, and then move it down toward the center of the page. Similar questions lead me to try the following: \documentclass{article} ...
5
votes
2answers
139 views

Labeling a point at which a perpendicular is dropped

I saw the following code for drawing a triangle separated into two right triangles used in a demonstration of the Pythagorean Theorem. What does the code \tkzDefPointWith[orthogonal normed,K=7](C,A) ...
4
votes
1answer
73 views

arrow length in flowchart with tikz

I ma using tikz to draw a flowchart.Some of the arrows connecting the decision diamonds to the blocks are shorter than other arrows and I do not know how to make all of the arrows with same length. ...
3
votes
0answers
51 views

TikZ - Callout position relative to the text

Given this minimum compilable example: % !TEX program = lualatex % arara: lualatex: {synctex: yes} % arara: lualatex: {synctex: yes} \documentclass[a4paper,11pt,openany]{memoir} ...
2
votes
1answer
58 views

Modify Figure environment

is it possible to modify the Figure environment in order to distinguish it better from the text in a one column document? I mean, I was thinking in doing --------- Figure # ---------- [The ...
3
votes
0answers
51 views

how to connect nodes with a figure created in tikz?

I have created a sort of 'implies' sign (as well as a 'not implies' sign). How can I make them both connect two nodes? \begin{document} \begin{tikzpicture}[rotate=45, transform shape] \draw ...
4
votes
1answer
63 views

how to make “strike out” rotate with the rest of the figure?

I have a figure which I generated using the code below. Basically, when I use [rotate=45] option, I would like to ensure that the strike out symbol is rotated as well. Also, related to this figure, ...
0
votes
0answers
81 views

Magnified subfigures with scalebar

According to the post How to create magnified subfigures and corresponding boxes for portions of a large image and using subfloatrow I've put three images next to each other with the 1-1 zoombox under ...
6
votes
1answer
116 views

different proportions for tikz between ktikz and latex

I am developing a figure in (k)tikz. Here's the code: \begin{tikzpicture}[every node/.style={draw,rounded corners, minimum height=18, right}] \node[text width=3.5cm] at (-3,-3) { $\quad\, d(start_1 ...