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)

1
vote
1answer
164 views

how can I animate a circle over the curve?

I'm trying to put the circle over the curve but the operation generates an error, and I don't found how avoid this problem. \documentclass[]{standalone} \usepackage{animate} \usepackage{tikz} \begin{...
5
votes
1answer
139 views

Draw block diagram based on schemabloc or blox package

Related to this question Drawing a closed loop diagram with Tikz with multiple inputs. I am trying to draw that diagram based essentially on schemabloc package (french macros names and docs), I don't ...
2
votes
1answer
71 views

how to draw 'inhibitory' arrow in latex tikz?

i'm using this tikz-based library to draw nodes and arrows between them (https://github.com/jluttine/tikz-bayesnet). I want to draw an arrow that has a vertical line tip (|) (which usually means ...
4
votes
0answers
48 views

Dimension too large Error in bar drawing

Here is my code. The following code returned ‘Dimension too large’ error. This error has different reasons since I cannot fix it after I surfed on the internet. The code would be work if I ‘change ...
5
votes
3answers
117 views

Place a ruler somewhere on a page

How can I place a virtual ruler (which accurately measures distance) on a page, irrespective of page margins? For example, along the left-hand side of the page from the top to the bottom. Basically, ...
4
votes
2answers
105 views

Atomics simulation

I would like to draw atoms in this square where in the left of square blue atoms in the right of square red atoms and in the middle black. \documentclass{standalone} \usepackage{tikz} \begin{...
3
votes
1answer
121 views

Drawing a closed loop diagram with Tikz with multiple inputs

I am using Tikz for the first time and I am having trouble coming up with a diagram I am required to draw The diagram is this I have found a code and attempted to modify it to make it resemble as ...
3
votes
1answer
71 views

How to put multiple images in tikzpicture

I have two set of images, fruits and flowers jpeg images like 1.jpeg, 2.jpeg, 3.jpeg, 4.jpeg and 5.jpeg. I want to put them in tikzpicture, without overlapping with each other. Below is the code- \...
2
votes
1answer
57 views

How to draw arbitrary bounding box for a flowchart using tikz

My flowchart is as in https://postimg.org/image/iw5yi1i55/ I need to draw a bounding box enclosing JT, VB, L and PM. Minimum Working example for my flowchart: \documentclass[10pt,twocolumn,...
1
vote
1answer
35 views

Unable to hatch the following figure in the semicircular area

Hello friends, I am trying to etch the semicircular region similar to that in the tube in the following diagram, Please help. \begin{tikzpicture} \draw[thick] (-2.4,0)--(-2.4,5); \draw[thick] (0,0)--(...
2
votes
2answers
81 views

Filled cycle in TikZ with varying border styles

I have the following TikZ: \begin{tikzpicture} \draw[fill=gray!50, dashed] ([shift={(-0.5,0)}]0:0.5) arc[radius=0.5cm, start angle=0, end angle=45] -- ([shift={(0,0)}]102.5:0.383) arc[radius=0....
1
vote
0answers
57 views

dashed lines in intersections and graph

I was trying to repeat this graph, but only a part of it. And my goal is to make the TP curve more downward at the end. In addition, I find difficult to make the dashed lines there. Is there a way to ...
3
votes
1answer
54 views

Arrow diagram from indesign

I found following diagram highlighted with a yellow circle around it in Math ebooks which is created by Adobe Indesign. Could someone create it by using Tikz? \documentclass{article} \usepackage{...
1
vote
1answer
47 views

Sideways headers and page numbering

I was browsing the web to find some design inspiration for a report I'm working on, and I found this two examples of headers and page numbering at the side of the pages rather than on the top and ...
2
votes
2answers
43 views

Package classicthesis and tikz figure numbering in marginpar

I'm using the classicthesis package and I created some tikz pictures in the margin using \marginpar. Unfortunately the numbering of the figures is not correct. When I comment out the classicthesis ...
3
votes
2answers
42 views

Change Cell alignment in Array environment [closed]

Can anyone please tell me how to align the alphabets A,B,C,D and E in the array environment so that I can move each of them to the yellow spot? I have attached my code below \documentclass[]{article}...
2
votes
1answer
67 views

Creating a macro which draws rectangle on the edge of the paper

How can I write the following macro to compile in XeLatex The Paper to be divided into two columns by using a borderless table (middle | is for conceptualization purpose only. it will not be visible) ...
4
votes
2answers
178 views

Drawing two vectors at a precise point of a curve

I have drawn the following figure. \documentclass[a4paper, 11pt]{book} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \usetikzlibrary{decorations.markings} \makeatletter \...
2
votes
1answer
105 views

Making Jablonsky diagrams using TikZ

A powerful tool to explain complex chains of transitions between the ro-vibronic level of a molecule is a Jablonsky diagram. The code below uses TikZ to draw the following diagram: But in order to ...
1
vote
0answers
117 views

Draw qualitative plot

I use LaTex regularly, but I'm new to the whole drawing thing. I'm writing my thesis about neural networks, and to illustrate a spike I want to plot something like this: In this case I'm not ...
2
votes
3answers
155 views

How to draw horizontal arrows from y axis to graph?

I want to draw a similar image to the one below. Is it possible to do this in TikZ?
1
vote
1answer
58 views

Rotating entire document by 90 degrees

The following code looks as in the picture below: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[block/.style={rounded corners, ...
1
vote
0answers
48 views

How to draw vector fields along a curve with tikz [duplicate]

I've drawn a smooth curve from a point p to a point q using the package tikz. \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \draw[gray, thick] (0,0) to [out=-20, in=170] (8,0);...
1
vote
0answers
50 views

drawing a paraboloid usings tikz with xyz coordinates

This is my first time working with tikz and I feel like I've taken on a project that is too difficult for a first timer. I am trying to recreate a picture like the following: but I can't seem to ...
9
votes
2answers
132 views

How to dash a specific curve segment in Tikz?

I'm trying to draw a three dimensional object inside which sits surface (blue) and a curve (green). To make it look more 3d I'd like to dash the part of the curve (green) in between the two red dots ...
2
votes
3answers
139 views

Drawing an oblique ellipse with Tikz

I discovered the tikz package just few hours ago. I would like to draw an oblique ellipse.. How can I do that? Here is my code: \documentclass[tikz,border]{standalone} \begin{document} \begin{...
6
votes
1answer
161 views

Increment Counter as part of TikZ Style

I would like to increment a counter every time a particular style is applied. The MWE below compiles just fine, but the counter is not incremented. I would like to have the counter value be 3 ...
5
votes
1answer
55 views

Center/align input nodes in neural network

I have a neural net drawing, however, as you can see the input nodes are not centred with the hidden layer and output. How do I align the input nodes? How can I add symbols inside the nodes (i.e X1,...
1
vote
1answer
49 views

how to first draw and subsequently fill a given path

The TikZ manual (p.37) says "You can also fill and draw a path at the same time using the \filldraw command. This will first draw the path, then fill it." But from the point of view of opaque ink, it ...
4
votes
3answers
127 views

How to stack TikZ nodes?

I want to have rectangular nodes exactly one above the other. I tried using fit and it seems to make the nodes larger than the input, so the nodes overlap. This is for something like a vertical ...
1
vote
0answers
40 views

center plot function with tikzpicture

I've to plot this function: y=-0.002822*x^2 + 1.456*x - 89.314 in the x domain between 75 and 200, and y domain between 0 to 100. If I use \begin{tikzpicture} \begin{axis}[xmin=75,ymin=0] \addplot[]...
4
votes
2answers
215 views

How do I make a TikZ graphic with small sans serif font?

I want the font in the graphic to be sans serif, and to be smaller than the main document. I tried \begin{tikzpicture}[font=\sffamily] \tikzstyle{every node}=[font=\small] \draw (0,0) rectangle (5, ...
1
vote
1answer
52 views

Floating subfigures

As you can see, my graphs are too big. I wanted them to float as "twins" so if there's much text on a page, the other pairs are shown on the next page. Is there any solution to set them at the right ...
1
vote
1answer
182 views

Lack of precision in pgfplot

I am trying to plot the following: \begin{tikzpicture}[font=\sffamily] \begin{axis}[ xmin=120.,xmax=140., ymin=120.,ymax=140., grid=both, xlabel={$x$}, ylabel={$y$}, minor x tick ...
4
votes
1answer
34 views

PGFPlots: Automatically forcing ticks at the end of an axis

I would like the ticks of the colormap from the first picture below to show the maximum and minimum of the data like in the second picture, in this case 1.35 and -0.26. I know I can do it through ...
0
votes
1answer
62 views

drawing state diagrams / graphs in matplotlib with LaTeX?

is there a way to draw the following state diagram in matplotlib? Or instead to embed inside a matplotlib figure LaTeX code that draws these diagrams using a package like tikz? ideally I would ...
3
votes
1answer
53 views

Tikz Error: ERROR ‘Dimension too large’

In answer of the question Origin and formation to the ERROR ‘Dimension too large’ is given only a hint, how the problem can be solved with package fp. Please could someone give a working solution, ...
1
vote
1answer
121 views

Tiny artefact diamon in TikZ

I drew a flowchart with TikZ but, in a diamonded shaped decision block, a tiny diamond appears in the centre. How to get rid of it ? \tikzstyle{decision} = [diamond, draw, fill=blue!10, font=\...
0
votes
0answers
42 views

artificial neural network graph [duplicate]

I wanna draw the following neural network in latex. a reply is greatly appreciated
0
votes
1answer
64 views

TikZ fails to draw

I'm trying to use TikZ to draw the following figure, I'm sure that the commands are correct but I obtain the following error: "! Package pgfkeys Error: I do not know the key '/tikz/closed' and I ...
1
vote
1answer
43 views

pgfkeys and ifs

I'm still looking for a viable solution to have "conditional pictures", or pictures, where I can enable and disable certain parts of the pictures with styles (very much like beamer overlays). My aim ...
2
votes
3answers
59 views

Alternating integers provided in for-loop

The following code prints the labels foo, bar, baz, and qux on alternating sides of a circle. This is being done by for-looping over multiple variables specified in \myInput. The variable responsible ...
1
vote
2answers
106 views

How to draw a smooth connections between segments and arcs?

I am trying to make the following path: \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture}[scale=1] %\tkzInit[xmin=-5.1, xmax=12.1, ymin=-5.5, ...
3
votes
1answer
51 views

Inconsistent visualization of degree intervals on tkiz circle

I use the following code in order to draw a circle with numeric labels at specific degree intervals. Variable \FullLength (see line 5) hereby allows for user input. \documentclass[margin=5pt]{...
3
votes
1answer
93 views

Itemization in Tikz

Heavily edited question: In the following code, how can I add an itemization to the title? What I write below does not work. The code is taken from Zarko's answer here: Flowchart + Tikz \...
2
votes
1answer
54 views

Parametric Pics : Sans infinity

Previously I have asked about passing options to pics to manipulate the way in which they are drawn. With this one may create pics with optional components and user controlled dimensions. I haven't ...
5
votes
3answers
160 views

Pascal's triangle using tikz-pgf: Missing semicolons

I tried several semicolons, but I don't know where to set them. I know that one at the very end of the node is ok, but it doesn't work when I'm trying to set it there. I am new to pgfplots. Can anyone ...
0
votes
1answer
44 views

Boolean type operation

Is it possible to subtract one shape from another in Tikz? I can then draw arc shape and subtract rectangular like shapes from it... Like
1
vote
1answer
40 views

Setting a circular connection bar between a rounded rectangular and circular pair of nodes

The presented mind map is just supposed to possess a leaf child with rounded rectangular shape. I'm in trouble with deserving connection of the aforementioned child to its corresponding typically-...
1
vote
0answers
37 views

How to place a bar one on the other in bar charts?

I know how to draw for single data... but How to draw the bars one on the other where the data's grouped \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{pgfplots} \begin{document} ...