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
26 views

How to vertically center the cells of one column in a TikZ matrix?

Is it possible to vertically center the cells of one column in a TikZ matrix? Adding nodes = {anchor = center} vertically centers all of the cells, but I would like to retain the bottom alignment of ...
2
votes
1answer
24 views

Improve flow chart template with rectangle split

I'm try to build a flow chart template: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amssymb,graphicx} \usepackage[left=2.00cm, right=2.00cm, ...
0
votes
1answer
100 views

how can I draw a functional graph in tikz?

Let X is a finite set and $f:X \rightarrow X$ is a function. how can i draw the graph with vertex V=X and edges (x,f(x)) with x in V?
1
vote
1answer
73 views

TikZ: Draw angle with label between lines

How do I draw an angle with a label between two lines when the lines are not necessarily drawn in the same \draw call? I need to draw an angle with a label, theta, between the y-axis and the pendulum ...
2
votes
2answers
48 views

Add axis label to bar chart using tikz

I'm creating a bar chart using the following code: \documentclass[tikz]{standalone} \usepackage[english]{babel} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} ...
6
votes
1answer
128 views

Recursion of unknown origin: TeX capacity exceeded, sorry [input stack size=10000]

For some reason, there's a recursive definition in this MWE. Who can find where it goes wrong? \documentclass{article} \usepackage{xcolor} \usepackage{titlesec} \usepackage{tcolorbox} ...
7
votes
2answers
133 views

TikZ/TeX: Minimum line width/maximum resolution

I would like to employ TikZ for some constructive work, namely, programming a FabLab laser cutter. This nifty device gets a 2d drawing (as PDF) and cuts along all hairlines in the PDF. A harline is ...
1
vote
0answers
46 views

help with subplot tikzpicture please

