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)

4
votes
1answer
288 views

How to make adjustbox work correctly with wrapfigure?

I have an adjustbox environment which gives colored background to content. It doesn't play nicely with wrapfigure. It overlaps with the content. Below is the mew. \documentclass{scrartcl} ...
7
votes
2answers
1k views

How to draw a multiplexer 8 to 1 with circuitikz

How can I draw a multiplexer 8 to 1 with tikz or circuitikz? A hand-drawn example is shown below.
6
votes
1answer
177 views

How to draw curved paths

I'm trying to do this picture : I have a problem to draw the curved paths. MWE \documentclass[scale=0.5,border=12pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
6
votes
5answers
960 views

How to plot a linear function with axes, arrows, and labels?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, pstricks and multido usepackages. The lines from a to x_2, d to x_1 and p_1 to c, should be ...
3
votes
1answer
176 views

Displaced circuits with PGF 3.0.0

Please consider the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{circuits} \usetikzlibrary{circuits.ee.IEC} \begin{document} \begin{center} PGF version: ...
4
votes
1answer
308 views

Double arrow a la chef with two edges shows gap

I am looking for a double arrow that describes a complete 180 degree path. I found a wonderful example, but I have a little issue with one of the edges. \documentclass{article} \usepackage{tikz} ...
5
votes
3answers
487 views

Table of x-y values with first and second order differences

I would like to code a pages of notes that has the layout shown in the picture below. My question is the most efficient way to do this with LaTeX. I would think tikz with lots of nodes and edges, but ...
8
votes
1answer
254 views

Problems to start drawing an energy landscape

I am trying to create a diagram as depicted below. The colors, dotted lines, circles etc are not important. Ideally, the number of plots behind each other should be easily adaptable and the "shape" ...
3
votes
2answers
130 views

Place node above specific path segment

I am trying to put a node above a specific segment of a path that is "bent" using "|-" (kind of broken into segments). A minimal example follows here: \begin{tikzpicture} \node[rectangle,draw] ...
1
vote
2answers
257 views

Control pgf/tikz semilog factor

I'm currently using the semilogy environment and wondering on how to control whether they actually take 10 log or 20 log.
3
votes
1answer
244 views

Stacking plots in animation using fill between library (with dynamic calculation of intersection segments?)

As a followup question to Filling the area under a graph based on intersection with another graph, I'm looking to create the following effect: Fill based on the coordinates of the intersection ...
7
votes
2answers
455 views

Filling the area under a graph based on intersection with another graph

I'm trying to produce this: But I can't get any further than this: This is my code: \documentclass{minimal} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{intersections} ...
2
votes
1answer
87 views

Why doesn't `\\` make a newline in TikZ? [duplicate]

This code \tikz \graph [layered layout] { "I want newline after comma:" -> "Hello,\\ World."; }; just gets rid of the whitespace between the "," and the "W" of "World" below: Why doesn't it ...
2
votes
1answer
186 views

Simple animation with tikz and gnuplot won't finish compiling

