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)

5
votes
2answers
101 views

Babel, active chars, ifthenelse and tikz

This question is a build-up on the "classical" Problem with babel and tikz using \draw; it is known that the babel package, in some language, make ><' actives and wreak havoc with tikzpicture ...
2
votes
1answer
46 views

Draw lines in a loop of n times

I'm trying to create a code that draw different lines in each iteration, but it does not work if when i used the loop index -> \x. Any suggestion? Thanks. \documentclass[border=10pt,tikz]{standalone}...
1
vote
0answers
7 views

Rebuild Texlipse project on modified file which is not *.tex

Usually, texlipse starts rebuilding my project when i save a modified *.tex file. I have several figures created with tikz that are stored as *.tikz files that I often modify. In this case I do not ...
4
votes
0answers
34 views

Lines do not reach the border of node

I want to make a tikz-picture of a Hasse diagram and by problem is that the lines between nodes stop a bit short of the border of the node and I can't figure out how to fix this. Here is my code: \...
1
vote
0answers
45 views

x,y axis label values should be node label

I am new in tikz, I want to draw x,y axis and label of x,y axis should the node labels \documentclass{standalone} \usepackage{mathtools} \usepackage{pgfplots} \usepackage{siunitx} \sisetup{per-mode=...
7
votes
1answer
119 views

Merge eight TikZ commands into one using \if

I would like to combine the functionalities studied in two recent questions of mine (here and there ) That is, I want to create a command with six arguments : an endpoint P, a hoziontal distance a, a ...
4
votes
1answer
39 views

Scale tikz reference in footnote

Using a \ref to a tikz/pgfplots maker works fine in normal text, but it seems not to scale with the text size e.g. the marker is too large in a footnote as in the following MWE \documentclass[14pt]{...
1
vote
1answer
33 views

Create graphics dynamically at the compile time in a pgfplots

I am trying to create a 2D plot in which the x-label ticks are pictures, similar to what is posted here, with the difference that the images be created at the compile time in a parametric manner. The ...
2
votes
1answer
52 views

How to place a mindmap in the center of an A0 poster only

I have a mindmap figure as standalone here. How can I code to get an A0 poster with this figure in the center of it only. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Author: ...
3
votes
1answer
72 views

How to remove the axis lines

How to remove the axis but the label should be there Eg:current output Expected output I am using the following code \documentclass{standalone} \usepackage{mathtools} \usepackage{pgfplots} \...
1
vote
1answer
54 views

Tikz tree in beamer

% Red-black tree % Author: Madit \documentclass[leqno,fleqn,table]{beamer} \usepackage{tikz} %%%< %\usepackage{verbatim} %\usepackage[active,tightpage]{preview} %\PreviewEnvironment{tikzpicture} %\...
4
votes
1answer
58 views

Quarter turns according to coordinate axes in TikZ

I'm trying to implement quarter turn style arguments in TikZ, in such a way that \begin{tikzpicture} \path (2cm,1cm) coordinate (A); \draw[blue,->] (A) [northwestqturn=3cm]; \draw[green,->] (...
4
votes
1answer
49 views

Different grow directions in forest in tikz

Is it possible to mix grow directions in forest in tikz? I want to obtain something like using forest. So after the 2 first levels, I want to start 'listing' the items (or growing east) instead ...
3
votes
0answers
46 views

Dimensions too large on plot

I'm trying to plot a Gauss function/normal distribution, based on the answer to this question, however my domain is 0:10000 and the sample size is 95. This is resulting on the following error: ...
5
votes
1answer
189 views

How to improve visibility of a black and white plot?

I'm plotting information from 10 sets in the same plot. The result is very messy since the lines for each game intersect and overlap with each other, and the width of the final image is small. Here's ...
6
votes
2answers
131 views

Tikz rotation center not where I thought it would be

I am trying to rotate a rectangle drawn in tikz. Many questions on this site were helpful about tikz rotations but for me personally I seem to be misusing one of the parameters, as my intended center ...
9
votes
0answers
150 views

Branch TikZ graph always on the same side

I am trying to draw a graph (actually, generate TikZ code automatically) which has a main branch that must be straight; secondary branches must always branch on the left. On each layer there must be ...
0
votes
3answers
96 views

How to draw arc inside a triangle with tikz?

I wonder how to draw something like this picture using tikz or tkz-euclide. I really don't have any clue what to do first.
7
votes
3answers
179 views

Draw circle in TikZ by specifying endpoint and distances instead of angles and radius

In the classical arc command in TikZ, we specify an endpoint of the arc, followed by the initial and final angles, and finally the radius. I would like to create a macro (if it doesn't already exist) ...
2
votes
0answers
37 views

Zoombox misplaced figures using \tikzexternalize

I get misplaced figures when I combine zoomboxes and \tikzexternalize. For a MWE, I use the same image as in the original zoombox post on How to create magnified subfigures and corresponding boxes for ...
7
votes
1answer
96 views

TikZ: How to accurately calculate the distance between nodes anchors? - Effect of outer separation on anchors location

In this code, I configured the text width=2cm and inner sep=0cm with horizontal node separation of 1cm. Therefore, I should assume that the horizontal distance between start.north and end.north is 2*0....
5
votes
1answer
68 views

Generate tikzpicture stepwise with textblocks

I want to build a block scheme to visualize a workflow. I created a tikzpicture containing nodes that appear one by one. This works so far. Now I want to add illustrations and equations with every ...
1
vote
0answers
45 views

Where can I find the comprehensive list of TikZ node types?

Many TikZ examples use node types like "sum", "process", but I can't seem to find a list of "factory" node types in either the references or elsewhere on the web. What am I missing here?
3
votes
1answer
30 views

TikZ-UML classes with same name but different node names

I'm using TikZ-UML to draw a class diagram with multiple packages, and classes with the same name but located in different packages. The thing is, I want to put relations on those classes, but I can't ...
5
votes
0answers
61 views

Labeling custom path in TikZ [duplicate]

MWE: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, graphs, matrix, quotes} \usepackage{fancyhdr} \pagestyle{empty} \begin{document} \begin{tikzpicture} \matrix[...
4
votes
1answer
80 views

tikz: pause between generations in a tree in beamer presentation

I have been writing the following code for a tikz-tree: \documentclass{beamer} \begin{document} \begin{frame} \begin{figure} \centering \begin{tikzpicture} [nodes={draw, rectangle, fill=orange!...
4
votes
1answer
73 views

Customizing toc in book class (appendix and coloring sections depending on current chapter)

I'm trying to customize my TOC as in this post (second example) and I'm having two issues. The first one is documented but I can't figure out what I'm doing wrong : I want to write "Appendix" instead ...
18
votes
2answers
353 views

Pgfplot - Cross section of a 3D line plot (Poincare Sections)

I have plotted a 3D line using this following data: p p1t p2t -65.79 -210.81 137.73 -124.76 -182.7 189.67 -170.78 -141.97 233.17 -206.39 -96.42 257.48 -226.99 -40.212 268.45 -231.57 20.337 255....
4
votes
1answer
93 views

visualizing matrix factorization

I want to create diagram like below. Update: Mostly done. \documentclass{standalone} \usepackage{amsmath} \usepackage{tikz} \usepackage{colortbl,pgfplotstable} \pgfplotstableread[header=false]{ ...
8
votes
1answer
89 views

TikZ: When will I need to use edge and how does it differ from the conventional path draw command?

Maybe this question is naive, but when will I need to use edge instead of --?, and how can I use edge to replicate the same output of path conventional draw command --? \documentclass[border=10pt]{...
2
votes
4answers
200 views

How to draw a triangle with line parallel inside

i need help with this triangle (Image 1), i don't know draw this in tex :c
4
votes
1answer
43 views

Positioning TikZ block centrally above two child blocks

I have the following MWE of a Beamer slide: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes,calc} \usetheme{Singapore} \begin{document} \begin{frame} \begin{...
18
votes
1answer
272 views

Plotting a Probability Tree with TikZ

The following code should produce a three step probability tree, but fail to compile. Does anybody have an idea why it doesn't work? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
0answers
29 views

TikZ ignores node positions [duplicate]

I’m trying to write a simple finite state automaton in TikZ/LaTeX—The code should be quite self-explanatory: \documentclass[a4paper,10pt]{article} \usepackage{amsmath} \usepackage{tikz} \begin{...
3
votes
2answers
48 views

Tikzpicture (horizontal) aligning caption with respect to node

I have a tikzpicture with 2 nodes. One node is image and other node is axis label. I want to center the caption with respect to image node, rather than on the complete tikzpicture. Please help and ...
1
vote
0answers
43 views

How to improve my unicode/tikz enabled big integral sign?

I found the following Big integral sign after I asked the (almost?) duplicate Is there a more typographically-satisfying bigints package? and decided that the given solutions are not great. I found ...
1
vote
1answer
33 views

“And” keyword gets attached to preceding argument, gets misread by TikZ

In the TikZ code of my tex file, I have a line \path[draw=cyan] (\xOne+\xTwo+\xThree,2*\yOne+\yTwo+\yThree) ellipse (\xThree and \yOne); which triggers the following error during compilation : ...
2
votes
1answer
37 views

TikZ takes two pages to display empty output

The simple .tex file below produces a three-page PDF with TexShop (I'm using the latest version on my Mac), the two first of which are blank and the third contains the "Normal text here" part. What ...
38
votes
1answer
591 views

How does PGF/TikZ work?

How has it been possible to develop a huge vector graphics package, PGF/TikZ, entirely within the TeX language? Exactly how is it working under the hood? Which techniques and TeX primitives does it ...
0
votes
0answers
33 views

How to overwrite a node setting in Tikz to align Tikz pictures to nodes? [duplicate]

A Tikz picture has four nodes and each node has a new tikz picture, an inheritance problem coming. I have four Tikz pictures where each is inside a node and each node has size of 4cm times 4cm (square)...
1
vote
2answers
132 views

How to create Simplical complexes of Betti Diagrams in Tikz?

I want to learn to create Betti diagrams and their simplical complexes such as where I need to learn to align the text properly (see Trial 1) and where I need to learn coloring surfaces and add ...
5
votes
2answers
134 views

How to draw a down arrow inside a table?

I want to draw a \downarrow (or any arrow) inside my table. The table is as shown in the one below: And I want to to be more like this: And this is the code I have: $\rotatebox[origin=c]{90}{}%...
3
votes
0answers
36 views

Badly aligned tikz objects and bad page-break in deluxetable

I am creating a table in latex, and I need to use a deluxetable environment. I use the package tikz to draw some circles in the table. The problem I am having is that I want to reposition those ...
4
votes
1answer
69 views

Smooth the junction between lines

I would like to make this tikz picture fancier. First of all, is it possible to smooth the junction between the different parts of the graph, for istance between the half circle and the line? Then,...
2
votes
1answer
26 views

How to make the texts below the image in the sidebar of beamer?

the is a simple demo of beamer: \documentclass{beamer} \usepackage{tikz,graphicx} \title{Title} \author{My name} \institute{My institute} \useoutertheme[right,height=0pt,width=0.12\paperwidth]{...
3
votes
2answers
92 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
0answers
45 views

Fill pgfplot bars with colorbrewer

I want to use colorbrewer in my project since it provides color cycle lists but I struggle to use them in the right way I think. Please have a look at my MWE: \documentclass{article} \usepackage{...
3
votes
2answers
55 views

arrows=pgf in mhchem with TeXLive 2016

After updating to TeXLive 2016 (MacTeX 2016), I have trouble with TeX files previously correctly compiled under TeXLive 2015. Namely, using \usepackage[version=4, arrows=pgf]{mhchem} gives the error : ...
1
vote
1answer
34 views

How to declare a tikz “directory” or group of keys

In the mwe below, I declare a key /tikz/my key/radius, and I set up /tikz/my key so that using my key={radius=50pt} works. This is a common pattern, for example decorate, decoration={lots of options ...
0
votes
0answers
63 views

Drawing Cylinders and Spheres

Would it be possible to generate this diagram in Latex?