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)

0
votes
0answers
25 views

custom table of contents using tikz and tocloft

I have using tocloft and tikz for creating custom table of contents. Please find the my MWE below: \documentclass{book} \usepackage{tocloft,refcount} \usepackage[colorlinks,linkcolor=black]{hyperref} ...
1
vote
2answers
60 views

Replacing tree-dvips, connect nodes in a tabular environment

I want to get rid of tree-dvips since it is not compatible with xelatex and ps-tricks since it does not compile efficiently with xelatex. I have the following figures: They were typeset by using ...
0
votes
2answers
106 views

Keepaspectratio option for tikz picture

In my current document I have both pictures from file and tikz pictures. For the output I use both, landscape (for screen reading) and portrait (for print). For pictures loaded from file i use the ...
2
votes
1answer
54 views

Arithmetic in tikz coordinates (parentheses)

I want to use parentheses in coordinate calculation in tikz. There should be a simple way, but I couldn't find it. For example, \def\x{10}; \draw (0,0) -- (1+1/\x,0); this works fine. But, ...
5
votes
1answer
58 views

pgf path decoration with corners awareness

I try to create pgf decoration that will be able to tell in each segment whether the its start is a sharp corner on the input path, but I can't figure how to do this. Take for example the following ...
95
votes
9answers
9k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
-1
votes
0answers
67 views

How to create this type of logo in latex? [on hold]

Dear friends, How to create this type of logo in latex kindly help me. (Inside hexagons put images or letters)
2
votes
3answers
125 views

Random non erratic domain in tikz

Is there a way to draw something like this In tikz, without being overly erratic like Drawing random paths in TikZ ?
5
votes
3answers
109 views

Horizontal - Vertical connectors in a tree (in place of slanted lines)

Here is the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
1
vote
1answer
53 views

Parametric tikzset style with argument

I am working on a way to curtomize @percusse from Simulating hand-drawn lines to make it parametric. My idea is to have something like: \draw[penciline={jag ratio=2},decorate,thick] ...
2
votes
1answer
121 views

Ideas for high-level data structure visualization?

I want to create a (graphical) representation for a custom HL7 v2 message structure. In this scenario, I'm only concerned with the high-level message structure - the arrangement and usage of the ...
1
vote
1answer
33 views

Clipping only the bottom of a graph in pgfplots/tikz?

Is it possible to clip only the bottom of a graph? I have a graph with a node above the area of it; when clipping over the entire thing is enabled, the node is cut away. However, no clipping means the ...
5
votes
2answers
107 views

Label above node in TikZ

I wish to add a label above a node that already contains a label. \begin{tikzpicture}[scale=0.8,every node/.style={draw=black,circle}] \node (a) at (0,0) {a}; \node (b) at (2,0) {b}; ...
0
votes
1answer
62 views

Array with arrows and a cell outside

I want to draw the array in the picture with a cell outside, the arrows, the border and some cells coloured. Could you please tell me how?
4
votes
2answers
52 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
0
votes
0answers
93 views

Examples to convince people Tikz is simply awesome!

During todays lunch break, we got into a little argument about why Tikz is more awesome than other "drawing" software (illustrator, visio, omnigraffle, but also 3d). Unfortunately, me and my ...
5
votes
1answer
705 views

What exactly does `inner sep` mean when node shape is circle

inner sep is not behaving as I would expect: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] \coordinate (P1) ...
2
votes
2answers
130 views

Drawing scaled triangles with their bottom left corner at the same coordinates in TikZ

You'd figure that I failed trig class as for the life of me I cannot figure how to originate all scaled triangles from the same point. If polygon had an option to move base point from center to bottom ...
1
vote
3answers
51 views

I want to draw a dot / small sphere in a TikZ 3D Plot

I got a 3d coordinate system and I want to mark a point with a dot. \begin{tikzpicture}[x = {(0.866cm,0.5cm)}, y={(0cm,1cm)}, z={(0.866cm,-0.5cm)},] \draw[thick,->] (-15,0,0) -- (15,0,0) ...
0
votes
0answers
39 views

How to control the size of the figure?

Without using the include graphic, placing directly within the text a design using TikZ, you can control the size of the figure?
5
votes
1answer
80 views

Logarithmic bar plot

I'm currently trying to create a diagram, with a logarithmic scale on y axis. This mostly works, except that the value of nodes near coords is wrong. Without ymode=log it shows e.g. 20551 as label. ...
6
votes
4answers
96 views

Incomprehensible behaviour of calc library with a “foreach variable”

If I compile the following code : \documentclass[12pt]{article} \usepackage[french]{babel} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \i in ...
8
votes
0answers
97 views

3d cube with a surface

I want to draw a unit shell showing the arrangement of the atoms as shown here. (Zumdahl, Chemical Principles, 5ed., Houghton Mifflin, p. 773.) I've come up with the following code that draws the ...
4
votes
3answers
150 views

Nodes not printed on x-axis

The following code instructs TikZ to draw the graph described by the equation y=\frac{\sqrt{x^{2}-25}}{\sqrt{x-5}}. (This graph looks like y=\sqrt{x+5}.) I specifically want two numbers, -5 and 5, on ...
13
votes
1answer
197 views
+50

tilted planes as scopes

I am trying to rebuild the following 3D graphic with TikZ. Exact resemblance is not required, and I have actually decided to change the geometry and style a bit to increase the clarity of the ...
3
votes
1answer
53 views

