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)

1
vote
1answer
498 views

Chemfig, TikZ, circle diagram

I have a problem with drawing such a complex diagram in using Chemfig (a picture of diagram should be attached) . The Chemfig manual describes how to draw curved and U-type arrows but all my attempts ...
13
votes
1answer
885 views

How can one put a marker to every page in a chapter?

I am trying to create some sort of tabbing for a template am designing. I want the title page to have the colors of the chapters and then all of the pages within a chapter to have a marking as shown ...
5
votes
3answers
7k views

How do I draw a graph in tikz where the vertices are only represented by the label names?

Right now, what I have is \documentclass[11pt]{article} \usepackage{tikz} \usepackage{tkz-graph} \tikzstyle{vertex}=[circle, draw, inner sep=0pt, minimum size=6pt] \newcommand{\vertex}{\node[vertex]} ...
5
votes
2answers
440 views

Avoiding repositioning of minipages when moving overlayed tikzpictures

I'm fairly new to Beamer and stuck with this problem of two tikzpictures lying above two minipages. i want tikz1 to be displayed on slide 2 of the frame and tikz2 on the next slide (3). However they ...
8
votes
1answer
2k views

Define error bar color in scatter class

I'm using scatter/classes to define color and markers for a plot, and I would like to specify the error bar color this way as well (to match the marker color). I have seen the error bar colors in ...
4
votes
3answers
444 views

Drawing a grid on array of images

I have nice story to tell with pictures. There Maltese type cross which is processing and twisting at the same time. So to make it more visual in paper i need grid something like this Drawing on an ...
15
votes
1answer
286 views

Confused at + and ++ in TikZ

I can't seem to figure out the difference between + and ++ relative coordinates in TikZ. I understand ++. ++ specifies delta coordinates that are added to the last current point, the current point ...
1
vote
1answer
383 views

Set xstep and ystep pgfplots

I have this MWE. My question is how can set xsep and ystep in the axis so that they will properly appear, and without have to know in prior the range of values: xtick={0,0.1,...,1}, ytick={80,85,...,...
4
votes
1answer
1k views

How can I add a big arrow?

I currently have this (done with LaTeX): and I want to get this (done with OpenOffice): How can I get those big arrows? The complete document is here, the part in the pictures is: \...
2
votes
1answer
472 views

Underline multicolumns in tikz matrix

In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): MWE from this question: \documentclass{standalone} \...
4
votes
1answer
841 views

UML Statediagram

