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
0answers
40 views

Pgfplot fill between error [duplicate]

for some reasons, this code doesn't work in my document: \documentclass{article} \usepackage{fancyhdr} % Required for custom headers \usepackage{lastpage} % Required to determine the last page for ...
2
votes
0answers
37 views

TikZ: Changing units used by `let` operation

While making a more complicated picture, I stumbled upon unexpected behaviour from a plot command in a let operation. After quite some experimenting, I'm pretty sure I've identified the problem, but ...
5
votes
1answer
94 views

Aligning text along a sector of a circle

How can I align text along the circumference of a circle like this using TikZ? Please ignore the icons. I tried using paths and decorations, but I don't know how to constrain the text to each sector. ...
4
votes
1answer
97 views

PGFPlots — a solid of revolution as a 2D-plot

I'm trying to draw something like this: And I probably should use a 3D-plot as shown here but it seems to be an overkill solution in my case. So I wonder if there is a better way to draw ellipses ...
7
votes
2answers
348 views

Colorization of areas

I want to create in tikz the following image: Here is what I have so far: \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{pgf,tikz} ...
0
votes
1answer
81 views

How to draw the following pictures?

I want to draw the following pictures, but I don't know how to draw it. Could anyone help me? Thank you very much.
1
vote
0answers
21 views

PGF outtput differences depending on compiler [duplicate]

