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

Smooth out drop shadow at the edge of the graph in pgf-blur

I'd like to smooth out a drop shadow about some specific places below my graph. I can't figure out how to do it, there's no key in the pgf-blur library that allows me to customize the the shadow ...
0
votes
0answers
16 views

Including tikz causes error

I want to include a diagram drawn in Dia using tikz, however when I include the tikz package i get the following error ! Package pgfsys Error: Driver file ``pgfsys-dvipdf.def'' not found... I'm using ...
4
votes
2answers
111 views

How to reproduce these images with Tikz/ pgfplots?

I'm completely new to latex and Tikz, and I'm trying to reproduce these two images: Here's all I've got so far: \documentclass{article} \usepackage{amsmath} \usepackage{pgfplots} ...
0
votes
0answers
34 views

How to make an HTA looking thing?

I am try achieve something along the lines of this: I cannot however figure out how to make these arrows. I have some code that gives me something that is almost right but it is messed up in some ...
2
votes
2answers
57 views

TikZ ER Diagram - stopping relations from drawing across cells

I've adapted code from this post The problem that I'm having is that the relations (lines) between tables are crossing over tables rather than going around them. The MWE is quite long but here it ...
1
vote
1answer
49 views

How to position a TikZ picture?

I have a problem with positioning a TikZ picture. I want to position a half circle, but I don't know how I should do it. \begin{tikzpicture} \draw [domain=0:180] plot ({cos(\x)}, {sin(\x)}); ...
74
votes
11answers
36k views

Good way to make \textcircled numbers?

I'm trying to make some good-looking numbers in a circle, using the simple command: \textcircled{1} However, the circle is misaligned vertically with the number, and look a bit sloppy: Any ...
0
votes
0answers
60 views
+50

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} ...
16
votes
2answers
13k views

Drawing a TikZ arc specifying the center

The TiKz command for an arc: \draw (0,0) arc (-30:30:2) ; Draws an arc that starts at (0,0), and would be the part of the circle from -30 degrees to +30 degrees of radius 2. It is very hard to ...
3
votes
1answer
84 views

In TikZ, what are the coordinates “node” uses to “draw”? (the effects of the difference between “inner sep” and “outer sep”)

I'm trying to duplicate as best as possible a particular flow chart design from a textbook. The following code almost achieves what I want: \documentclass{article} ...
15
votes
2answers
518 views

How to use OGDF library with TikZ 3.0?

I try to compile (via lualatex) the following MWE without success. \documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing} \usegdlibrary{ogdf} \begin{document} \begin{tikzpicture} \graph ...
2
votes
1answer
42 views

Tikz: Curved parallel arrow around a circle [duplicate]

I have a simple following code: \begin{tikzpicture} \draw[thick] (2,0) circle (1.5cm); \end{tikzpicture}` I would like to create a curved parallel naming arrow around this circle as shown in the ...
4
votes
1answer
132 views

how to draw plate indices in graphical model by tikz

I made my Hierarchical model with tikz by following code: ‎‎\documentclass[10pt,a4paper]{article}‎ ‎\usepackage[utf8]{inputenc}‎ ‎\usepackage{amsmath}‎ ‎\usepackage{amsfonts}‎ ‎\usepackage{amssymb}‎ ...
84
votes
5answers
7k views
+200

How can we display fireworks?

Soon we can celebrate the New Year. How can we use TikZ for drawing fireworks? For example like this, photographed by Kurume-Shimin, found on Wikipedia: Click on Image search for getting further ...
3
votes
1answer
41 views

Label distance and other issues in a TikZ diagramm

The following figure computed with tikz includes three imperfectnesses: The math operators plus "+" and minus "-" are defined as labels of the corresponding sum nodes. The signs are drawn too far ...
0
votes
0answers
32 views

Are tickz and pstricks in conflict? [duplicate]

I do not know why, but it seem that the tikz and pstriks packages are in conflict. Using both \usepackage{tikz} \uspepackage[usenames,dvipsnames]{pstricks} When compiling, it returns me the ...
165
votes
12answers
25k views

How can we draw a Christmas tree with decorations, using TikZ?

I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree: \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
43 views

Add text on arrow in flowchart

Followup-question of Drawing arrows from different edges of node/decision box The problem I have seems pretty simple, but I wasn't able to find a solution in the archives or elsewhere. The output ...
6
votes
1answer
69 views

Style with 'transparency group'

Can we define a style telling "put all arrows on the same transparency group as the path" ? In the following example, I would like to redefine ephemeral style such that the blue and the red arrows ...
0
votes
0answers
42 views

How to center the subfigure

I use the subfigure to put two figures together, however they are not centered. Below is my code: \documentclass[10pt]{IEEEtran} \usepackage{tikz} \usetikzlibrary{ shapes.geometric, ...
2
votes
1answer
214 views

Externalize TikZ with TeXstudio and MikTeX

I have the same problem as written here before, but the externalization doesn't work. I always get the following message: tikz: Sorry, the system call 'pdflatex -halt-on-error -interact I try to ...
1
vote
0answers
63 views

Tikz library math

Following the answer of this question I tried to run the code proposed by Mark in the third "code window". What I obtain is: I can't find file `tikzlibrarymath.code.tex' Runninig the terminal ...
1
vote
1answer
54 views

2 histograms with common x-axis are not aligned

I have to following latex code: \usepackage{tikz} \usepackage{pgfopts} \usepackage{pgfplotstable} \begin{document} \begin{tikzpicture}[scale=1] \begin{axis}[minor tick num=1, scale only ...
2
votes
1answer
39 views

Drawing arrows from different edges of node/decision box

I'm new to tikz and don't understand how to draw lines originating from all edges of a decision box to other nodes. In the diagram below , how can I specify the originating point of an arrow? For e.g ...
5
votes
3answers
112 views

Define stretchable shading

I would like to define horizontal shading, that could be stretched depending on needs. What I did to far is this \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
62 views

TikZ: ordinary arrow tip on double line

I like the ordinary arrow tip that you get in TikZ from \draw [->] (a) to (b);. In my document I have lots of ordinary lines like this, and also lots of doubled lines like \draw [double,->] (c) ...
3
votes
2answers
153 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
2answers
69 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 ...
1
vote
2answers
111 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 ...
3
votes
1answer
96 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
66 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
98 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
138 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
123 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
60 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] ...
1
vote
1answer
41 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
108 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
63 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
58 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
109 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
718 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
135 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
57 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
43 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
83 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
103 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
108 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
151 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
207 views

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 ...