I am trying to draw a UML statediagram with TikZ. I tried tikz-uml, but I was not satisfied with the way it handles the state nodes. While I love TikZ for its versatile placement options of nodes (...
4
votes
2answers
607 views

Different Results for distance by sqrt and veclen

I'm trying a simple task of drawing a tangent to a circle. While I already succeded with the tangent cs option, I also want to use the library calc for the exact intersection points. I simply start ...
3
votes
2answers
481 views

Curvy arrow with TikZ

Can you show me how to draw this with TikZ?
6
votes
1answer
1k views

Code improvement and suggestions in template

Consider the following MWE: \documentclass[12pt,twoside,letterpaper]{report} \usepackage[text={4.95in,7.5in},centering,bottom=1.5in,showframe]{geometry} \usepackage[dvipsnames]{xcolor} \usepackage{...
7
votes
5answers
2k views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?
17
votes
7answers
6k views

How to draw a square wave?

Everything is in the title... I'm trying to draw a simple square wave , but I'm reading that tikz cannot draw the vertical line of the discontinuity... Is there a way to overpass this ? PSTricks ...
3
votes
1answer
2k views

pgfplots grouped bar chart from file

I am trying to create a grouped bar chart with pgfplots from a file that contains a data table. However in the resulting picture the bars are not grouped but on top of each other. Every working ...
2
votes
0answers
53 views

X-Y plot with variable diameter points [duplicate]

I want to draw an X-Y plot where each point has a kind of "third dimensional" value that I want to represent using different points "size" (points are circles with different diameters). I already ...
22
votes
2answers
1k views

Heatmap over country like Google Map

Is there a way to make a map similar to Google Map heatmap/marker cluster? I know that I can put in a picture, but I just want to make sure whether there is any alternative in LaTeX.
8
votes
2answers
570 views

Drawing iterations of a recursive structure in TikZ / using node names defined in a loop

This is my first time using TikZ, and I'm trying to draw something related to the Hilbert space-filling curve, based on a recent popular article (HTML, PDF). Specifically, I'm trying to draw the first ...
11
votes
2answers
522 views

Successively reveal tree bottom up

I am trying build a tree bottom up in a beamer document, i.e. to draw it on screen starting from the most deeply embedded leaves. I've found a lot of Q&As and discussions on how to have trees ...
4
votes
2answers
409 views

Scaling tikz-cd labels

I'd like to scale a custom symbol drawn in tikz, such that it's the same size as surrounding text in a tikz-cd diagram. For example, in the following code I'd like the box to the left of A_2 to be ...
7
votes
2answers
687 views

Resetting numerical labels in \foreach commands on a numberline

I am looking to create quick number lines. What I have so far is this: \documentclass[letterpaper,12pt]{book} \usepackage{tikz} \usetikzlibrary{shapes,snakes,backgrounds,arrows} \begin{document} \...
2
votes
3answers
188 views

Grouping two lines inside align environment to put smth. to the left of them

I have an equation which is alligned at 1st equal sign like this: \begin{align} a &= b + c \nonumber\\ d &= e + f \label{eq1}\\ %this is row 1 g &= h + i \nonumber\\ %this is ...
2
votes
1answer
184 views

tikz, how manipulate with a series of nodes as one object

This code draws sequence of words, each word in a separate block. I want to manipulate it as one block. For example, how can I get next picture? (I want to add $\rho$ in front of it). \...
10
votes
2answers
907 views

Fill the area enclosed by multiple functions in a single plot

I wish to fill the area enclosed by four functions, as indicated by the hatching in red in the figure below: So far I've been able to fill the area between each pair of functions, as shown below: ...
3
votes
1answer
1k views

How to adjust or move the labels of arrows in tikz matrix of math nodes

I am trying to label crossing arrows in my tikz-matrix diagram. By default, the label is placed half-way of the path. Since the arrows cross half-way too, the labelling becomes ambiguous: How can I ...
3
votes
1answer
576 views

tikz, modify code for drawing DNA sequence

I need to modify how to draw DNA sequences. There is a function \DNASequence which does the job. It uses nodes of constant size. However, I need to put arbitrary text instead of only one letter in a ...
12
votes
3answers
860 views

How to insert a linebreak in a TikZ matrix node?

How can I get a linebreak inside a matrix node? The following gives the error: Package tikz Error: Giving up on this path. Did you forget a semicolon?. unless I remove the linebreak. \...
4
votes
3answers
527 views

Tikz, how to make underline brace

How can I make underline brace for part of formula y+z in a tikzpicture below? I am aware of underbrace in math mode, but I want the brace be outside of a revblock. \begin{tikzpicture} [revblock/....
8
votes
1answer
206 views

Integer related issue in the domain of a function. It works with 1.0 but not with 1

I write a little script to draw a line with a Gaussian pulse. I define some commands (\verticalSpace, \HorizontalSpace and so on) to parametrize the figure. In particular, I define \length to set a ...
5
votes
2answers
6k views

drawing a line in polar coordinates

I have a point in polar coordinates (110:2cm), but from here I want to draw a line straight down. Doing (110:1cm) is a line towards the center along 110 degrees. Without taking 2*sin(110) and 2*cos(...
3
votes
1answer
637 views

How to draw a diagram with boxes of text inside each other and have them laid out automatically?

How do I make a diagram of the following structure where each element is a box with text and possibly sub-elements. Here is an example of the desired structure. The sizes and alignment of the boxes ...
3
votes
2answers
1k views

How could I center the text in a rectangle split node?

I use TikZ to create pictures in LaTeX. My picture consists of a rectangle with nine split parts. Every part has its own text inside the node, for example, "local variables, and temporaries": \...
8
votes
1answer
632 views

Align pinned nodes in PGFplots

I'm working with plots generated from matlab2tikz and I have several plot lines close to each other. Labeling them is proving difficult, but I believe a good looking solution could be to list the ...
2
votes
0answers
934 views

Why can I compile a tikzpicture perfectly in one chapter but not in another? [closed]

I am having trouble with including a tikz flow chart in my code. In my preamble I have included \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{shapes,arrows} and this is the flow chart: \...
40
votes
1answer
1k views

Table in the shape of an arrow

Is it possible (and not too difficult) to draw a table in the shape of an arrow? I think it's best explained giving an example: I'd like to draw a table almost exactly like this. However, the 2nd, ...
11
votes
4answers
598 views

Curved arrow describing a step in a mathematical derivation

Is it possible to achieve something like this in LaTeX? I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
26
votes
4answers
1k views

Can fuzzy borders be added to external pictures programmatically?

In my opinion, external pictures are often more pleasing to the eye on a white background when they have fuzzy rather than "sharp" borders. For instance, compare this to that Adding fuzzy ...
1
vote
0answers
109 views

Issue with PGFPlots text [closed]

I'm trying to generate some plots using TikZ, with the following code: It's not about babel, fontenc, or inputenc; I've tried removing them to no avail. \documentclass[a4paper]{article} \usepackage{...
6
votes
2answers
676 views

Scaling the sieve of Eratosthenes in TikZ

Consider the following code, taken from Alain Matthes' answer here. Code \documentclass{article} \usepackage{tikz} \makeatletter \pgfutil@ifundefined{pgfmath@function@isprime}{% \newif\ifpgf@...
3
votes
2answers
2k views

TikZ picture positioning in landscape

I wrote a large game tree (using automata package) and need to display it in landscape mode. I already tried to use both textpos and geometry (newgeometry command) packages but without any positive ...
11
votes
1answer
2k views

Computing value using pgfmath for use in coordinates?

Why can't I use the outcome of using pgfmath in a TikZ coordinate? Here is a (minimal) example that does not work: \documentclass[11pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}...
9
votes
1answer
596 views

Connecting nodes with brace in TikZ

How would be possible to put a brace instead of a "line" connecting nodes and add some text above it with TikZ?
2
votes
1answer
647 views

coordinates, nodes and arrows in tikz

I like the idea of defining a bunch of coordinates and then creating the desired diagram from them, but now I have the following problem. The MWE below demonstrates it: the arrows connecting the two ...
3
votes
2answers
709 views

LaTeX - PGF groupplot - polar axis

I can't find the answer anywhere, is it [and how] possible to make a group plot of multiple polar graphs? For grouping, I use pgf.groupplot library, for polar axis, I use \begin{polaraxis} from pgf ...
3
votes
2answers
1k views

Contour integrals

I checked this post in here Drawing complex integration but what I want is draw the one that exclude zero and negative real numbers instead of positives. I tried to play around with the code in the ...
14
votes
3answers
1k views

Drawing a 3D cone

I want to create some thing like this , but instead of a box, I use another object (a dog silhouette). Here is what I have so far \begin{tikzpicture} \begin{scope}[scale=0.25, xshift=70, yshift=...
7
votes
1answer
3k views

Change TikZ nodes color to grayscale

Say you have some code like this: \documentclass{standalone} \usepackage{tikz} % \PassOptionsToPackage{monochrome}{xcolor} \begin{document} \begin{tikzpicture} % \selectcolormodel{gray} \node[...
1
vote
1answer
177 views

How to set the distance between to subfigures each with a tikz-pic inside?

My code is as follows. I want to increase the distance between the two diagrams: \PassOptionsToPackage{usenames,dvipsnames,svgnames,table}{xcolor} \documentclass [11pt,a4paper] {article} \usepackage{...