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)

6
votes
1answer
39 views

beamer - Mark several pseudocode block and insert comments near it

I try to use the answer proposed to this question: Mark a pseudocode block and insert comments near it But when I try to use it with several block, it does not work as perfectly as with only one ...
0
votes
1answer
10 views

pgfplots, tikz, node, pin: Change Anchor [duplicate]

I annotate special points in my diagram and use a node/pin approach: \documentclass[border=3mm,tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis ...
0
votes
1answer
25 views

I can't load tikz package

I am writing an article in a multifile project. I use an external template provided by the organisor. I want to use some tikz pictures. I can load other packages at the beginning of my file, but ...
1
vote
1answer
22 views

sketching path on unit simplex

I am trying to simulate a path on the unit simplex, which can be drawn using pgfplots: \documentclass[border=5pt]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} ...
-1
votes
1answer
18 views

How to include pdf image in tikzpicture enviroment?

with the following script the pdf image does not appear..., why not? \documentclass[12pt]{article} \usepackage{tikz,amsmath, amssymb,bm,color} \usepackage[margin=0cm,nohead]{geometry} ...
2
votes
1answer
33 views

Plot points in 2D with confidence ellipse

I do have a csv file which consists of 5 columns: x-coor ellipse center, y-coor ellipse center, x-radius of ellipse, y-radius of ellipse, rotation angle of ellipse where the angle is in radiant. ...
2
votes
0answers
15 views

TikZ 3.0: How to “scale” a graph layout

I have this state machine: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta, graphs, graphdrawing, quotes, automata} \usegdlibrary{circular} \begin{document} ...
2
votes
1answer
27 views

Tikz tree diagram with 4 levels