Im trying to use this code \documentclass[margin=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc,intersections} \tikzset{ anticlockwise arc centered at/.style={ to path={ let ...
1
vote
0answers
33 views

Add spacing between every second bar tikzpicture

So I've created this chart below from a .csv file with the code at the bottom. However I would like to add some spacing between the 2&3 bars and 4&5 bars. Is this possible or do I need to ...
5
votes
1answer
77 views

Beamer: How to use “beamercolor” in a tikz picture

How might it be possible to change the font color of a tikzpicture element to the value of a particular beamercolor, e.g. block title?-- For example: \documentclass{beamer} \usepackage{tikz} ...
1
vote
0answers
38 views

Word Collage-Cloud with Tikz [duplicate]

I recently found this picture And I wanted to do something like that with tikz. Can someone do to me a MWE?
4
votes
1answer
61 views

Styling the arrows

I am quite unexperienced with using Tikz, but I want to use if for my thesis. The last two days, I have been looking over this forum for a way to adjust the thinkness of my arrows, but unfortunately ...
3
votes
1answer
79 views

Tikz, Lua, forget semicolon problem

In this M(n)WE, there in a loss of a semicolon. The tex.print part gives the good character chain it used directly in the new command, but as I want to use it in an external \draw, tikz claims for a ...
3
votes
1answer
51 views

Chemical Scheme with tikz-visible wobbles

I encountered a problem when using chemfig-schemes inside of a tikzpicture and the visible-tikzset. The chemical structures wobble upwards, but only on the second slide; every slide after that stays ...
0
votes
0answers
71 views

TikZ for the Bloom's Taxonomy Revised?

I want to draw the Bloom's Taxonomy Revised as follow with TikZ. Could you help me? Thank you!
2
votes
1answer
39 views

tikzcircuit style not known after upgrade to TeXLive 2015?

I have this little snippet: \documentclass{standalone} \usepackage{tikz} \usepackage[siunitx]{circuitikz} \listfiles \begin{document} \begin{circuitikz}[ american, opamp ...
1
vote
1answer
69 views

tikz macro, how to implement

I would like to make macro blocks for control loop block diagram. My idea is to have PI controller and filter blocks like in picture, and to have the possibility to simply add in my diagram, but I ...
3
votes
2answers
56 views

pgfplots adding unwanted dashed lines

I'm using pgfplots to plot multiple lines, but after a certain number of lines, they seem to revert to dashed lines regardless of line style. Is there a way to fix this? The code to generate the ...
1
vote
1answer
45 views

Making frontpage template

I have made a front page in LaTeX, and I am happy with how it looks right now. However, I would like to optimize my code such that all I need is to change the text each time. More specifically, I ...
2
votes
1answer
52 views

How to clipping between two curves?

I have to fill between two curves like this photo \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{patterns,calc,positioning,shapes} \pgfplotsset{compat=1.10} ...
2
votes
2answers
72 views

How to get rid of part of the contours in the picture?

I want to draw this figure, composed by superposition of five circles. But, I can't get rid of the outlines that appear. \documentclass[addpoints,12pt]{exam} \usepackage[latin1]{inputenc} ...
1
vote
2answers
64 views

Filling the outersection of two circles

I want to color the outersection of these two circles. I have tried to look it up since it should be very easy but I really can't figure out how to do it.. This is my "code": \begin{tikzpicture} ...
1
vote
0answers
53 views

How to write colon in the name of a node

I want to have have ":" in the name of one node but my compiler hanged when I put ":" there. I mean the following code in okay \begin{tikzpicture} \node[] at (5.1,-1) {$Z_t^{1 N}$}; ...
6
votes
1answer
69 views

tikz library shadows does not accept space

With TikZ library shadows, a space immediately after the curly bracket in drop shadow = { shadow... throws an error. If there is no space after the bracket, there is no error, i.e. drop shadow = ...
3
votes
1answer
37 views

Missing xtick labels from table in bar plot whenever y value is nan

Given a picture like that: \documentclass[12pt]{article} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize \pgfplotsset{compat=newest} \pgfplotstableread[col sep=comma]{ ...
3
votes
1answer
58 views

Rotated numbers on planes

I just got to know tikz used to draw images. I check the manual because I want to draw a image like I am not sure whether tikz can do this since I found that the number in the grids somehow has be ...
1
vote
1answer
57 views

Chemistry: Experimental page with Chemfig, tikz, chemnum

I'm currently writing my Master Thesis in Organic chemistry. Since this is uncomfortable in word having many graphics and numbering I figured Latex would be best. Yesterday I discovered chemfig and ...
3
votes
1answer
52 views

TikZ > Is it possible to use the identifier of coordinates as string?

I am drawing pictures with TikZ using loops, for instance \foreach \point in {(i),(j),(k)} {...}. Is it possible to use the name of the coordinates as string to label a node? I'd like to use \node at ...
2
votes
2answers
84 views

Condensation of Digraphs in Tikz?

How can I create a condensation of a directed graph in Tikz? Goal 1 The left is a directed graph, digraph, while the right is its condensation, source is page 183 of Handbook of Graph Theory. ...
8
votes
1answer
89 views

Nodes midway sloped - how?

I have the picture, MWE \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[domain=-1.5:3,scale=0.8] \draw[gray!50, thin, step=0.5] (-3,-2) grid (10,6.5); ...
3
votes
1answer
31 views

Trim axes when having multiple plots inside tikzpicture

I use tikzpicture and axis environment to generate graphs. In one document I want that graph axes are vertically aligned with the text. So that ticks and labels are in the margins. If there is only ...
1
vote
1answer
51 views

How can I color one cell of a table using a tikzpicture?

I want to draw a table, and color one cell in another color. As I'm not that experienced in latex, I found this example: \usepackage{tikz} \usetikzlibrary{calc,matrix} \usepackage{amsthm} ...
0
votes
0answers
42 views

latex Dimension too large

\begin{figure}[H] \begin{tikzpicture}[scale=2] \begin{axis}[ title={Supply of industrial robots}, xlabel={Years}, ylabel={.000 of units}, xmin=2000, xmax=2018, ymin=0, ymax=400, ...
1
vote
1answer
63 views

Problem with tikz image in beamer.

I really hope you guys can help me out here. I have a tikz picture which is working mighty fine in the standard article mode using the following packages/libraries: \usepackage{tikz} ...
1
vote
1answer
70 views

I want to draw a digaraph with 4 vertices in overleaf

Can anybody help me in drawing following diagram (a graph connecting to all vertices, where each vertex have selfloops among themselves with arrows) ? \documentclass[tikz,border=10pt]{standalone} ...
1
vote
3answers
114 views

How to draw this hierarchichal diagram?

I just want to know how should i draw this graph? should i use forest package? the respective codes would be much of a help if available, thanks in advance.
3
votes
1answer
45 views

Hide ticks numbers / labels in a plot using PGF/TikZ datavisualization library

The datavisualization library in PGF/TikZ has many capabilities, but one thing I cannot find is how to remove ticks labels, keeping ticks themselves. The scientific axes use such style (by default) ...
2
votes
1answer
56 views

Tikz and drawing siblings on one line tree

I'm using tikz to create a graph of a network. Currently, I'm having difficulties with one tree, where I would like to set it up like the picture below to save space. 1 is the parent and connects ...
1
vote
0answers
42 views

Plotting Heat Map - problem

I'm trying to plot a heat map with this data. I expected to create a heat map like the one given in the answer of this. (Although my plot will be only a quarter of it 0 to 90 degrees). But when I run ...
0
votes
0answers
32 views

Range Restrictions in PGF/TikZ

I am currently trying to put multiple graphs in one \tikzpicture but when I try and put in the tangent function, due to its undefined nature at pi/2 and my domain being defined as -pi:pi my LaTeX ...
1
vote
1answer
35 views

tikz multi corners arrow looping around diagram

I'm trying to use tikz to draw algorithm diagrams. Assuming we have nodes A, B and C linked by arrows like so: A-->B-->C How to make an arrow that goes from the bottom of C to the top of A by going ...
3
votes
1answer
43 views

IC and BC curve with anchor at specific points

I'm trying to make the following figure: . How could I find the specific point where the anchor of Δ(c2) ends and Δ(c1) starts? Is there a way to name it or I should try it by trial-and-error ...
2
votes
2answers
33 views

Rotating scope in tikz

Can't able to rotate scope with external image (fig.pdf). \begin{scope} [rotate=30] \node (scope6) at (0,0) {\includegraphics{/tmp/fig1}}; \node at (0,0) [rotate=0,color=black] {Text}; ...
1
vote
1answer
43 views

Horizontal alignment of subfigures in PGFplots

I have 4 subfigures in a 2x2 grid. The figures are made in Matlab by using matlab2tikz, and hence the TikZ files are inputted. The problem is, that the y-ticks are different and therefore the ...
8
votes
3answers
439 views

Wrap a text in a triangle

is it possible to wrap a text inside a triangle like the following image?
7
votes
3answers
159 views

How can I draw this graph with TikZ or forest?

I want to replicate the structure of the picture below. I don't want to replicate the appearance. This LaTeX code \documentclass[tikz,convert={size=640},multi]{standalone} ...
4
votes
1answer
37 views

Add additional anchor to existing TikZ shape and modify existing anchor

I have the following code, which should give me a NAND gate: \tikzset{ block rect/.style = { draw = \linecolor, fill = \blockcolor, rectangle, minimum height = 1.6\blocksize, ...
0
votes
0answers
16 views

pgfplots: Broken path styles if fillbetween is applied

I'm using pgfplots version 1.11. It seems that path styles (caps and widths) is broken when fillbetween is applied. See wrong path widths at the top plot and right one at the bottom. Minimum example: ...
2
votes
1answer
84 views

Compilation time speed up for this pgfplots figure possible?

I already experienced in this question that the right choice of assignments for the coordinate values and meta values from a table could increase the compilation speed of pgfplots due to the lua ...
1
vote
0answers
32 views

Filled contour from axis symmetric data

I have temperature data which is axis symmetric.(See Figure 1; apologies for my bad drawing) The number(1 to 10) denotes the point of measurement. Now, From this data, how do I get a filled contour ...
3
votes
0answers
44 views

Problems using `\foreach`to parametrize a sequence of graphs in Beamer

I want to create a series of overlapping graphs in a Beamer slide, with little variations between them. I have code that works as expected in one case, but fails in other, and I don't understand why, ...