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

Custom background on beamer slide - outline of pgf path rectangle

I'm trying to make custom background for my slides in beamer presentation, gradient one to be exact. It is going pretty good, mainly because of other people questions here, but I have one problem that ...
7
votes
1answer
202 views

Emphasize labels in a graph

I've got a graph with nodes and arcs between them. Then I added labels to the nodes. My problem now: The labels are partially unreadable because the arcs disturb. Do I have an opportunity to ...
8
votes
2answers
567 views

Draw edge on arc

I would like to draw an edge between two nodes which lies on a clip of an circle. For small angles I was able to get some more or less realistic appearance by using bend left and bend right, but for ...
6
votes
0answers
283 views

“Segmentation fault (core dumped)” with LuaLaTeX [closed]

I'm trying to compile a 3D surface made by 10000 data points with tickzpicture. However, when I compile the .tex file with lualatex lualatex --shell-escape myfile.tex I receive the following error: ...
5
votes
1answer
473 views

How to connect two parents to the same child, with parents not in the same tree?

I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree. Here's the code I have for the moment: ...
1
vote
1answer
267 views

Horizontal alignment in Tikz node

How can I get the three elements on each line to space out appropriately to the end of the box?? \documentclass{article} \usepackage{catchfile,tikz} \usepackage{filecontents}% ...
5
votes
1answer
267 views

Circuit Node with Text near Input and Output

I'd like to draw a user defined a simple node shape in combination with the circuit library. The node has one input and one output. I'd like to put text inside the node shape near the input and ...
2
votes
1answer
430 views

align text in tikz figure

I am trying to put some text above a figure in beamer like \begin{tikzpicture} \node[anchor=top ,inner sep=0] (image) at (0,0) ...
15
votes
2answers
371 views

Is it possible to detect the “current color”? (for example in a pgfplot drawing?)

