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)

0
votes
1answer
11 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
29 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
votes
1answer
23 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} ...
1
vote
1answer
30 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} ...
2
votes
0answers
20 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
28 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{ ...
2
votes
1answer
37 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. ...
6
votes
1answer
41 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 ...
1
vote
1answer
27 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, ...
2
votes
1answer
41 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 ...
2
votes
1answer
77 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 ...
4
votes
2answers
238 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} ...
6
votes
2answers
94 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 ...
2
votes
1answer
42 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} ...
5
votes
1answer
39 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 ...
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 ...
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 ...
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 ...
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 ...
13
votes
1answer
354 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 ...
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: ...
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} ...
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 ...
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} ...
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 ...
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, ...
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 ...
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
185 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 ...
11
votes
1answer
250 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 ...
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} ...
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 ...
2
votes
0answers
61 views

TeXstudio and TikZ

Can someone please run me through the steps to install the TikZ package on TeXstudio? I have been struggling for hours but just can’t seem to get it installed so that I can use it. Thank you in ...
3
votes
2answers
120 views

Flowchart + Tikz

Would like to include PRISMA flowchart in my study and I might need help on setting up my tikzpicture commands. Any help is much appreciated. Thanks
5
votes
2answers
93 views

Rotate and clip shading in TikZ

I'm trying to produce a copy of the right hand side of this picture using TikZ shadings. I thought it would be a simple task but it has proven itself difficult (at least for me). First I couldn't ...
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. ...
3
votes
2answers
105 views

TikZ - Is it possible to draw a line over the whole page [duplicate]

I want to create/draw a front page of a document and therefore I want to draw a line from one corner of the Page to another. Ok in the final version I want to implement some control points. But up ...
3
votes
0answers
43 views

Pgfplots: Transpose headrow as first column in: confusion matrix with colormaps / heatmaps

My question builds on code from this question: original question/answer What I am trying to achieve: I want to use pgfplots to build a table, where the header row is automatically added as first ...
4
votes
1answer
77 views

A drawing for a trigonometric Identity (using the let-in syntax.)

I have the display for showing the identities for the sine and cosine of a difference of two numbers. It is drawn exactly as I want. I want to know why the following two commands do not draw the ...
2
votes
0answers
24 views

TiKz externalization ignoring scale

I want to use a TikZ picture (an Eiffel tower but it does not matter) a lots of times in the same document, but with different sizes and different colors. The first option could have been to define a ...
3
votes
1answer
61 views

Tree diagram with boxes and arrows

Good day everyone here at TeX.SX. I have been troubled with the following task; I need to create some sort of tree diagram that resembles the accompanied image. I am providing a MWE. ...
1
vote
0answers
32 views

Scaling tikz graph when pgfplots is loaded

This question is related to: tikz: Scaling the unscalable — issues with a TikZ graph I'm using the suggested modification from the linked answer to scale tikz graphs. However, I'm also including ...
3
votes
1answer
38 views

Processing list of values in key argument for tikz plot

I want to pass a list of two values as a key argument and be able to access and use them arbitrarily in a command defined by myself. For example I want a command for plotting an arc of a circle with ...
3
votes
1answer
83 views

Tikz, Grid numbering, repeating structures

I am doing this: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz,amsmath} \usetikzlibrary{arrows}% \usepackage[np,autolanguage]{numprint} \begin{document} ...
1
vote
2answers
130 views

TikZ: how to draw a diamond child

I neew to draw an "easy" flowchart. I would do that, using che child statement. I've used (as example) an example found here. I've m odified it, that is the code: \documentclass{article} ...
3
votes
1answer
155 views

Customize a section title with Tikz

I am trying to get this kind of result with tikz. However I don' have any idea how to align the text with the bottom of the rectangles or how to anchor the 2nd rectangle with the line of the title ...
5
votes
2answers
106 views

How can you put multicolor backgrounds in a table entry?

I'm wondering if these is a simple way shade an entry in a table with multiple background colors. Image attached shows between 0-3 colors per table item entry.
3
votes
1answer
62 views

How can I add an underbrace in this TikZ picture matrix of maths nodes?

I have the current tikz picture and would like to add a underbrace between the 2nd and 3rd row at the location unidentified by the 2 arrows pointing down. \documentclass{article} \usepackage{tikz} ...