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
2answers
599 views

Root locus plots using LaTeX

On my homework, I need to create a root locus plot. Wondering if anyone out there has good suggestions for a package that is able to create root locus plots, or a general plotting package that is ...
2
votes
1answer
290 views

Connecting two nodes in tree rectangular

I want to draw a tree like this: The closest I could get to this was the following code: \documentclass{minimal} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{level 1+/....
2
votes
1answer
117 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 ...
2
votes
1answer
99 views

tikz — How to create rectangle around two nodes which are located diagonally to each other?

I want to have a rectangle that encircles A, AC, and C like the yellow one encircling B, BC, and C (I similarly want one encircling A, AB, and B), but I can't find any way of doing this. When I try ...
2
votes
1answer
1k views

How can I set the position of text along path in tikz more precisely?

Explanation It seems that nodes can be carefully placed on paths using pos=.25 (i.e. 25% from node BEGIN to node END) when using -- syntax (see Example A). Problem I cannot have the same precision ...
2
votes
1answer
188 views

Code for make WBS Structure

How i modify the last code in link (Work breakdown structure (WBS) TikZ), to make a WBS structure, like a image . I don't know how to introduce a new level in wbs example. Thanks!!! Best Regards, ...
2
votes
1answer
197 views

Adding arguments to a piece of \tikzset code?

Please look at the following piece of code %%%%%%%%%%%%%%%%%%% MOBILE TOWER %%%%%%%%%%%%%%%%%%%%% \newcommand{\MBS}[1]{% \begin{tikzpicture}[] \node[station] (base) {#1}; %\draw[line join=bevel] (...
2
votes
1answer
489 views

Tikz'spicture: problems positioning shapes inside nodes and arrow's tips in the middle of the line

I need to draw the picture above with tikz's code, and i would know the better way for placing the "zig-zag" lines. Also I would like to put the arrow's tip in the middle of the connection line. ...
2
votes
1answer
115 views

Help with Help Lines

I am plotting lattice paths to two points. I would like to have help lines drawn on top of the Cartesian plane so that any line that is an integral distance from an axis is a solid line and any line ...
2
votes
1answer
342 views

using easybmat and tikz packages together?

In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat ...
2
votes
2answers
254 views

Drawing scaled triangles with their bottom left corner at the same coordinates in TikZ

You'd figure that I failed trig class as for the life of me I cannot figure how to originate all scaled triangles from the same point. If polygon had an option to move base point from center to bottom ...
2
votes
2answers
182 views

pgfplots - tikz external - legends are missing

I'm using tikz external to get plots rendered faster. But legends in the plots are missing if external is used. Update: I'm using label to create legend. The same issue does not occur if \legend is ...
2
votes
1answer
454 views

How to animate a sine curve in PStricks/Tikz

I would like to know how to set up an animations which consists of two "sub-animations" side by side or above/below, wherein one animation just shows a real number line from say zero to 2 pi one and ...
2
votes
0answers
243 views

Jpgfdraw and transparency problems [closed]

I have built dozens of shapes with jpgfdraw . The problem I have is problems with the transparency of shapes. Why this happens? is there a solution? I take this as an output in pdf after I've done ...
2
votes
1answer
727 views

Edge weights and node labels

I am trying to draw a graph with node and edge weights. Here is what I've managed to do so far. I've placed node names. but I want to place node weights under the circles. And I want to put edge ...
2
votes
2answers
212 views

How to draw some targets like this?

I would like to show some stimators properties in statistics. I'm very beginner in LaTeX, so I need some help.
2
votes
1answer
57 views

Expansion problem

In this example, I want to create nodes generically named (for the user) \N{a}, \N{b} ... in each macro but named differently (for tikz) to avoid confusion and overwriting when calling macro ...
2
votes
2answers
603 views

Plotting and labelling points on a graph

I'm using Beamer and I desperately need to have a picture of the following image: the elliptic curve $y^2=x^3+17$, with points R = (-2, -3), -R = (-2, 3), P = (4,9) and Q=(2,5). I'd also like a ...
2
votes
1answer
101 views

Shift of equation elements placed in a tikz rectangle

I want to define newcomands to minimize the following code: \documentclass{beamer} \usepackage{mathtools,tikz,lmodern, xparse} \usetikzlibrary{shapes.geometric, arrows, matrix, positioning, shapes....
2
votes
1answer
65 views

TikZ - Black Dot/Diamond in Center of All Diamond Shapes

I am making a flow chart and in the standalone TikZ file everything looks fine, but when I use \input into my thesis all of the diamonds have a small black diamond in the dead center of the shape. ...
2
votes
1answer
225 views

Plot the poisson function correctly [duplicate]

I was try to plot the Poisson distribution as a discrete graph and only found continuous graph examples like this: Poisson distribution with tikzpicture Formula is: &space;0" target="blank">&space;...
2
votes
3answers
242 views

Overlaying or nesting graphs in tikzpicture with different axis scales

I need overlay or nest a figure in a graph. I try with \pic, but the results aren't good for figure scale, according to graph scale. I try also to define the figure in nodes, to place it in the graph,...
2
votes
1answer
409 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 ...
2
votes
2answers
889 views

venn diagram with TikZ

I'd like to create this Venn diagram in LaTeX (possibly with TikZ): Could you point me in the right direction? I've seen lots of Venn diagram examples using TikZ but none with concentric circles.
2
votes
1answer
205 views

TiKZ Node positioning left of A but below B [duplicate]

Assume I have the following snippet/screenshot. How can I get Desc2 on the same line as Desc1. So Desc2 should be vertically placed below T2 but horizontally at the same level as Desc1 so that the ...
2
votes
1answer
80 views

hobby: using tangency information at a point when drawing paths

Consider the following minimum not working example, where the first figure is drawn using "standard TikZ" methods, and the second using the hobby package: \documentclass{article} \usepackage{lmodern}...
2
votes
1answer
202 views

What's the better way to include a Tikz sheme into a beamer presentation

I have this Tikz schem Code \documentclass[border=10pt]{standalone} %\usepackage[margin=1cm]{geometry} \usepackage{tikz,xcolor} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,} \...
2
votes
1answer
78 views

Mixing a table with graphs

I have the following code: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix, positioning} \begin{document} \begin{tikzpicture} \matrix (A) [column sep=0pt, row ...
2
votes
1answer
123 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
2
votes
1answer
58 views

Scale a TikZ picture according to current font in math mode

I want to define a simple shape and use it as a binary math operator. This implies that it should scale when used as a subscript (e.g., the same behavior as \bigcirc). My attempts so far led me here:...
2
votes
2answers
175 views

Mark a reflex angle in tikz

Based on the first answer given here, I was trying to mark different angles. However, I need that the last angle (C_1 D C_6) is to be measured from the other direction (reflex angle) which I could not ...
2
votes
1answer
179 views

A diagram for an argument to the Pythagorean Theorem

The following code gives me the display that I want. I have to do issue extra commands, though, because I have an error in the syntax of the following node command. \draw (A) -- node[midway, below ...
2
votes
1answer
33 views

Strange behavior when marking with decreasing positions on multipart path.

When I mark a path at positions that are decreasing and the path contains two or more to parts, only the last to is taken into account. Here is an example : \documentclass{standalone} \usepackage{...
2
votes
1answer
292 views

Broken bar diagram with tikz package

I am trying out tikz package to create bar diagrams and following the code example in the manual on page 82 http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/graphics/pgf/contrib/pgfplots/...
2
votes
1answer
319 views

Tikz Chains with one side of the leftmost node, thickbold

Good morning everybody. This is actually the first time I write here, so thanks to anyone who is going to reply. I am writing my undergraduate thesis and I am currently stuck at drawing a Turing ...
2
votes
0answers
48 views

adding a loop to each part of an equation to label it

How I can lebel each part of an equation (when I click it will go the the second term and so on) as in this image?,
2
votes
0answers
394 views

How do I replace an XYZ coordinate system on an already available plot? [closed]

I have an eps file looking like this: I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
2
votes
2answers
90 views

In TikZ, adjust the placement of a node above text

In the example below, I've managed to align the words on the baseline and the nodes above them correctly by setting text height = \Aheight for the words (i.e. let the height of all words be equal to ...
2
votes
1answer
376 views

How to change font for axes, labels, etc in pgfplots using fontspec (lualatex)?

I need to make figure with Garamond font applied to axes and labels, as well to text in nodes. This is my MWE: \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage{...
2
votes
0answers
258 views

How do I get a straight line in \begin{tikzpicture}[decoration=Koch snowflake]?

The following code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.fractals} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=3,decoration=Koch snowflake] \...
2
votes
2answers
1k views

Aligning tikz node at bottom of page (not paper; including margin)

I already know about \par\vspace*{\fill} to align a piece of text at the bottom of page (image below, left); but how do I do this with tikz? Only thing close I can find is aligning to current page....
2
votes
2answers
799 views

Tikz intersection of lines with unnamed points?

This works: \draw (0,0) coordinate (A); \draw (1,1) coordinate (B); \draw (1,0) coordinate (C); \draw (0,1) coordinate (D); \coordinate (X) at (intersection of A--B and C--D); but this doesn't: \...
2
votes
0answers
238 views

Drawing recursive randomized structures with TikZ

After I learned earlier today how to draw nice randomized trees (Draw randomized tree in TikZ) , I discovered that I'm not quite satisfied with how the results look like - because the structure I want ...
2
votes
1answer
794 views

Tikzpicture: Line break in node label to right [duplicate]

How can I introduce a line break into the labels of the end nodes in the following MWE? The Tikzpicture will include the line breaks if I remove the label=right: part and just leave label=' but that ...
2
votes
1answer
408 views

Node next to other tikz

I want to write a code to get a network package structure. 1 var 4 ------------------------------------- | Control | Casa | Mia | Currently I have the code ...
1
vote
1answer
185 views

\onehalfspacing destroys tikz in listing

It's a never-ending story I have to tell. I want to make some code annotations. Finally, I got my macro, but now... The tikz drawings in listings break in certain circumstances (near page break): ...
1
vote
1answer
273 views

How to write a tree with no (visible) root with TikZ?

I’m trying to write a tree structure in TikZ. The trees in question are labelled on the leaf only; there is no label on inner nodes. Because I don’t use node on inner nodes, the tree structure joins. ...
1
vote
1answer
121 views

Tiny artefact diamon in TikZ

I drew a flowchart with TikZ but, in a diamonded shaped decision block, a tiny diamond appears in the centre. How to get rid of it ? \tikzstyle{decision} = [diamond, draw, fill=blue!10, font=\...
1
vote
0answers
147 views

TikZ based \boxed construct is causing pdflatex to hang [closed]

In standalone code this works for me, drawing a nice red colored box around my equations (based on TikX \underbrace like replacement that I use without any trouble): \documentclass{article} \...
1
vote
1answer
395 views

Customize diameter of a circle around numbers

The following code gives one good solution for displaying numbers in cricle but it would be better to have the possibility to control the size of the circle. Why ? In the example below you will see ...