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)

3
votes
1answer
130 views

How insert tikz picture in to beamer?

I have that picture \documentclass[12pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \begin{center} \begin{tikzpicture}[line cap=round,line ...
3
votes
3answers
259 views

Plotting y=exp^(-x^2)

I am having difficulty plotting this graph using Tikz. I get Dimension Too Large error. The code I have generated via Geogebra is: \begin{tikzpicture}[line cap=round,line join=round,>=triangle ...
2
votes
0answers
540 views

Special decoration for TikZ pin feature

I try to achieve the curvy pin style I sketched below. It would help to distinguish pin lines from grid and other lines in the diagram. How can I realize a decoration that automatically draws such ...
1
vote
2answers
869 views

Latex code for power electronic inverters

I need a code so as to get following circuit diagrams.
7
votes
1answer
925 views

Magnify text using spy library

I have this information generated using tikz code. I want to magnify some part of the text using the spy tikzlibrary, but I am unable to do it. I want to magnify this part of the whole text 4.96 ...
9
votes
3answers
170 views

Generating a table based on a list and a number of columns

Sometimes a table is used to compact a large number of items. Example: a b c d e f g h j k l Instead of listing all items separately. We want to define a command that eases the implementation of ...
3
votes
1answer
155 views

Usage of algorithm inside animateinline creates unexplainable offset

Update: Using pgfmathsetmacro in combination with an actual function, inside tikzpicture seems to be the issue. Some of the white space can be circumvented by the usage of \relax inside ...
7
votes
1answer
805 views

tikz: Better raised text effect

If you look carefully at the raised text in this image, you can see that it has two drop shadows: as well as the black one to the southeast of the text, there is a white one to the northwest. I know ...
6
votes
1answer
182 views

Resetting text width in a nested tikzpicture

I'm nesting a tikzpicture inside a tikzpicture, and having problems with the 'text width' parameter leaking through from the outer tikzpicture to the inner. (The nesting is pretty much unavoidable -- ...
2
votes
1answer
975 views

Use array in loop in tikz

In general: I need to retrieve values from an array to submit those values as indices to a function. More specific: I want to create figures, which contain subfigures. These subfigures are loaded ...
2
votes
0answers
172 views

polar chart heat map

I was wondering if anyone could help me with making a polar heat map. To the template i chosen is http://www.texample.net/tikz/examples/polar-coordinates-template/ what i would like to do is to colour ...
5
votes
2answers
340 views

Coloured box with tikz

I'd like to break a coloured box when the page which contains it breaks... here is an example which shows this issue: \documentclass[11pt]{report} \usepackage[explicit]{titlesec} ...
4
votes
3answers
2k views

Tikz - Drawing Shift Arrow

I am trying to draw a shift arrow from one point to the next, but it doesn't seem to work. Here is my code: \begin{tikzpicture} %Axis \draw [<->] (0,5) node (yaxis) [left] {$P$} -- (0,0) ...
6
votes
0answers
690 views

What is a good BPMN tool in Tikz

I'm looking for a nice package (or tool) to write BPMN diagrams directly into my documents. However, I had no luck so far. I found several tools that may help doing the diagrams, and then exporting ...
4
votes
2answers
211 views

Circular ends of lines and positioning of nodes?

I am trying to replicate the following image: My work so far: \documentclass{article} %%for graphs \usepackage{tikz} \usetikzlibrary{calc} \usepackage{pgfplots} \pgfplotsset{compat=1.10} ...
5
votes
1answer
169 views

Labeling Plots?

I haven't been able to find anything on this after searching for a while, so I apologize if this is a duplicate. I need to replicate the following image: Here's what I've got so far: ...
1
vote
2answers
56 views

How to avoid a portion of an edge, drawn in parallel to the node box?

In the MWE below there is a horisontal portion of the blue nodes' edge, that is adjasent to the node box and visible at higher zoom. Is it possible to avoid that by changing a path or anchor? Shawn ...
2
votes
1answer
165 views

Proper syntax for z-levels inside Forest

After reading "Z-level" in TikZ I tried to implement z-layers in my Forest chart, but unsuccessfully: \documentclass{standalone} \usepackage{forest} \usetikzlibrary{backgrounds} ...
1
vote
2answers
435 views

Bar from bar chart without value

I would like to add a single bar to my chart, but without any value. Unfortunately when I skip adding proper value with label x in coordinates, it (bar with label x) disappears from chart. ...
2
votes
0answers
479 views

pgfkeys: I do not know the key '/tikz/triangle 60'

Here I am back again with a new question. I try to make a poster with beamerposter. Now I would like to draw a arrow with tikz, but I get this error message pgfkeys: I do not know the key ...
6
votes
1answer
257 views

How can I finish this about LTE diagram using filldraw rectangle

This is an picture from 3GPP "LTE Resource Guide" called {LTE Uplink Subframe with Normal Cyclic Prefix} I have done \documentclass{standalone} \usepackage{tikz} \usepackage{verbatim} ...
1
vote
0answers
335 views

Multiple data columns in tikzpicture [closed]

Suppose we got a .txt data file myplot.txt from MATLAB, and it contains in total 51 columns. I want to plot these data in pgfplots in the following way. The first column of myplot.txt is always for ...
1
vote
1answer
115 views

Seeking an explanation for a tikzpicture code

I have found the following solution in stackexchange. It has been perfectly answered here by @Jake. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} ...
6
votes
5answers
400 views

Add a second label to a path in an automaton

Friends, consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[shorten >=1pt,,node ...
3
votes
1answer
387 views

Dynamic feature of tikzpicture

I am using beamer to create a presentation. Suppose we have two functions $f$ and $g$ to be plotted in one picture. I want to make the following effect. First, the function $f$ is displayed, and ...
3
votes
2answers
194 views

(not)implies sign as edges in tikz graph

I would like to make a graph in tikz as in However I would like to have an implies symbol instead of an arrow. How can I make a figure such as above but with implies (as well as not implies signs) ...
2
votes
2answers
296 views

Unlabelled nodes in matrix of maths nodes

I have the following picture in TikZ at the moment: \documentclass[11pt,a4paper]{report} \usepackage{tikz} \usepackage[utf8]{inputenc} \usetikzlibrary{matrix,arrows,decorations.pathmorphing} ...
6
votes
1answer
213 views

PGF loop - how to use an array inside pgfmathdeclare function?

I'd like to pick a number from my array inside a loop. The first argument is a "starting" value which increments by 1 for each iteration based on the second and third argument (\qa). The maximum ...
5
votes
1answer
764 views

TikZ nodepart children

I know how to create a multipart node in TikZ using \nodepart, and I know how I can draw lines from these nodeparts to hook them up to other nodes: \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
42 views

Plotting a signal along with its harmonics in one figure [duplicate]

I would appreciate it if someone could help me plot a figure similar to the following picture. I want to draw the fundamental signal along with a few first harmonics using pgfplots.
7
votes
1answer
129 views

Managing texts with many TikZ-pictures

I am writing a long text with many TikZ pictures. Since compilation time is beginning to grow, I would like to tell TikZ not to draw some (all) pictures. So far I have just commented unnecessary ...
16
votes
2answers
816 views

I want to draw a nice connecting homomorphism arrow

\begin{tikzpicture}[scale=1.5] \node (A) at (0,0) {$0$}; \node (B) at (1,0) {$H^0(G,P)$}; \node (C) at (2,0) {$H^0(G,M)$}; \node (D) at (3,0) {$H^0(G,N)$}; \node (E) at (1,-1) {$H^1(G,P)$}; \node (F) ...
2
votes
2answers
467 views

Position a TikZ node in relation to a specific Forest node

Is it possible to avoid hardcoding the \node position in the below MWE and apply horisontal offset of the Forest node to the TikZ node it links to? The goal is to put the green nodes as close as ...
2
votes
0answers
83 views

How to draw RDF graphs in LaTeX? [duplicate]

Is there any solution for drawing simple graphs in LaTeX like the following? I came across tikz but couldn't figure out how to do it. Are there also possibilities to extend such graphs without caring ...
2
votes
0answers
52 views

Why doesn't prefixing an estyle work

Prefixing a style to a previously created /.estyle using the current (June 2014) iteration of Mac Latex inserts a \noexpand before the original style. As you can imagine this causes chaos! Bug?
1
vote
0answers
106 views

why different results in (tikz graph) output while compiling same code? [closed]

I am trying to replicate the first basic example on graphs in the Tikz-Pgfplots manual (pg no. 258) However, try to compile the two MWE's below one by one. In one, the pdf fails to compile (with 30 ...
3
votes
1answer
135 views

\newcommands in the \standalone file not recognized in the main file

Few \newcommands defined in my standalone .tex file containing tikz figure is not recognized in the main beamer .tex file. Please point out what extra lines should I write to make it work. Here is ...
7
votes
2answers
582 views

Drawing edges of a pentagonal pyramid in tikz

I want to draw lines between v_2,...,v_6 and from v_1 to all the other points (a pyramid). This is how far I got: \documentclass{article} \usepackage{graphics, tikz, tkz-berge} \begin{document} ...
3
votes
1answer
781 views

How can I draw the following diagram on LaTeX using Tikz or some other package

I want to draw the following number line diagram. How can I do this? Thanks. Please disregard the stray mark under the word 'some'. :) Here is what I am able to do. \documentclass{article} ...
4
votes
1answer
203 views

how do I add delimiters to both sides of a tikz node?

Here is a simple document which does not seem to display properly: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \tikz \node[matrix of nodes] { |[left ...
7
votes
1answer
118 views

Sequence does not come out right

\usepackage{tikz} \usetikzlibrary{matrix,arrows,decorations.pathmorphing} \begin{tikzpicture}[scale=1.5] \node (A) at (1,0) {$0$}; \node (B) at (2,0) {$H^1(G/H,M^H$}; \node (C) at (3,0) ...
11
votes
4answers
1k views

Sloped Tikz node with rotation and scale

There should be an easy way to place a sloped node along a path. Using sloped works great (as in the black text). However, if there is a rotate= applied then the text is no longer along the path (as ...
26
votes
2answers
8k views

Tikz Graphics: Curved arrow drawn parallel to curved line

Drawing a short directional arrow, lying parallel to a straight line A-B, is pretty trivial to accomplish using Tikz; \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} ...
7
votes
1answer
495 views

Scale dash pattern with line width

I would like to have dash patterns which scale proportionally to the active line width like shown in the following example: \documentclass[tikz]{standalone} \newdimen\gpdashlength \begin{document} ...
3
votes
1answer
200 views

Make blue box appear after pause command in beamer presentation

I am trying to the following in a beamer presentation. Slide 1: This is Slide 2: This is a test Slide 3: This is BLUEBOXa testBLUEBOX (BLUEBOXa testBLUEBOX should be written "a test" with a blue ...
4
votes
0answers
681 views

pgfplots: howto read touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your TikZ figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
5
votes
3answers
647 views

how to overlay math text with tikz image?

I have an equation in an `align' environment. Over one of the equality sign I would like to draw an arrow (slanted, preferred) with the text on the other end being 'This is always true'. How can I use ...
2
votes
1answer
112 views

Do until there is no intersection point

I want to do a loop until there is intersection points between two paths edit I oblic lines until they don't intersect the circle. When there is zero intersection points I have an error. Is there a ...
12
votes
2answers
1k views

Table with alternating row colours and rounded corners

I am trying to create a table with alternating row colours and rounded corners. I combined two answers so far to achieve this: Thorsten Donnig's answer about alternating row colours. Jake's answer ...
0
votes
0answers
16 views

tkz-fct “Plot data file not found” error [duplicate]

I want to draw following image using tkz-fct package, found from http://www.altermundus.fr/pages/base.html. The code from web site is as follows: \documentclass[]{scrartcl} ...