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)

5
votes
1answer
123 views

How can I get the borders of contiguous nodes to perfectly overlap?

Why aren't the vertical borders of my nodes overlapping, as the horizontal ones do? How can I force them to overlap (thereby preventing the vertical lines between nodes from looking stronger) and ...
14
votes
1answer
238 views

Expanding a Tikz rectangle to fill remaining text width

I would like to place a shaded rectangle between the left and right footers, which fills the space in-between. The left footer can be of variable width, so I would like the rectangle to automatically ...
9
votes
2answers
108 views

pgfplots 3d cylindrical coordinate system

I am trying to plot a cylindrical coordinate system using pgfplots. The idea would be to plot the r,theta plane similar to what polaraxis provides, see here. I don't know how to translate something ...
2
votes
0answers
89 views

Creating and importing custom tikz symbol

I created a custom symbol switch and I wanted to include it in my block diagram, by using the node command but it failed (compile error). Here is what I did: \documentclass{article} ...
7
votes
3answers
163 views

How to arbitrarily center these drawings?

I have adapted the following to draw lines from the center of a circle out to n equally spaced points on a circle (the n th roots of unity, or the points of an n-gon, or a star graph). I need to be ...
7
votes
1answer
173 views

How to retrieve color from a specific location and use it?

Please save your time and energy on this question, this is not an important one. What's the color in the middle (or anywhere else) in these pictures? How to retrieve/compute that color to be ...
0
votes
1answer
62 views

Problems labeling an arrow

Having this in the preamble: \usepackage{tikz} \usetikzlibrary{chains,shapes.multipart} \usetikzlibrary{scopes} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes,calc} ...
3
votes
2answers
109 views

Arrow indicating cycle between two pictures using TikZ — missing arrowheads

I'm trying to draw two arrows that should indicate that a neural network cycles between two states. Following the tutorial for the Petri net, I used pgfonlayer, fit and a scope to align two networks ...
2
votes
0answers
51 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} ...
12
votes
3answers
516 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
87 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
3answers
103 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
188 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
75 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
58 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
134 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 ...
1
vote
1answer
105 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
52 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
213 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 ...
2
votes
1answer
111 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
180 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
56 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
91 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
73 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. ...
5
votes
4answers
312 views

Plot to illustrate linear regression

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
60 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} ...
8
votes
2answers
111 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
0answers
49 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
1answer
121 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 ...
4
votes
1answer
70 views

Multi server queuing system using tikz

I need to have the server of this system \usepackage{graphicx} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsmath} \usepackage{amsthm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...
3
votes
2answers
185 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
54 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$}; ...
1
vote
1answer
64 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
91 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
71 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
90 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
165 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
55 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
53 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
51 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
86 views

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

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
97 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
89 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. ...
8
votes
3answers
184 views

A movie film strip of images

Is it possible to make a movie film strip of embedded PDF images?
4
votes
1answer
98 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
50 views

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

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
108 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
78 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
22 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
104 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. ...