Is there a code to deduce the current color of a PGF plot to which a node is associated? Better yet, is it possible to get the RGB decomposition as well? ... addplot coordinates{ (0,0) (1,1) } node{ ...
6
votes
4answers
373 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
3
votes
1answer
285 views

pgfplots - divide y-axis in 2 parts

I have a plot, code here. Now the problem I have is that because of the scale of y-axis it looks as if the plots are actually just 3 lines. Now what I want is that the y-axis is sort of splitted. Into ...
2
votes
1answer
340 views

Tikz library files at given path

I am using tikz library files from this question. I use the code: \usetikzlibrary{paths.ortho} and put files tikzlibrarypaths.ortho.code.tex and tikzlibrarypaths.ortho.tex in the root folder. I ...
4
votes
1answer
1k views

TikZ: Crop images after placing them

I have a ton of microscopy images to include in a report, some of these images have rather uninteresting information I want to crop. Since I add scale bars using TikZ and therefore require all image ...
7
votes
1answer
517 views

inserting special border to tikz mindmap

Hi I would like to mark certain nodes of tikz-mindmap just an example is illustrated in the figure. Thanks in advance The minimal working code is here \documentclass[]{article} \usepackage{tikz} ...
58
votes
6answers
3k views

Filling specified area by random dots in TikZ

I want to reproduce the following diagram in Tikz. LaTeX code of my MWE is below: \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \draw [-latex, ...
6
votes
1answer
317 views

pgfplots: group stacked bars

I'm trying to create groups of 5 stacked xbars, using y expr={\thisrow{y} - (mod(\thisrow{y},5)/2)}. However, after some groups, the calculation seems to get thrown off and the third group actually ...
9
votes
2answers
876 views

How to create the following figures in TikZ

I'd like to create the following two figures with TikZ I'm tikz beginner, can anybody give me some advice how to do that? Now i've created the first figure: ...
2
votes
1answer
437 views

! Package pgfkeys Error | compiling a standalone picture as \includestandalone{fig}

I have two tikz pictures in external files (fig1.tex and fig2.tex): fig1.tex \documentclass[a4paper,class=minimal,border=0pt]{standalone} \usepackage{tikz} \usetikzlibrary{plotmarks} ...
2
votes
1answer
302 views

How can I change the line width of the spy-on node in tikz spy library?

is there an option to change the line width of the spy-on node, i.e. the node that appears on the image, in the tikz spy library?
4
votes
1answer
141 views

plotmarks are displayed as default marks

My code: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepgflibrary{plotmarks} \begin{document} ...
3
votes
1answer
245 views

Making Tikz automatic node placement relative to the quantity of nodes

This is a follow-up question to this one: Making Tikz automatic node placement work Especially to the post of Mark Wibrow (second one). His solution works with 16 nodes, but I'm looking for a ...
2
votes
3answers
679 views

Tikz matrix vertical alignment

I'm having trouble with the vertical alignment of the nodes in a tikz matrix. I have two plots next to each other. I want them to be aligned with respect to the center of their bounding boxes, but ...
1
vote
1answer
952 views

Relative placement of node on edge with tikz

How do I place a node relative to an edge? It's easy with lines using the -- operator, is there a way to achieve the same on an edge? \documentclass{article} \usepackage{tikz} \begin{document} ...
5
votes
1answer
595 views

PGF Math: “An internal routine of the floating point unit near”

I am using this snippet: \documentclass{beamer} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel={$f(x) = x^{-1}$} ] \addplot {x^{-1}}; ...
3
votes
1answer
210 views

Tikz - Thick line by overlapping rectangles - How to improve the diagram

I create my diagram with the following code. \documentclass{article} % \usepackage[ngerman]{babel} \usepackage{tikz} \usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,% ...
9
votes
4answers
693 views

Highlighting equation with arrow

I want to create an equation with highlighting as shown bellow. But using following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
1
vote
0answers
38 views

Define styles to make series of similar pgfplots [duplicate]

I'm writing a journal paper, and in this paper, I have to produce many versions of the same graph as I look at the effect of varying different parameters on the variable of interest (in this case the ...
4
votes
0answers
249 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
3
votes
1answer
666 views

Settting PGFplots axis environment options by means of \newcommand and {\newlength,\setlength}

Because I often use the same options for multiple axes in my LaTeX documents, I use the following code to simplify my life. \documentclass{article} \usepackage{pgfplots} ...
4
votes
1answer
953 views

Ignore inner sep for tikz bounding box

Is there a way to have tikz ignore the white space produced by a node's inner sep when calculating the picture's bounding box? Consider the following MWE: \documentclass{article} ...
4
votes
1answer
387 views

Can I use TikZ (instead of PSTricks) for latex2html5?

I found this today: http://latex2html5.com/ Author interactive math equations and diagrams online using LATEX and PSTricks It looks nice, but I'm more familiar with TikZ. Is anybody aware of ...
2
votes
1answer
121 views

Drawing a 2 x 2 Square and an L [duplicate]

I would like to draw the following two images. I heard using tikz may be of some help.
3
votes
1answer
387 views

The perplexing path direction of TikZ

This is a follow up to the question Replicating a simple diagram in Knuth's book using Tikz where I was fortunate to receive various useful and enriching answers for which I am grateful. The ...
6
votes
2answers
850 views

Integrating latexmk and TikZ external mode=list and make

I've been looking into using latexmk to create my documents because it automatically handles how many passes the document needs to be fully processed etc. So, for example, a simple run of latexmk -pdf ...
1
vote
0answers
435 views

CircuiTikz - Removing the Arrow on the Sinusoidal Voltage Source [closed]

Is there a way to remove the arrow on the Voltage Source shown below: I create the Signal Generator using: (0,2) to [sV=$Signal\:Generator$] (0,8) The arrow Only Appears when the text is inserted. ...
4
votes
1answer
149 views

TikZ snake braces using nodes from diferent 'tikzpicture's

Is it possible to have a brace defined (with the snakes library) using as reference points 2 nodes in 2 different tikzpictures? \begin{tikzpicture}[scale=.6] \draw[draw=black, ...
3
votes
2answers
871 views

How do I place nodes around a circle in Tikz?

I'd like to place 17 evenly-spaced nodes around a circle. I am very new to Tikz and am following the Petri nets example in the manual. I would like to do something similar — essentially just ...
5
votes
1answer
92 views

Closed shape with different line colors

The following code defines a MWE: \documentclass[dvipsnames]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[dashed,Cerulean] (0,0)--(1,0)--(1,4); ...
3
votes
0answers
809 views

PGFPlots: importing data from a txt file

So I imported data from two txt files. However, I would like to plot the mean of the data and then the standard deviation bars. How can this be done? \documentclass[tikz, convert = ...
3
votes
1answer
256 views

TikZ: `local bounding box` incompatible with `use as bounding box`?

The TikZ/PGF documentation (v 2.10) contains the following example for the use of local bounding box: \documentclass{article} \usepackage{tikz} \usepgfmodule{shapes} \usetikzlibrary{scopes} ...
33
votes
3answers
2k views

Programming Conway's Game of Life in LaTeX

My aim is to program Conway's Game of Life in LaTeX, and make the output into an animated PDF. I intend to use PGF/TikZ for this, especially pgfmath, but I'm stuck at the moment because I need to ...
8
votes
2answers
594 views

How to draw a circle with a triangle in TikZ?

Be sorry that I cannot provide the coordinates of all points, or I can draw the picture. How can I make this figure? Thanks for any help!
13
votes
2answers
812 views

Drawing “blobs”

I would like to draw diagrams representing sets as blobs using tikz, that is an object having no distinct shape (this is one definition of blob.) It doesn't have to be tikz specifically : any solution ...
3
votes
1answer
255 views

Tikz Externalize: How to remove PDF filename from figure

I have coded graphics in a LaTeX report using TikZ and have externalized them. When the generated PDF files for the graphics are included in the PDF of the report, the filename of each figure is ...
17
votes
4answers
1k views

What is the best way to produce TikZ picture for discrete signals?

I would like to draw discrete signals, as shown in the illustration below, but not by way of drawings of individual lines.gnuplot could be used for this work? It would be nice to be able to choose the ...
33
votes
5answers
4k views

How to draw a coffee cup

Topologists need to explain that coffee cups are homeomorphic to donuts. There are nice ways to draw donuts. So far, my best attempt is \documentclass{standalone} \usepackage{tikz} ...
5
votes
1answer
570 views

How can I do a power electric system in Circuitikz?

I'm new in this and I want to do this circuit in LaTeX
2
votes
0answers
157 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
5
votes
1answer
331 views

TikZ: Plane partitions with labeled faces

The example here gives the code for drawing plane partitions with TikZ. I want to do two things at once: Label the top faces of the top cubes shown in any plane partition with a numeral that ...
3
votes
1answer
161 views

Renaming anchors in predefined shapes

I am drawing several dozen diagrams with TikZ that will be using equilateral triangles. My current setup is using the regular polygon construction. The anchor names corner 1, corner 2, and corner 3 ...