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)

9
votes
2answers
257 views

Wire not centered in the connector (electrical circuits)

Why isn't the wire centered in the connector located at the point (2.5,0)? \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{circuits.logic.IEC} \tikzset{circuit declare symbol = ammeter} ...
1
vote
1answer
352 views

How can I avoid overlapping text labels in tikz scatter plot?

I tried to plot a scatter in latex using tikzpicture. \begin{tikzpicture} [x=12cm,y=4cm] \begin{axis}[xlabel={y title}, ylabel={x title}] \addplot[scatter,mark=*,only marks, point meta=x,nodes near ...
7
votes
2answers
275 views

Projected coordinate in TikZ is not properly placed

I'm trying to draw an airplane. When I was drawing the window for the cockpit, I was using projected points to get right angles. But things aren't working out as expected. Could anyone give me a ...
5
votes
1answer
562 views

Multi server queuing system using tikz

I need to have the server of this system \usepackage{graphicx} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsmath} \usepackage{amsthm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...
4
votes
2answers
220 views

Why are braces (for scoping) not allowed in an align environments?

I just learned that you can use braces to scope the effect of \tikzset. But it is not allowed in align environments: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \begin{document} ...
4
votes
1answer
220 views

How to have label displayed on top of arrows in tikz

I have this tikz figure: \begin{figure} \centering \begin{tikzpicture}[start chain=going right,>=latex,node distance=0pt] \node[draw,rectangle,on chain,minimum size=1cm] (rr) {$I$}; ...
2
votes
1answer
180 views

TikZ: double line: rasterisation issue

I have some issues with the following code: \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset{every matrix/.style={matrix of math nodes,row sep=3.5em,column ...
6
votes
2answers
179 views

How to align these tqft cobordisms?

I find placement and alignment with the otherwise great tqft package irksome. I'm trying to align several cobordisms in a tikz matrix: \documentclass{article} \usepackage{tikz} \usepackage{tqft} ...
2
votes
1answer
366 views

Alternative for tikz's scope environment outside tikzpicture

I have a lot of small tikz graphics that I all want to scale down, so I'd like to put them in a scope, like this: \documentclass{article} \usepackage{tikz} \begin{document} ...
6
votes
1answer
557 views

Tikz diagram: nodes with arrows

I am trying to draw this diagram using tikz, but I am only beginner and have some problems mainly with drawing arrows in this way. I also want nodes with round corners. Anybody can help me?
9
votes
2answers
621 views

create a stacked histogram with tikz

I try to create a stacked histogram. Like this: My data consists of classes (0-4) and a float value for each class. I already have a histogram for all mean values. But I would like to color the ...
3
votes
1answer
185 views

Referencing the contents of lasttikznode, and overlaying them on a node

I am trying to solve How to rotate a composition of Tikz nodes correctly, without rotating the text of their labels?; and I found tikz pgf - Problem with "append after command" and "insert path". ...
3
votes
1answer
112 views

How to give simple label to each connected component of graph

I have a disconnected graph, with six components. I would like to give some name at the bottom for each component. I would like to represent them with $D_1, D_2 . . .D_6$. Can some one help me out. ...
6
votes
1answer
79 views

tikz unwanted space between nodes

The following MWE illustrates the problem: between connectected fill areas is a small gap, where the background will be displayed (see the zoomed in picture with the red marks) ...
2
votes
0answers
2k views

Issues with installing “tikz-cd” and “arrows.meta” [closed]

I have an up-to-date MikTeX 2.9 installation with tikz/pgf 3.0, but trying to compile \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} ...
4
votes
1answer
348 views

Drawing circular arcs on the surface of the sphere

I would like to draw circular arcs on the surface of a sphere to model as atoms intersect a probe atom in a molecule. I attach an example image that I would like to draw with either tikz or asymptote. ...
6
votes
1answer
960 views

Auto word wrapping in a node in TikZ?

I am using TikZ to make a flow chart demonstrating my scheme step by step. I notice that the word wrapping is not automatic in a node. That is, the line can be extremely long across the whole page. ...
10
votes
3answers
404 views

A movie film strip of images

Is it possible to make a movie film strip of embedded PDF images?
5
votes
1answer
284 views

How to rotate a composition of Tikz nodes correctly, without rotating the text of their labels?

I have seen How to allow labels' anchors in TikZ to be affected by rotations without rotating the text itself?; but that question doesn't seem to answer my problem, so here it goes. With the MWE ...
2
votes
0answers
1k views

Package PGF Math Error: Unknown function 'north' (in 'north west') [closed]

I have created the following shape (it has some more features but the error is always the same), based on a rectangle. \pgfdeclareshape{set}{ %Like in rectangle but without all the separators ...
5
votes
3answers
281 views

Dashed lines only for covered boundaries with TQFT

I'm using Andrew Stacey's wonderful TQFT package to create pictures of cobordisms. But I'm having trouble with the boundaries: \documentclass{article} \usepackage{tikz} \usepackage{tqft} ...
3
votes
2answers
329 views

Connecting line calculations with fitting node in 3D tikz?

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{3d} \makeatletter \tikzset{ ...
1
vote
0answers
27 views

Bar graph with groups(inner group bars next to each other) and whitespace between groups including error bars [duplicate]

I tried to replicate a bar graph for the first time and have two problems with the x-axis. Could someone help me? This is the graph i would like to replicate. 1. How do I get a group of bars next to ...
2
votes
1answer
383 views

How to plot a normal curve with proper y-values

Follow-up question to Plotting bell shaped curve in TikZ-PGF I'm new to LaTeX, and I'm typesetting a document for my stats class, and trying to use LaTeX to produce a normal probability distribution. ...
11
votes
3answers
592 views

Drawing a multiscale network in Tikz

I am learning TikZ in this period, but I have some problems drawing some networks for my thesis. I am trying to draw a network in TikZ which should look similar to the one in this picture: I have ...
4
votes
1answer
195 views

Draw string with linking numbers or no linking number?

How can I use LaTex (p.s. I use Mac OS 10.5.8 with TexShop 2.47) to draw strings with linking numbers or no linking numbers? If any experts know any examples below, please feel free to comment. The ...
1
vote
1answer
163 views

tikz-Graph problem

I have the following graph which I defined: \begin{figure} \centering \begin{tikzpicture} [scale=.8,every node/.style={circle,fill=blue!20}] \node (n1) at (1,10) {(D,D)}; \node (n2) at (3,8) ...
2
votes
1answer
160 views

Can't reduce space with \vskip between parts of vertically splitted rectangle

In a multipart rectangle i want to reduce the space between the parts. For a horizontally splitted rectangle i achieved that with an \hskip after the \nodepart command. For a vertically splitted ...
3
votes
0answers
42 views

Is this the expected behavior or am I missing something? [duplicate]

Consider the following simple MWE: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw(0,0) -- (3,3); \pgfmathparse{2+1} \draw[red] (0,0) -- (3,\pgfmathresult); ...
1
vote
0answers
26 views

Adding legends to tikzpicture [duplicate]

I have tikzpicture (with 3 graphs from my data files. I want to add legends to data1, data2 and data3 to my picture, is it possible? \documentclass[english]{article} \usepackage{tikz} ...
4
votes
2answers
166 views

Unable to find the documentation of TikZ/PGF 3.0

After upgrading to the latest version of TikZ/PGF I cannot access, using texdoc, the newer version of the documentation. When I invoke texdoc tikz it tries to open the version that used to reside in: ...
2
votes
1answer
345 views

Making animation of a straight line

How can I make an animation of line y=-3 that rotates by angle $\phi$ and the perpendicular distance from origin to this line. I also need to trace the shape that points of the intersection of the ...
1
vote
0answers
281 views

PGFPLOT Externalization not working [closed]

I am trying to externalize PGF Plot to be saved as EPS file using latex and enabled shell-escape. \documentclass[a4paper]{article} \usepackage{lipsum} \usepackage{tikz} ...
7
votes
2answers
433 views

Tikz : texture cube faces using png image

I would like to draw a cube using Tikz with some faces of the cube having a texture on it (texture would be a PNG image) my current code is at follows : \documentclass{standalone} \usepackage{tikz} ...
4
votes
2answers
401 views

How to draw a TikZ diagram that does not occupy space

I am new to TikZ and I have a trivial question. How to draw a borderless diagram? In other words, I need something that does not displace the text. Similar to the effect achieved with a regular LaTeX ...
7
votes
1answer
622 views

TikZ 3.0---Multiple arguments for `pic`

How do I provide multiple arguments for pic? giraffe contains two arguments for colors, #1 and #2. I would like to be able to provide these as giraffe={pink, yellow} or giraffe={colorA=pink, ...
9
votes
1answer
627 views

Spanning a cell across several rows in TikZ-matrix

Using the matrix-library of TikZ I am producing the following image: \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[auto, node ...
2
votes
2answers
255 views

\usebox with tikz-uml

I would like to be able to reuse components in a state diagram using TikZ-UML. I created a savebox called \giraffe with two components inside and I would like to place these above the initial node and ...
2
votes
1answer
138 views

Exclude certain plot points from smoothing

How do I exclude certain coordinates from being smoothed by the "smooth" option in a PGF plot? How do I avoid that \closedcycle jumps to zero? Here is my example: \documentclass{minimal} ...
7
votes
3answers
4k views

Positioning pgfplots axis in tikzpicture

I want to put a pgfplots plot beside several other pdf images that I import into my document, but I can't figure out how to position the pgfplots axis in the larger tikzpicture: ...
1
vote
1answer
178 views

Absolute positioning in TikZ3

I am also submitting the solution, please, save your time and energy on this Question. My problem is this. The absolute positioning stopped to work in some cases after upgrading TikZ2 to TikZ3. ...
1
vote
2answers
374 views

Loading TikZ3+PSTricks at the same time

I am also posting my solution. Please save your time and energy on this Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and ...
3
votes
2answers
134 views

Strings and Harps to be drawn

I'd like to draw a picture similar to the hand-drawn one below: With labels $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, ...
2
votes
0answers
43 views

Is there an TikZ command to provide the height and width of the picture? [duplicate]

I've found the following How can I compute the distance between two coordinates in TikZ?. So, I know how to find the size of a TikZ picture as follows: \documentclass{article} ...
4
votes
1answer
428 views

How to position in tikz relatively?

I am trying to draw some control diagram with tikz and I have a few questions regarding that: How can be removed the border from the disturbance? How can be left and right position the Cost and ...
1
vote
3answers
187 views

Short cut method to draw multiple dots with label on a curve

Let us consider the following example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.6pt] \draw (1,0)--(20,0); \foreach \x in {1,...,20}{ \draw[fill] (\x,0) ...
5
votes
2answers
230 views

Vertical aligment with tikzpicture

I have a problem with vertical alignment in a tabular environment with tikzpicture. My code so far is: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \begin{document} \begin{tabular}{ccccc} ...
5
votes
2answers
312 views

TikZ and Babel disagree when Hebrew is loaded

As with most things related to LaTeX, when Hebrew (and I assume other RTL languages too) tend to completely break everything. \documentclass[10pt]{article} %\usepackage[utf8x]{inputenc} ...
7
votes
1answer
397 views

Tikz: Correct arrows at the end of parametric curves?

\documentclass[11pt]{amsart} \usepackage{tikz} \begin{document} \begin{tikzpicture} [scale=4] \draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({(1/sqrt(2)*(\t-\t^3)}, ...
8
votes
1answer
504 views

Why do colours defined using CMYK give inconsistent results in TikZ mindmaps?

Background I was trying to draw a mindmap using the tikz mindmap library for possible use in a beamer presentation. The Problem Depending on my choice of colours, the colour of nodes does not ...