This is the first time I use Tikz so please bear with me. With the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning,shadows,trees} \tikzset{ ...
1
vote
1answer
60 views

Using tikz / pgf to plot waveform

I want to plot the waveform of an audiosnippet. Since I am working in matlab I exported my audiofile as csv with two columns (n, in). Of course this produces a huge file of about 40MB for my 1 000 000 ...
1
vote
1answer
26 views

How do you change the arrows into normal lines in this code

\documentclass{article} \usepackage{chessboard} \storechessboardstyle{8x8}{maxfield=h8} \usepackage{graphicx} \begin{document} \begin{tabular}{cc} \chessboard[pgfstyle=straightmove, ...
4
votes
2answers
237 views

Simpsons function illustration in Tikz

I have this code: \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{animate} \usepackage{calc} \usepackage{fp} \usepackage{pgfplots} \usepackage{tikz} ...
2
votes
1answer
40 views

How can I redefine the description list to pass an arg to redefined items that contain TikZ nodes?

I am open to suggestions regarding my question's wording. I would like to have all description lists support an optional argument that represents node name prefixes. This will be passed to the ...
46
votes
1answer
22k views

Tikz: use opacity for fill, yet leave draw (lines) untouched

When I use the tikz key opacity for a polygon in a tikzpicture, it applies to the drawn fill as well as to the draw lines. I would like to have it this way that the lines remain untouched by the ...
16
votes
2answers
2k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
4
votes
3answers
1k views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
2
votes
1answer
75 views

TikZ node newcommand : pass color as argument

I need to create a row of circles (colored markers) followed by some text. See the image below. I achieve this using the following code. \begin{tikzpicture}[scale=2] \matrix[nodes={minimum ...
7
votes
1answer
140 views

Drawing functions on spheres

In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, ...
6
votes
2answers
93 views

positioning a node relative to multiple nodes

I would like to place a node relative to multiple nodes. In this post, the calc library is suggested in one of the answers. In the below picture, the centered node (E) is not placed in the exact ...
1
vote
1answer
145 views

Using Tikz Calendar in Persian

I saw this question: Using Tikz Calendar in Portuguese as a Syllabus and tried to translate it to persian (solar hijri). The below example code works nice, but the problem is this: for example 1st ...
5
votes
1answer
38 views

Change coordinate order in TikZ

I want to change the order of entering coordinates in TikZ. In 2D-coordinates it is (x,y) as in (right/left, up/down). As soon as I enter a third coordinate, TikZ just adds the third coordinate at ...
2
votes
1answer
41 views

cube folding with tikz

I would like to fold 12 cubes to one. Please help me with this. \documentclass[11pt]{article} \usepackage{tikz} %optional libraries \usetikzlibrary{decorations,arrows,automata,positioning} ...
1
vote
0answers
18 views

Externalize with tikz images not displayed

I am currently trying to externalize my tikz images. I get a problem that the pdfs are generated from tikz, but they cannot be displayed in the main file. Instead is a white box with the path to the ...
4
votes
2answers
2k views

Drawing neat UML class diagrams with tikz

I want to draw (UML) class diagrams with tikz (and I'm aware there is a special tikz package for that). I want to imitate the style that yuml.me uses, since personally I find it very appealing and at ...
0
votes
0answers
27 views

algorithmicx and TikZ to mark indentation [duplicate]

Is it possible to use the algorithmicx package and modify the command blocks somehow that I get vertical lines for the indentation? Should this be probably done with TikZ? (The package algorithm2e can ...
15
votes
2answers
671 views

How to use OGDF library with TikZ 3.0?

I try to compile (via lualatex) the following MWE without success. \documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing} \usegdlibrary{ogdf} \begin{document} \begin{tikzpicture} \graph ...
2
votes
0answers
32 views

Resize pspicture graphic

I have a simple SVG which I exported to a pspicture using Inkscape (colors don't get exported, but that is unrelated). I want to use it full with on a A1 poster and thought a pspicture vector graphic ...
13
votes
1answer
353 views

Matrix product illustration

I would like to write the presentation of the matrix product by putting the two matrices in diagonal, giving an easy-to-remember method to compute the coefficients. Wikipedia has the following ...
3
votes
1answer
35 views

How to perform correct manipulation of child?

MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{tikz} \usetikzlibrary{mindmap} \pagestyle{empty} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture}[mindmap, grow cyclic, every ...
4
votes
1answer
76 views

Spiral on a truncated cone

I need to plot a spiral around an inverted truncated cone, starting and ending at the centre of both bases. Something like this: I've searched and found a similar solution, but for cylinders only: ...
20
votes
5answers
603 views

Conflict: onlyamsmath and TikZ

To force myself and collaborators to only use AMS-Math commands, I load this package in the preamble: \usepackage[all,warning]{onlyamsmath} However, when this is combined with TikZ, I get into ...
4
votes
3answers
117 views

How to fill area bounded by two curves using tikzpicture

I would like to ask a question on how to shaded the area between two curves. First of all the following is the code \documentclass[]{article} \usepackage[margin=0.5in]{geometry} ...
1
vote
0answers
32 views

Labels in TikZ are all in the lower left corner of the tikzpicture [on hold]

I have a problem concerning labels in TikZ. My labels are all positioned in the lower left corner of the tikzpicture. \documentclass{birkjour} %\documentclass[12pt]{article} \usepackage{amssymb} ...
3
votes
1answer
52 views

Area bounded by a curve and the y axis

Could anyone demonstrate how to shade the area S (the area bounded by the curve and the y axis and the lines x=c and x=d). The following is my code to generate the plot. \pgfplotsset{every ...
0
votes
0answers
31 views

Why don't I have the latitude and longitude lines? [duplicate]

This is from: http://www.texample.net/tikz/examples/map-projections/ \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage[active,tightpage]{preview} ...
3
votes
2answers
46 views

TikZ: How do I change the path color without changing nodes alongside?

It is difficult to google for this problem, as I use the to command in tikz in order to bend edges left or right. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,positioning} ...
6
votes
2answers
183 views

Help on drawing a tree in latex

I am trying to draw a diagram as given below in latex. I have little information about TikZ package? Is there any simple way to draw this diagram in latex? I would be grateful if you could help on ...
3
votes
1answer
55 views

Remove whitespace around tikz picture in running text

I'm trying to draw a star in text brackets using tikz and I can't figure out how to remove the large white space to the left and right. The code is: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
62 views

Nodes and arrows from tikz not showing when using input, the rest from pgfplots is ok

In general I create all my tikzpictures in separate tex files which I then input using the \input command to a main tex file. I started using a template from my university for the main file and now I ...
3
votes
2answers
396 views

Is there a way to make ChkTeX ignore TikZ code

ChkTeX does not like TikZ, and will report a bunch of errors. Is there a way to make ChkTex ignore TikZ code?
1
vote
1answer
136 views

How to draw Forward time difference diagram in TikZ?

I am trying to draw a diagram of mesh points for Forward time difference method (\frac{u_{i}^{n+1}-u_{i}^{n}}{\Delta t}) in TikZ but I am unable to draw it. I have only drawn coordinates by using ...
6
votes
2answers
92 views

How to define a tikzstyle using append after command?

I am trying to define a style to help my pupils understand the resolution of equations. Nevertheless, I have two problems : 1 : I cannot make arrows of grey color between the steps of the resolution. ...
2
votes
1answer
48 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 ...
14
votes
2answers
19k views

TikZ grid lines

I have the following code: \draw[step=1.0,black,thin] (0.5,0.5) grid (5.5,4.5); which I would like to have generate grid lines in the Y direction at y = {0.5, 1.5, 2.5, 3.5, 4.5} and grid lines in ...
3
votes
1answer
65 views

Undefined control sequence error when using tikz-uml package in LaTeX

I am trying to build a simple UML diagram in LaTeX using a tikz-uml package. I am failing when using \umlinherit command. My code and an error message are below, thank you for any ideas! ...
11
votes
1answer
247 views

Relative transparency in TikZ?

I have always wondered whether it was possible to define some sort of "relative" transparency in TikZ. What do I mean? Sometimes, you want a node to be filled in order for its content to be readable ...
3
votes
1answer
61 views

Tikz inside a proof and enumerate environment

I am having a problem getting a tikz graph to correctly sit below the a) part of the problem in the solution: My code is as follows: \documentclass[12pt,leqno]{article} \usepackage{amsmath, amsfonts, ...
11
votes
1answer
184 views

Tikz: Cutting parts of the top and bottom line of a node of type rectangle

I am trying to cut the bottom and top line of a standard rectangle. What I have now, is a rectangle that looks like: Which was the result of: \node [rectangle,draw=black,rounded ...
1
vote
1answer
37 views

Captioning my tikzpicture using figure environment causes issues

If I remove the figure environment this code works perfectly fine. Unfortunately, I am not able to put a caption on this figure. \begin{center} \begin{figure} \begin{tikzpicture} ...
2
votes
1answer
340 views

tikzexternalize in TeXMaker doesn't work

I'm having some troubles while compiling my thesis with the tikz externalize feature in Texmaker. I created the user command: "D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 ...
3
votes
1answer
39 views

Scatterplot from table with markers set by meta column value

My input data is a txt file with a number of columns and rows. The last column value is always an integer taking a value of 0, 1, 2, or 3. I need a scatterplot which has a different marker depending ...