I want to plot these two stacked bar plots as a subplot in one figure next to each other here is the code and my current output \begin{figure}[htbp] \centering \subfigure[Weight ...
4
votes
1answer
32 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
5
votes
2answers
82 views

Option in usetikzlibrary

Is it possible to have an option to an \usetikzlibrary command? I would like to define different styles when an option is activate. For example: \usetikzlibrary[blue]{something} ...
3
votes
2answers
90 views

How to save the current color in PGF/TikZ?

In TikZ/PGF, we can obtain the current line width using \pgflinewidth. Unfortunatelly there is no (as far as I know) \pgfstrokecolor, \pgffillcolor, \pgfstrokeopacity and \pgffillopacity. My main ...
3
votes
2answers
63 views

Tikz \draw as part of style (Drawing something inside each node of certain type)

I'm currently learning how to use Tikz and was looking into drawing automata (specifically Simulink-like state models). Currently, I'm making a style that should reduce my efforts to a minimum when ...
3
votes
0answers
67 views

Draw geodesic acceleration

Hi I want to draw some geodesics accelerating towards one another using TikZ. I've stolen some code from an online example to set up two planes one on top of the other (top one invisible - I'm just ...
4
votes
1answer
48 views

Smooth out drop shadow at the edge of the graph in pgf-blur

I'd like to smooth out a drop shadow about some specific places below my graph. I can't figure out how to do it, there's no key in the pgf-blur library that allows me to customize the the shadow ...
0
votes
0answers
37 views

Including tikz causes error

I want to include a diagram drawn in Dia using tikz, however when I include the tikz package i get the following error ! Package pgfsys Error: Driver file ``pgfsys-dvipdf.def'' not found... I'm using ...
0
votes
2answers
82 views

How to make an HTA looking thing?

I am try achieve something along the lines of this: I cannot however figure out how to make these arrows. I have some code that gives me something that is almost right but it is messed up in some ...
3
votes
3answers
165 views

How to reproduce these images with Tikz/ pgfplots?

I'm completely new to latex and Tikz, and I'm trying to reproduce these two images: Here's all I've got so far: \documentclass{article} \usepackage{amsmath} \usepackage{pgfplots} ...
2
votes
2answers
72 views

TikZ ER Diagram - stopping relations from drawing across cells

I've adapted code from this post The problem that I'm having is that the relations (lines) between tables are crossing over tables rather than going around them. The MWE is quite long but here it ...
1
vote
1answer
59 views

How to position a TikZ picture?

I have a problem with positioning a TikZ picture. I want to position a half circle, but I don't know how I should do it. \begin{tikzpicture} \draw [domain=0:180] plot ({cos(\x)}, {sin(\x)}); ...
3
votes
1answer
48 views

Tikz: Curved parallel arrow around a circle [duplicate]

I have a simple following code: \begin{tikzpicture} \draw[thick] (2,0) circle (1.5cm); \end{tikzpicture}` I would like to create a curved parallel naming arrow around this circle as shown in the ...
3
votes
1answer
49 views

Label distance and other issues in a TikZ diagramm

The following figure computed with tikz includes three imperfectnesses: The math operators plus "+" and minus "-" are defined as labels of the corresponding sum nodes. The signs are drawn too far ...
0
votes
0answers
33 views

Are tickz and pstricks in conflict? [duplicate]

I do not know why, but it seem that the tikz and pstriks packages are in conflict. Using both \usepackage{tikz} \uspepackage[usenames,dvipsnames]{pstricks} When compiling, it returns me the ...
5
votes
1answer
51 views

Add text on arrow in flowchart

Followup-question of Drawing arrows from different edges of node/decision box The problem I have seems pretty simple, but I wasn't able to find a solution in the archives or elsewhere. The output ...
1
vote
1answer
50 views

How to center the subfigure

I use the subfigure to put two figures together, however they are not centered. Below is my code: \documentclass[10pt]{IEEEtran} \usepackage{tikz} \usetikzlibrary{ shapes.geometric, ...
2
votes
1answer
84 views

Tikz library math

Following the answer of this question I tried to run the code proposed by Mark in the third "code window". What I obtain is: I can't find file `tikzlibrarymath.code.tex' Runninig the terminal ...
1
vote
1answer
60 views

2 histograms with common x-axis are not aligned

I have to following latex code: \usepackage{tikz} \usepackage{pgfopts} \usepackage{pgfplotstable} \begin{document} \begin{tikzpicture}[scale=1] \begin{axis}[minor tick num=1, scale only ...
2
votes
1answer
41 views

Drawing arrows from different edges of node/decision box

I'm new to tikz and don't understand how to draw lines originating from all edges of a decision box to other nodes. In the diagram below , how can I specify the originating point of an arrow? For e.g ...
3
votes
1answer
65 views

TikZ: ordinary arrow tip on double line

I like the ordinary arrow tip that you get in TikZ from \draw [->] (a) to (b);. In my document I have lots of ordinary lines like this, and also lots of doubled lines like \draw [double,->] (c) ...
5
votes
3answers
122 views

Define stretchable shading

I would like to define horizontal shading, that could be stretched depending on needs. What I did to far is this \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
0
votes
0answers
76 views
+50

custom table of contents using tikz and tocloft

I have using tocloft and tikz for creating custom table of contents. Please find the my MWE below: \documentclass{book} \usepackage{tocloft,refcount} \usepackage[colorlinks,linkcolor=black]{hyperref} ...
3
votes
1answer
104 views

Arithmetic in tikz coordinates (parentheses)

I want to use parentheses in coordinate calculation in tikz. There should be a simple way, but I couldn't find it. For example, \def\x{10}; \draw (0,0) -- (1+1/\x,0); this works fine. But, ...
-1
votes
0answers
102 views

How to create this type of logo in latex? [on hold]

Dear friends, How to create this type of logo in latex kindly help me. (Inside hexagons put images or letters)
2
votes
3answers
142 views

Random non erratic domain in tikz

Is there a way to draw something like this In tikz, without being overly erratic like Drawing random paths in TikZ ?
1
vote
1answer
61 views

Parametric tikzset style with argument

I am working on a way to curtomize @percusse from Simulating hand-drawn lines to make it parametric. My idea is to have something like: \draw[penciline={jag ratio=2},decorate,thick] ...
1
vote
1answer
41 views

Clipping only the bottom of a graph in pgfplots/tikz?

Is it possible to clip only the bottom of a graph? I have a graph with a node above the area of it; when clipping over the entire thing is enabled, the node is cut away. However, no clipping means the ...
1
vote
2answers
73 views

Replacing tree-dvips, connect nodes in a tabular environment

I want to get rid of tree-dvips since it is not compatible with xelatex and ps-tricks since it does not compile efficiently with xelatex. I have the following figures: They were typeset by using ...
4
votes
2answers
62 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
5
votes
3answers
134 views

Horizontal - Vertical connectors in a tree (in place of slanted lines)

Here is the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
0
votes
0answers
113 views

Examples to convince people Tikz is simply awesome!

During todays lunch break, we got into a little argument about why Tikz is more awesome than other "drawing" software (illustrator, visio, omnigraffle, but also 3d). Unfortunately, me and my ...
0
votes
0answers
44 views

How to control the size of the figure?

Without using the include graphic, placing directly within the text a design using TikZ, you can control the size of the figure?
1
vote
3answers
64 views

I want to draw a dot / small sphere in a TikZ 3D Plot

I got a 3d coordinate system and I want to mark a point with a dot. \begin{tikzpicture}[x = {(0.866cm,0.5cm)}, y={(0cm,1cm)}, z={(0.866cm,-0.5cm)},] \draw[thick,->] (-15,0,0) -- (15,0,0) ...
5
votes
1answer
69 views

pgf path decoration with corners awareness

I try to create pgf decoration that will be able to tell in each segment whether the its start is a sharp corner on the input path, but I can't figure how to do this. Take for example the following ...
3
votes
1answer
60 views

create new TikZ key with code and style tags

Assume I want to perform a complicated calculation within a TikZ key defintion. What is the recommended way to do this? Reading through the manual and digging around in other questions led me to ...
2
votes
2answers
39 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
-1
votes
1answer
66 views

Reproducing image of text boxes in a cycle using TikZ

I'm looking for a way to create a loop of text boxes such as the one below. I tried creating the image myself, however I couldn't find a way to place the arrow heads ontop of the circle, the circle ...
2
votes
0answers
53 views

! Dimension too large in pgf

I have no familiarity with TEX, PGF, etc -- but somebody was kind enough to offer me code to produce something I'd like to use. Unfortunately, I get a Dimension too large error when I run the ...
5
votes
2answers
136 views

Nodes on arrows not aligned nicely

I've written the LaTeX for an automaton that looks like this: As you can see, the 'b' on the arrow from q1 to q3 is positioned lower than the 'a, b, c' on the arrow from q3 to q2. Also, the 'b' ...
10
votes
1answer
95 views

Rotating tikzpicture messes up intersections

I'm working on a picture using TikZ and I'm using intersections to draw some points (the $α(t_{j+i}$). I saw that the picture would fit better into the page if I rescaled it and rotated 90 degrees, ...
6
votes
1answer
79 views

PGFplots: How to add a legend to “superimposed” plots

I have "superimposed" different plots on the same graph (i.e., I have two axises environments in one tikzpicture environment.) Now I would like to add a single legend for both of the plots and ...
5
votes
1answer
53 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...