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)

4
votes
1answer
100 views

Generating a 3x3 payoff matrix (Game-Theory)

Been working on some economics lately, and was able to figure out how to put together some 2x2 payoff matrix's but not sure how to go about doing a 3x3. I would like to keep the same general idea if ...
2
votes
1answer
72 views

pgfplots: Color a 3D surf plot based on y-value

I'm not sure if things have changed since version 1.7, but this is the closest thing I could find. I'm wondering if there's an easier way to use the y-value with a colormap to determine the color, or ...
4
votes
1answer
67 views

How to better the way I produce phase portraits for saddle fixed points?

I often have to draw phase portraits. Here's an example for the 2D case: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{calc, hobby} ...
2
votes
1answer
90 views

Trouble updating pgfplots on Windows/MikTeX

I'm trying to update to a newer version of pgfplots, preferably v1.12. I'm currently using v1.7. First, I opened Update (admin mode) with MikTeX and it didn't have any updates for pgfplots. Then I ...
2
votes
1answer
50 views

How to scale axes in tikz package

I want to scale my drawing without distorting the graph and the text within the plot. My current code shows the drawing in 1:1 scale. What I want is to show it in a rectangular scale. ...
-1
votes
1answer
115 views

Fractals in TikZ [closed]

How to draw a shape like below using fractals in tikZ?
4
votes
1answer
152 views

Best program/package for creating LOTS of function graphs to use in Beamer?

I am looking for program/package recommendations for drawing graphs. I know similar questions have been asked before, but I have some pretty specific needs because of the project I'll be working on. ...
4
votes
1answer
82 views

Use pgfkeys to set a style variable

I'd like to use pgfkeys to define the scale for a number of tikz pictures. However, wenn I do the following: \documentclass{article} \usepackage{tikz} \begin{document} \pgfkeys{/my ...
2
votes
1answer
34 views

How do I empty a list pgfmath randomlist

I'm trying to use \pgfmathrandomlists. I know that the command \pgfmathdeclarerandomlist{list}{{item1}{item2}...} produces a list and that the command \pgfmathrandomitem select a random item from a ...
3
votes
1answer
50 views

tikz remember picture inside a latex table for posterior tikz drawing

I am working in a latex table that has tikz figures in it. This is fine, however I want to use elements inside those independent figures to overlay an extra tikz figure on the top of the table. The ...
7
votes
2answers
112 views

Printing an array of numbers into multiple columns

I have 100 numbers and I want to print the numbers in multiple columns in one page like: 1 11 21........91 2 12 22........92 3 13 23........93 4 14 24........94 5 15 25........95 6 16 26........96 7 ...
2
votes
1answer
66 views

PGFplots z buffer does not sort the plotted objects properly

I have a PGFplots axis environment in which I attempt to plot several line objects and a surface object. The objects have to be 'sorted' in the sense of which object is drawn before or behind the ...
5
votes
1answer
56 views

Move line by size of arrow tip

I'm trying to draw a simple rectangle together with the dimensions. Here is my first try: \documentclass{article} \usepackage{tikz} \begin{document} \pgfmathsetmacro{\a}{2.0} ...
0
votes
0answers
41 views

How to include the tikz, multicol styles in central European Journal class?

I want to include some diagrams using the styles tikz and multicol in central European Journal class. But the class not supporting these styles. How to resolve it. Here the class file available ...
1
vote
1answer
54 views

How to plot arccotangent function using pgfplots?

Just trying to plot the arccotangent function in tikz/pgfplots, no problem with asin, acos, atan, but at "acot" hit a brick wall. Basic syntax used (just as an example): \draw[color=Maroon,line ...
1
vote
0answers
43 views

How to place a color gradient text node inside a tikzpicture (absolute positioning)

I want to put a color gradient to a "Desired Text Only" but then I want to be able to position it inside a tikzpicure. I already checked this thread describing a way to put gradient color to a section ...
1
vote
1answer
78 views

Help me in aligning

\documentclass[]{exam} \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont,tikz,mwe,caption,float} \usepackage{pgf,tikz} \usepgflibrary{arrows} \begin{document} \begin{questions} ...
2
votes
2answers
60 views

