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
0answers
187 views

Hebrew text along a (circular) path is typeset LTR instead of RTL

I have read Typesetting straight baselines in a circular arrangement and I would like to have a solution for my situation. I would like to insert some text in Hebrew on an annulus. Here is my attempt ...
4
votes
0answers
676 views

Create legend tikzpicture without pgfplots

I already tried to create a legend with pgfplots but it seems that conflicts with tikz-uml library (another tikzpicture that I have in the same file) so I want to know how can I create a legend with ...
4
votes
0answers
436 views

TikZ path decorated with coil or snake

A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end? Usually the path described are straight lines (See post1, post2 or post3), but there are ...
4
votes
0answers
222 views

Convolve two 2D Gaussians using tikzfading - intensity issues

I would like to visualize the convolution of two 2D Gaussians (or something looking similar). To do this, I declare them in a tikzfadingfrompicture environment. However, to get the desired result and ...
4
votes
0answers
81 views

`shorten` and bounding box in tikz; possible bug?

While working out this answer, I found out that shorten options do not count towards computing the bounding box of a tikzpicture. Case in point: \documentclass{standalone} \usepackage[]{tikz} ...
4
votes
0answers
224 views

Using TikZ with DokuWiki

I am using DokuWiki to write my notes. The one thing that I am missing is the ability to plot. I would like to use TikZ to fill this need, but I have been unable to get exactly what I want. I am using ...
4
votes
0answers
179 views

How to change style of a node based on its name?

I've create pie charts using pgf-pie and I have exactly the same problem as in this pgf-pie issue. I changed pgf-pie code to draw small percentages outside of the main circle. But I have one problem ...
4
votes
0answers
871 views

Tikzscale, trim axis left/right, and externalizing

tikzscale and trim axis do not play well together, with the produced figure being larger than requested because it ignores the size of the labels. I was wondering whether it is possible to use both ...
4
votes
0answers
172 views

Increasing dateplot's resolution to seconds

These three dots should be spread out over a period of 50 seconds, but for some reason they all appear at 13:00:30. \documentclass{minimal} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} ...
4
votes
0answers
327 views

Tikz Nodes in margin gets overwritten by page-wide tikz environments

I'm trying to improve the typesetting of openly licensed books created by my company. We do the typesetting of all our books with LaTeX. The design of these books requires coloured environments that ...
4
votes
0answers
607 views

Matlab2tikz adds extra legend entries

The legend from a boxplot figure is not being created properly. I get this: Instead of thiS: But really only need 2 legend entries. Any Ideas why all the objects in this plot are being given ...
4
votes
0answers
145 views

Is is possible to associate part of a drawing to a pdfcomment (or similar) interactive bubble?

It is apparently possible to put a TikZ drawing inside a pdfcomment (but using mbox). Is is possible to associate only part of a drawing (e.g. a line) to a pdfcomment? Below it is the suggested ...
3
votes
0answers
70 views

Help with a stacked cluster graph

I want to compare the weight and volume of two power options. One consist of FC, battery and motor and the other consists of 4-stroke engines i edit the following code but it doesn't give me the ...
3
votes
0answers
56 views

Links in mindmap as table of contents in beamer

I decided to use a mindmap to show the ToC of my presentation and the section outline. I'd like to have the nodes clickable like the standard ToC, but I couldn't find any command like ...
3
votes
0answers
63 views

Why does the samples option conflict with fp?

Minimal working example: \documentclass{amsart} \usepackage{fp} \usepackage{tikz} \usetikzlibrary{fixedpointarithmetic} \begin{document} \begin{tikzpicture}[scale=2, fixed point arithmetic] ...
3
votes
0answers
60 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} ...
3
votes
0answers
48 views

Node size in graph with pgf 3.0

I want to draw some graphs with pgf 3.0, but the size of the nodes are not being taken into account when laying out the graph using spring layouts. Here is an example document: ...
3
votes
0answers
103 views

tikz stops drawing into pdf after 20 line segments in plot generated through knitr tikzDevice

