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
173 views

Using “fit” in block diagram [closed]

I was trying to surround two nodes in a dotted box, but nothing appears. Here is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes, arrows, fit} \begin{document} ...
13
votes
3answers
1k views

Spherical triangles and great circles [duplicate]

I want to draw an image of a non-shaded sphere (just a circular border) with three intersecting great circles that are solid on the visible side and dashed on the back side. Further I want to be able ...
3
votes
1answer
350 views

Extra blank page while designing front cover with tikz

I’m trying to design the front cover of a book with tikz package. The following is my latex code: \documentclass[b5paper,11pt]{article} \usepackage{geometry} \usepackage{tikz} \begin{document} ...
5
votes
4answers
651 views

Adjusting a block diagram

I created a block diagram but I don't know how to adjust some of the distances. \documentclass[tikz, convert = false]{standalone} \usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx % Euler ...
2
votes
2answers
394 views

How can I draw a 3D, three-sided 5-7-9 triangle with TikZ or PSTricks?

I want to draw a triangle with three sides 5, 7, 9 and its incircle in geometry 3D. I used GeospacW. I tried Draw a circle (T) has center origin and has radius r=15/sqrt(11). Take a point A on (T) ...
4
votes
1answer
172 views

Pass an integer value to TikZ in LuaLaTeX

I want to draw a rectangle with \luacode. For rectangle points, the coordinates values will be taken from code. I try the following code. For rectangle, points are defined as '(0,0) and (1,1). But i ...
2
votes
1answer
678 views

Tikzpicture: Line break in node label to right [duplicate]

How can I introduce a line break into the labels of the end nodes in the following MWE? The Tikzpicture will include the line breaks if I remove the label=right: part and just leave label=' but that ...
3
votes
2answers
348 views

TikZ, PGFPlots, or GNUplot: plotting a curve without the known function

I would like to make a plot of a function that has an overshoot of 25% and then settles with subtle oscillations at 100%. I would like to create it in one of the listed packages or in gnus case add ...
4
votes
1answer
468 views

Tikz diagram: subnodes

I am trying to draw this diagram using tikz, but I am just a begginer and cant find out how to draw small nodes in those bigger. Anybody experienced in this? Text in image are not important, only ...
2
votes
2answers
270 views

how to put a node below another in a chain

I have the following chain: \begin{tikzpicture}[start chain=going right,>=latex,node distance=0pt] \node[draw,rectangle,on chain,minimum size=1cm] (rr) {$I$}; \node[draw,rectangle,on ...
4
votes
2answers
486 views

Plotting greatest integer function (floor)

How can one plot y=1/floor(1/x) in pstricks? where floor is the greatest integer function. i.e. floor(2.5)=2 and floor(-0.5)=-1. I need to generate something like what I generated in sage: But I ...
4
votes
1answer
6k views

Starting point of arrows in tikzpicture

I am new to drawing a block diagram using tikzpicture. The following MWE \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \usepackage{tikz} ...
4
votes
1answer
845 views

Valve and pump symbol using TikZ

I'm wondering if there is a library for the pump and the valve symbol. I want to draw the following schematics using TikZ. using something like this: \documentclass{standalone} ...
5
votes
1answer
71 views

Fill a path but drawing just a part of it at the same time

I want to fill the angular sector and just draw the curve part of it in one command. I tried with move to command but it doesn't work. \documentclass[tikz,10pt]{standalone} \usetikzlibrary{calc} ...
8
votes
1answer
160 views

Dynamic coordinate name

The following works fine: \documentclass[a4paper]{memoir} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (fs-1-2-ne) at (7,8); \node at (fs-1-2-ne) {Hello}; \end{tikzpicture} ...
0
votes
1answer
794 views

borders around page using pgfornament [closed]

EDITED: I know this example ornaments in pgfornament to be at the corners at every page but how to add ornament in horizontal and vertical/top bottom /? I need this only on titlepage of memoir class. ...
18
votes
4answers
952 views

Plot to illustrate secant lines

I am trying for teaching purpose to explain how basically linear regression might work and how it could be extended. Since I am not the TeXpert I fear that my idea might be tricky and more difficult ...
1
vote
0answers
158 views

Issue with `pgflibrary` and MiKTeX

After reading "Tikz shape similar to rectangle with selective drawing of borders," I tried to compile the following code: \documentclass[tikz]{standalone} \usetikzlibrary{chains} ...
9
votes
2answers
256 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
351 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
561 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
179 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
178 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
365 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
553 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
618 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
183 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
346 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
956 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
403 views

A movie film strip of images

Is it possible to make a movie film strip of embedded PDF images?
5
votes
1answer
281 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
278 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
327 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
382 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
590 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
194 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
165 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
344 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 ...