I got the following code: \documentclass[tikz,border=2pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{calc} \usepackage{animate} \usepackage{fp} \newcommand*\tdist[1]{ \begin{tikzpicture} ...
7
votes
2answers
2k views

Long title in tikzposter

I would like to have a long title in tikzposter and have tried to introduce a newline within the \title{} command using \\ and \newline but it does not start a new line. In the old tikzposter class I ...
3
votes
1answer
185 views

arrows with edges in tikz

I have this tikz figure for my conceputal model. I am trying to have an edged arrow from contextual factors to inputs. Can't figure out how to do it \begin{figure}[h] \centering \begin{tikzpicture} ...
4
votes
2answers
443 views

Tikz for drawing grid-like graph: strange behaviour

I would like to draw a grid-like graph (see the figure below). The following code gives the result shown in the figure. I don't understand why the edges are not vertical. In addition, the commented ...
3
votes
1answer
792 views

Externalize TikZ with TeXstudio and MikTeX [closed]

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 ...
7
votes
2answers
442 views

What's the difference between TikZ anchors and coordinates

In his answer to Accessing the logic values of a TikZ coordinate, Jake proposes a code to get the value of TikZ coordinate. Today I've tried to use it to answer Make a polygon with automatically ...
3
votes
1answer
216 views

Global pgfplotset messing up error bars

I have a plot with some error bars generated with this code, but the error bars are messed up. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pgfplotsset{ every ...
5
votes
1answer
253 views

`edge quotes mid` TikZ issue

When I render this with LuaLaTex: \documentclass[border=4mm]{standalone} \usepackage{tikz} \usetikzlibrary{graphdrawing,graphs} \usegdlibrary{layered,trees,circular,force} \begin{document} \tikz ...
2
votes
0answers
123 views

How to zoom (and apply grid on) subfigures

So I have folders containing triplets of images which all have the same style as shown in an example below It is basically an automatically generated image and a color-bar besides it. I want to ...
6
votes
3answers
1k views

Make a polygon with automatically labelled nodes according to their coordinates

The goal: Make a polygon (and a circle containing that polygon at the nodes of the polygon, without the polygon's lines) with automatically numbered nodes according to their coordinates (x,y) [which ...
2
votes
1answer
1k views

How to create a timeline with chronosys or something similar?

I need to create a timeline in latex. This is what I have right now \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chronosys} \begin{document} \startchronology ...
0
votes
2answers
116 views

Missing endgroup in animation

Where is the missing endgroup in the next code ? \documentclass[tikz,margin=5pt]{standalone} \usepackage{calc,animate} \newcommand{\Cercle}[1]{% \begin{tikzpicture}[thick] ...
4
votes
3answers
348 views

Creating Flow Chart with Bezier Curves

How would I use TikZ to make this diagram? I would like to use bezier curves instead of straight lines, too. thanks
2
votes
1answer
1k views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
20
votes
6answers
1k views

Generating Random arrows in tikz

I would like to draw this figure : Hence, I resort to TikZ. But, it seems to be very difficult drawing arrows precisely in TikZ with the precise locations (x,y). I have achieved this: Here is the ...
4
votes
0answers
109 views

Add fitting line to histogram plot created by pgfplots [duplicate]

I have created a histogram plot with pgfplots as following \begin{tikzpicture} \begin{axis}[small,ymin=0,title=\texttt{hist}] \addplot [ hist, fill=orange!75, draw=orange!50!black] table [y ...
7
votes
1answer
342 views

Snake line with an arrowhead in the middle

in my code i need to draw some Feynmann diagrams with several lines like this one: To draw this image, i usually use this code: \tikzset{White/.style={ draw=white, postaction={decorate}, ...
7
votes
3answers
536 views

What would be the best way to draw this image using latex?

I have an assignment which involves drawing the layout of some wiring. I have been using a different program, but the rest of my work is in LaTeX and so I would like to learn how use LaTeX to create ...
10
votes
2answers
178 views

Is it possible to use \node paths directly in forest?

The following simple example shows that when a tikzpicture is used directly as a forest node, some of its paths seem to be ignored: \node paths seem to be ignored while, for example \draw paths are ...
9
votes
2answers
259 views

How to relatively position groups of nodes

I have a macro (example below) to create a 3x3 grid out of a list of 9 items, but if I try to draw two of them they sit on top of each other. I get that each is a different path and restarting at ...
15
votes
2answers
870 views

Connected balloons

I'm trying to make a poster in the format of comics. Apart for the fact that tikZ does not work in an amazing way with beamerposter, my idea was to create a sort of comics, with interconnected ...
3
votes
0answers
846 views

externalize pfgplots fails with shell escape enabled (TexLive-2013 Mac)

I have the following Problem: I am using matlab2tikz to get my Matlab plots into latex. I have very large time series, that i already cut down using resampling. Nevertheless my I need a lot more time ...
3
votes
1answer
135 views

tikz and new environment

I would like to creat a new environment in order to draw the following matrix : \begin{tikzpicture}[baseline,every right delimiter/.style={xshift=-8pt},every left delimiter/.style={xshift=8pt}] ...
3
votes
3answers
536 views

Tikz Drawing bent lines

I would like to draw the below picture: I have achieved to do the following: Here is the MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
5
votes
1answer
94 views

Not getting the correct polar plot

\documentclass{article} \usepackage{tikz} \usetikzlibrary{3d,calc} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[domain=0:2*3.14159265] plot (xy polar cs:angle=\x r,radius={2 ...
2
votes
0answers
53 views

TikZ-picture: remove arrows at starting point of edge [duplicate]

I'm a litte confused, because I drew a TikZ-picture and didn't get what I expected. Have look at the following: \documentclass[12pt,a4paper]{article} \usepackage{amsmath, amssymb, ngerman} ...
2
votes
1answer
357 views

Wrong effect with border of title page

I want this effect: But I have this wrong effect: Here is my code: \documentclass[11pt, a4paper, oneside]{Thesis} % Paper size, default font size and one-sided paper \hypersetup{urlcolor=blue, ...
7
votes
1answer
667 views

Create style for a new section

anyone can help me to do something like this? for an informative section in my document
7
votes
1answer
3k views

TikZ/pgf: Why does `\newline` and `\\` not split text in node?

The MWE: \documentclass{standalone} %====================================== \usepackage{tikz} \usetikzlibrary{graphdrawing} \usetikzlibrary{arrows} \usetikzlibrary{graphs} \usegdlibrary{force, ...
5
votes
2answers
189 views

TikZ/pgf: When using the `graphdrawing` library, why do components still overlap even after `component sep` has been defined?

The source: \documentclass{standalone} \usepackage{fixltx2e} \usepackage{amsmath} \def\SP#1{\textsuperscript{#1}} \def\SB#1{\textsubscript{#1}} ...
5
votes
1answer
281 views

Pgfgantt backwards incompatibility

I just installed TeXLive 2013 in favor of TeXLive 2012, and there seems to be a backwards incompatibility with the way milestones are rendered in pgfgantt. In TeXLive 2012, my Gantt chart code is ...
1
vote
1answer
345 views

Is there any way to reproduce this figure of the Solar System using TikZ? [closed]

The Challenge Today I'd like to pose a particular TikZ challenge. I stumbled upon the following picture: It condenses a great deal of information: each line represents one mission to the ...
1
vote
1answer
401 views

error when using tikz with quotes and angles

i want to draw some angles using tikz where i have the following code: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{tikz} \usetikzlibrary{quotes,angles} ...
14
votes
2answers
1k views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
4
votes
3answers
180 views

Nodes and text positioning

I want to use tikz to draw circle nodes with inside a text in math mode that has the following structure. A variable plus potentially a subscript and/or a superscript. I want the position of the ...
2
votes
1answer
270 views

Lots of “missing character” messages in log file

Changing the default tip for arrows produces a lot of "missing character" messages in the log file. Is this a bug or is something wrong with the MWE? \documentclass{standalone} \usepackage{tikz} ...
3
votes
1answer
192 views

Text in Tikz Graph

I've been using Tikz and created the following graph with that code : \documentclass{article} \usepackage{tikz} \usepackage{amssymb} \usetikzlibrary{arrows} \begin{document} \begin{center} ...