Problem If I try to draw a curve generated through knitr using tikzDevice into .pdf only 20 line segments of that curve are drawn and TeXstudio, through which I do it, just leaves message running ...
3
votes
0answers
60 views

PGFPlots only have one 0 at the origin

When I create a figure using tikzpicture, tikz adds two 0's at the origin for a plot (one for the x-axis and another for the y-axis). I think it looks cleaner to only have one zero at the origin. I ...
3
votes
0answers
105 views

How to draw the vectors from point to point

I have the file "gradmethod.dat" that contains the values ​​of the 3D coordinates: "gradmethod.dat" is 0.4166337995 -0.0003214561 0.1735863062 0.0036860331 0.0076438475 0.0014742969 ...
3
votes
0answers
132 views

Illustration of Lagrange multipliers

I want to draw with pgfplots and/or tikz an illustration of Lagrange multipliers. For reminder, Lagrange multipliers are used to optimize thing like this: min_x f(x) such that g(x)=0 Basically, I ...
3
votes
0answers
48 views

Is xelatex compatible with pgf masks?

When making my presentation with beamer I use xelatex to get nice fonts or I use pgf package to make images with transparent backgrounds. Unfortunately, I cannot use both at once as xelatex ignores ...
3
votes
0answers
82 views

\addplot table with input filename relative