How to do to draw a Tikz tree layout graph background

I try to draw a background on a tree layout graph but whatever the method I use, lualatex throws this error: Dimension too large. I test show background rectangle, fit, local boonding box with scope ...
8
votes
1answer
171 views

Coaxial cable in pgfplots

I want to draw a coaxial cable using pgfplots. It more or less has to be done within that program because in my document, I also want to add some 3D plot next to the cable. (I guess a solution using ...
4
votes
1answer
100 views

What is wrong with this PGFPlots Boxplot?

The following MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{pgfplots.statistics} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
50 views

Change style of PGFplots 3d box

When making a 3d axis plot by means of PGFplots, one can for instance change the style of the grid with \pgfplotsset{grid style={dashed,gray}} . But when using 3d ...
2
votes
1answer
74 views

Create a memory node

How can I create a node with this form: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{tikzpicture} ...
2
votes
0answers
44 views

inkscape2tikz missing arrowheads

inkscape2tikz doesn't seem to cope very well with arrowheads. Is there a way around this? Maybe my picture is also already too complicated for this extension to work out-of-the-box and I should choose ...
9
votes
1answer
103 views

How can I draw a semi-transparent arrow in TikZ without internal overlap?

Drawing a semi-transparent arrow should be easy enough, right? \documentclass{article} \usepackage{tikz} %\usetikzlibrary{arrows} % this doesn't change the result \pagenumbering{gobble} ...
3
votes
1answer
100 views

How to draw a smooth U with TikZ?

I want to draw a smooth U like the one from the Ubuntu titling font: I need to draw this because I want to have a shape similar to the "U" letter but with a larger space between the vertical bars ...
-1
votes
0answers
63 views

Draw a flowchart using tikz [duplicate]

I want to draw the following flowchart : Anyone tell me how can I draw this diagram.
0
votes
0answers
27 views

Figure alignmetnt regards

\documentclass[10pt]{exam} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \newcommand{\degre}{\ensuremath{^\circ}} \begin{document} \definecolor{qqwuqq}{rgb}{0,0.39,0} ...
3
votes
2answers
77 views

List of Theorems and tikz overlay

Suppose you call \listoftherems from the thmtools package, and use titlesec package to modify appearance of chapter headings. Suppose further that in titleformat, you include a simple tikzpicture, ...
0
votes
1answer
73 views

How to shade a region outside the sphere in Tikz

I would like to graph the region given by (x-2)^2 + (y+1)^2 + z^2 > 5. So, I'm looking to draw a dashed sphere of radius sqrt(5) centered at (2,-1,0) and then shade everything outside of it. Any ...
2
votes
1answer
49 views

Tikz picture + function plotting | what once worked, no longer does

For one of my classes, I use a fair number of function plots, which I generate using TikZ, and tikzpicture. Unfortunately, what once compiled fine (probably last fall when I last made significant ...
1
vote
0answers
39 views

What is the error in this? [closed]

\documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \newcommand{\degre}{\ensuremath{^\circ}} \begin{document} \definecolor{qqwuqq}{rgb}{0,0.39,0} ...
9
votes
1answer
121 views

Tikz: Fill the intersection between two polygons

I'm trying to fill the intersection of the two polygons that I have made using tikz. But it seems like I have some mistake in my \clip and \fill commands that I can't get what I want. This is what I ...
2
votes
1answer
93 views

Survival Curves with pgfplots

I'd like to plot Kaplan-Meier (survival) curves with pgfplots from output generated in Mathematica. A typical output table would look something like this: 211 1 253 1 307 1 344 0 365 0 365 1 ...
3
votes
1answer
64 views

Externalization of contour gnuplots

Based on a datafile (XYZ.csv) I want to have a contour plot within my .tex file. I'm using lualatex for compilation. The main issue is the externalization of the gnuplot contour plot in combination ...
1
vote
0answers
79 views

15 nested graphs cause “TeX capacity exceeded, sorry [text input levels=15]”

I need to draw a diagram that has more than 15 nested graph, but i have this error : ! TeX capacity exceeded, sorry [text input levels=15]. l.2 ...rfaceToDisplay.resumeGraphDrawingCoroutine()} l.94 ...
0
votes
0answers
64 views

Convert from rectangular coordinates to polar coordinates

The following code gives me the display that I want. The only modification that I want is to specify the points in polar coordinates with the same radius. (These points are on a unit circle centered ...
2
votes
1answer
64 views

Having two types of nodes

A rather beginner question. I am using someone else's code and he has defined: \tikz@node@transformations}{}{} \makeatother \tikzset{nodes={draw,rounded corners},minimum height=1.5cm,minimum ...
3
votes
1answer
62 views

Accessing an entry in an array within Tikz?

This seems like it should be simple but I can't get it to work. I simply want to draw a circle and the x coordinate of the center to be specified by an entry in a given array. For example suppose I ...
2
votes
1answer
47 views

How to plot with tikz without graduations in the axis?

I'm trying to plot a function with tikz and let the plot as clean as possible, but I can't remove the lines along the axis. Can anyone help with this? \begin{tikzpicture} \begin{axis}[ axis ...
4
votes
1answer
71 views

Why doesn't normalizing the vectors in quiver plot work?

I'm creating a vector field using the quiver plot and I would like to have all the vectors of unit length. Why doesn't the following work? \documentclass{article} \usepackage{pgfplots,} ...
4
votes
1answer
119 views

Change the direction of a Brace

The first of my two braces (the one on the left does not appear as expected. How can I make it head downwards? \documentclass[]{article} \usepackage{tikz} ...
0
votes
0answers
63 views

Graph functions & color area under curves

Could anyone help me with the attached images below as far as coding the axis's and shading the area? I'm new to anything graphing in LaTeX and would love to have some guidance.
5
votes
1answer
82 views

Why can't contour text along curve path?

I want to use a font with a white contour but doesn't seems to work. \usepackage{color} \usepackage[outline]{contour} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} ...
11
votes
4answers
196 views

Regular polygon: edges between vertices of odd index

I want to draw a regular polygon in which there is an edge between the consecutive vertices of odd index: For instance with 8 vertices, I want a path 1 -- 3 -- 5 -- 7 -- 1. To do this with a large ...
5
votes
2answers
88 views

References as text decorations (using multiple files)

I would like to draw a picture in which a line connects two points. Along this line, there should be a text "x", where x is the number of a specific equation in another document. Unfortunately, I am ...
5
votes
1answer
85 views

How to fix naive solution for elements grouping?

I'm trying to create elements grouping .pic: have children of unknown layout (doesn't even has to be node structure, it could even be plot, or tree ) act like a node - anchor it as one element, ...
5
votes
1answer
59 views

debugging tikz: how assign each separate tikz object to a variable and then add them to a picture?

To help me learn Tikz, I thought it will help, if I can draw each Tikz "object" (the thing that ends with a ";") on its own, then at the end, send them all to tikzpicture to see the whole objects put ...
2
votes
1answer
36 views

drawing line pushes a chain below

I am trying to make a line that intersects a chain I already drew. However the drawing of the line pushes the chain below and they do not intersect. Can anybody help? I would like that the line ...
2
votes
2answers
73 views

Prevent edge from cutting through node

I got the following TikZ Graph: \begin{tikzpicture}[auto,node distance=2cm,thick, node/.style={shape = rectangle,draw}] \node[node] (en) {ENTRY}; \node[node, label=180:$B_1$:] (1) [below of=en]{ ...
1
vote
1answer
37 views

Is it possible to reference the baseline of the lowest line in multiline node with an arbitrary number of lines?

Question Can I automatically reference the lowest baseline of a node in TikZ? Situation I would like to draw a line under the lowest baseline of the node in red (not just moonfact.south west -- ...