create new TikZ key with code and style tags

Assume I want to perform a complicated calculation within a TikZ key defintion. What is the recommended way to do this? Reading through the manual and digging around in other questions led me to ...
-1
votes
1answer
63 views

Reproducing image of text boxes in a cycle using TikZ

I'm looking for a way to create a loop of text boxes such as the one below. I tried creating the image myself, however I couldn't find a way to place the arrow heads ontop of the circle, the circle ...
1
vote
2answers
93 views

Draw connections between elements in logical circuits with tikzpicture

Could anyone help with making the logical circuit prettier. If you build the example, you'll see that the connections between elements look ugly. \begin{tikzpicture}[circuit logic US] \draw (0,0) ...
2
votes
3answers
100 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} ...
10
votes
1answer
90 views

Rotating tikzpicture messes up intersections

I'm working on a picture using TikZ and I'm using intersections to draw some points (the $α(t_{j+i}$). I saw that the picture would fit better into the page if I rescaled it and rotated 90 degrees, ...
2
votes
2answers
35 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
2
votes
0answers
51 views

! Dimension too large in pgf

I have no familiarity with TEX, PGF, etc -- but somebody was kind enough to offer me code to produce something I'd like to use. Unfortunately, I get a Dimension too large error when I run the ...
5
votes
2answers
131 views

Nodes on arrows not aligned nicely

I've written the LaTeX for an automaton that looks like this: As you can see, the 'b' on the arrow from q1 to q3 is positioned lower than the 'a, b, c' on the arrow from q3 to q2. Also, the 'b' ...
12
votes
2answers
249 views

Defining a vector of variables in Tikz

I have the following animation in beamer: with the following code (probably not optimal): \documentclass{beamer} \usepackage{tikz} \usepackage{multimedia} \begin{document} ...
6
votes
1answer
77 views

PGFplots: How to add a legend to “superimposed” plots

I have "superimposed" different plots on the same graph (i.e., I have two axises environments in one tikzpicture environment.) Now I would like to add a single legend for both of the plots and ...
6
votes
1answer
321 views

How to declare variable sizes in tikz to let LaTeX decide how to fill the page

LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
5
votes
1answer
50 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...
8
votes
1answer
549 views

Scale .pgf image but preserve font size

Using Matplotlib, I generated a .pgf image. import matplotlib matplotlib.rcParams.update({"pgf.texsystem": "pdflatex"}) from matplotlib.pyplot import subplots, show from numpy import linspace x = ...
14
votes
1answer
262 views
+100

How to draw points in TikZ?

Very often we need to draw points. Every one of us has it's favorite method to do this. What is yours ? Do you use nodes, pics, marks, ... ? In a style ? Some backgrounds In the tikz/pgf manual ...
1
vote
1answer
34 views

absolute positioning of tikzpicture in memoir

I need to position some graphic using some graphic material in the upper left corner of the stock (page is smaller). Consider the following example: \documentclass[a3paper,showtrims]{memoir} ...
3
votes
1answer
45 views

Trouble with directing lines between elements with tikz

In the following code, I would like to draw a line from the last diamond to the topmost diamond as shown in the ascii-art below /\ |---/ \ /\ | \ ...
13
votes
2answers
242 views

Define decoration with cloud shapes to resemble smoke

I want to create a decoration that would decorate a path with gray transparent clouds with random shifts, random number of puffs and scaling size. The idea is that it should look like smoke coming up. ...
1
vote
3answers
688 views

Technical Drawing Using LaTeX

I wanted to draw this particular image in LaTeX but I don't know where to start: I have no minimal working example I am just asking for directions please don't ridicule me.
6
votes
2answers
132 views

Drawing knots with tikz - no visible crossings

I'm trying to draw some knots with tikz. I've got this far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{knots} \begin{document} $\begin{tikzpicture}[domain=-2:2, scale=0.3] \begin{knot} ...
2
votes
0answers
56 views

“There is no p in font nullfont” when drawing arrow [on hold]

I have studied that problem on Internet and I still cannot the solution to the following warning. In .log file I get 20 times Missing character: There is no p in font nullfont! Missing character: ...
1
vote
1answer
49 views

circuit buffer input with inverted bubble

The related question Circuitikz inverter bubble shows how to invert an input on an AND gate. How can I do this on a buffer gate? (rightward facing triangle) I can't seem to find the documentation. I ...
8
votes
2answers
194 views

TikZ plot dealing with infinities

I have a couple of problems while drawing a picture with TikZ. The picture I would like to obtain is like the following: . Here is my code: \documentclass[10pt]{article} \usepackage{pgf,tikz} ...
0
votes
1answer
92 views

Technical Drawing Fill

So far I have my drawing like this: Having this code: \documentclass[14pt,letterpaper]{report} \input{Preamble} \begin{document} \begin{tikzpicture} \draw[double,double distance=5mm] (0,0) ...
5
votes
1answer
510 views

Why do I need to wait about 30 seconds or more to generate a new set of questions in this code?

This is a follow-up question to this question: Generate exam from a question bank? In the following code by @Werner, I am curious to know why do I need to wait about 30 seconds or more to ...
3
votes
2answers
79 views

Underline with arrowhead using tikz

I would like to underline a math object with an arrowhead (from tikz) without adding extra space to the line skip, like so The object C has an underline with an arrowhead → from tikz. The ...