I include plots using matlab2tikz to generate tikz-files. There was a nice feature added which enables external datasets. A file plot.tikz is generated with the following code (unnecessary code is ...
3
votes
0answers
68 views

Bug in PGF data visualization's scaling mapper?

Take a look at the trivial use of PGF data visualization below, \begin{tikzpicture} \datavisualization [ scientific axes, visualize as scatter, all axes=label ] data [format = ...
3
votes
0answers
119 views

How to color vertices in a TikZ graph?

Consider the following code to draw a graph using TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \begin{document} \begin{tikzpicture} \graph ...
3
votes
0answers
57 views

ticks under tikz

There is my minimal code \documentclass[a4paper,11pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{float,caption} \usepackage{microtype} ...
3
votes
0answers
56 views

Using tikz arrow with scaleboxed tables

Following this post. I would like to use arrows with tables. Yet my tables are too big and I want to rescale them using scalebox. But went I use tikz with the scaleboxed tables I cannot point ...
3
votes
0answers
84 views

Tikz equivalent for axisratio

I want to externalise all my tikz figures. I currently create them by \begin{filecontents}{images/spring.tikz} \begin{tikzpicture} %tikz picture code \end{tikzpicture} \end{filecontents} ...
3
votes
0answers
32 views

How to colour scatter points and create legend entries based on a data type column

Say I have a file like this: \documentclass{standalone} \usepackage{pgfplots,filecontents} \begin{filecontents*}{data} 1 10 type1 2 25 type2 3 75 type2 4 100 type3 5 150 type3 \end{filecontents*} ...
3
votes
0answers
59 views

Horizontal extent of tikz picture: Why is it being truncated?

Here's my code: \documentclass[border=2pt]{standalone} \usepackage{pgfplots} \begin{document} \[ \begin{tikzpicture} [scale=1] \begin{axis}[ axis x line = center, axis y ...
3
votes
0answers
62 views

How to align Matrix and Tikzpicture on the same horizontal line

I'm using subfloat to try to align my diagram with the matrix array. I want them to be next to each other, and per suggestion, used the subfloats to try to align them. I'm getting error messages. ...
3
votes
0answers
50 views

\pgfmathparse returns a phantom .0.0

\documentclass{minimal} \usepackage{tikz} \begin{document} \pgfmathparse{random(-5,5)} \pgfmathresult \end{document} Works, but I have a .0.0 that not supposed to be here.
3
votes
0answers
153 views

Draw molecule structure with torsion angles in TikZ

I am trying to reproduce this figure in LaTeX: The packages that I have seen for annotating chemical structures do not seem to accomplish what I want (not to mention that my knowledge on chemical ...
3
votes
0answers
85 views

Tikz how to extract spherical coordinates

I have X coordinate defined in Spherical coordinate system (the point is to be situated on the circle so it's easier): \def\Sx{0} \def\Sy{0} \def\Sz{2} ...
3
votes
0answers
115 views

Example from tutorial does not work: problem with edge style in graph

I tried an example from the TikZ tutorial: \documentclass{article} \usepackage{tikz} %\usepackage{pgfsys} \usetikzlibrary{positioning} \usetikzlibrary{graphs} %\usetikzlibrary{arrows} ...
3
votes
0answers
173 views

pgfplots error using matlab2tikz

I am trying to plot a matlab figure in latex file. so i use this matlab2tikz function. It works really well, until I try to add some customised text on the figure before converting it to tikz file, ...
3
votes
0answers
70 views

TikZ - Callout position relative to the text

Given this minimum compilable example: % !TEX program = lualatex % arara: lualatex: {synctex: yes} % arara: lualatex: {synctex: yes} \documentclass[a4paper,11pt,openany]{memoir} ...
3
votes
0answers
62 views

how to connect nodes with a figure created in tikz?

I have created a sort of 'implies' sign (as well as a 'not implies' sign). How can I make them both connect two nodes? \begin{document} \begin{tikzpicture}[rotate=45, transform shape] \draw ...
3
votes
0answers
92 views

How does one draw a cylindrical shell in tikz

I am trying to illustrate the disk and shell methods for computing the volume of solids of revolution. I was able to use the following code to create a typical approximating disk when the revolution ...
3
votes
0answers
92 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question ...
3
votes
0answers
63 views

TikZ: Unexpected difference between \draw and — vs \path and edge

While modifying this answer for my own use, I encountered something unexpected. In my experience, using \draw (1) -- (2) is equivalent to \path (1) edge (2). However, adding the option to draw or ...
3
votes
0answers
104 views

Getting a value, which has been given to a TikZ key

I'm trying to write a package based on TikZ, and this is the problem i'm currently stumbling upon. Let's assume, that I have a key, for example /tikz/circuit symbol unit, which executes some code. ...
3
votes
0answers
133 views

Create violine plots

I use pgfplots for most of my plots. Now I need to add a violin plot. Is this possible with pgfplots or any other package?
3
votes
0answers
150 views

Venn diagrams overlapping color filling

Further on the posted question about Venn diagrams for fuzzy logic in TikZ, I have edited this tikzpictureinto a "customized version". My aim is--> a) To get a first diagram with both gaussian ...
3
votes
0answers
143 views

How can I create airfoil images for fluid mechanics presentations in Tikz?

I need some help on how to create good looking vectorized images of these kinds of themes: I work a lot with Latex when it comes to typesetting so I have some basic experience with Tikz. However ...
3
votes
0answers
45 views

! Argument of \pgfmathrnd@@ has an extra }

The followin code gives this error : ! Argument of \pgfmathrnd@@ has an extra }. <inserted text> \par l.12 } ? ! Emergency stop. <inserted text> ...
3
votes
0answers
86 views

dot2tex: some frames are missing

I'm trying to dot2tex to render automata. For reasons I do not understand, the rendering is missing some boxes. For the following Dot file input: digraph { rankdir = LR { I0 [shape = point, ...
3
votes
0answers
103 views

Rotation of braces

How can I rotate a brace to make it appear this way? I'm currently using this code: \documentclass[french]{beamer} \usepackage{tikz} ...
3
votes
0answers
35 views

Why does the meaning of “above” seem to change when my “shift” coordinate changes?

The only difference between these two examples is the size of the xshift. The MWE with xshift=-1.5in and xshift=-1.0in places the text where I expect, but not with xshift=-0.75in and xshift=-0.5in: ...
3
votes
0answers
88 views

How do determine the arrow form in Tikz

I plotted following image: Using this code: \documentclass[10pt,a4paper,twocolumn]{article} \usepackage{bondgraph} %Draw bondgraphs ...