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

Using `external` selective for TikZ-pictures

For the following example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc,external} \usepackage{pgfplots} \tikzexternalize \begin{document} ...
4
votes
0answers
149 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
296 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
553 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
139 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
45 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
61 views

how to draw plate indices in graphical model by tikz

I made my Hierarchical model with tikz by following code: ‎‎\documentclass[10pt,a4paper]{article}‎ ‎\usepackage[utf8]{inputenc}‎ ‎\usepackage{amsmath}‎ ‎\usepackage{amsfonts}‎ ‎\usepackage{amssymb}‎ ...
3
votes
0answers
42 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
35 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
97 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
71 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
65 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
109 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
53 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
52 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
71 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
72 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
48 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
63 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
121 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
101 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
106 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
86 views

Problem compiling TikZ diagram using template

This is my first input here. I have a problem compiling this document, where particularly the TikZ graph comes messed up (no graphics at all and labels superimposed). I am using TeXstudio with MiKTex ...
3
votes
0answers
37 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
64 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
109 views

Problem with using tikZ in Texmaker

I seem unable to use any TikZ command in TeXmaker. Whenever I use such command, I get the following error: ! LaTeX Error: File `tikz.sty' not found. Type X to quit or <RETURN> to proceed,or ...
3
votes
0answers
86 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
80 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 ...
3
votes
0answers
40 views

convert TikZ to XAML

How can I convert that drawing to XAML? \documentclass[12pt]{scrartcl} \usepackage[utf8]{inputenc} % ö,ä,ü möglich im Text \usepackage{float} % damit Bilder fließen können \usepackage{tikz} % ...
3
votes
0answers
144 views

How to draw 3d molecules with TikZ?

Is it possible to draw molecules in 3d with TikZ like in this picture?
3
votes
0answers
99 views

Using tikz overlay / remember picture option with forest trees

I want to connect two forest trees with an arrow, in a similar way it is discussed here for plain tikz trees. However, it seems to be impossible to add options to the forest environment in a similar ...
3
votes
0answers
127 views

tikz externalization: list and make forces make to recompile the tikz images every time

I'm trying to speed up my latex development by parallelising as much tasks as possible and by redoing as little work as possible on every run. Amongst other things, I want to externalise my tikz ...
3
votes
0answers
252 views

using gnuplot to plot data from a file

I am trying to plot some data using pgfplots, but the data are so extensive that the maximum capacity is reached. I get the error: TeX capacity exceeded, sorry [main memory size=3000000]. What can I ...
3
votes
0answers
141 views

How to automatically optimize the PDF output of TiKZ externalize?

I use pgfplots with externalization for generating plots in my document. For heavy plots the output PDF for a figure can grow to few hundred KB. I used Adobe Acrobat to optimize the PDFs which ...
3
votes
0answers
306 views

Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
3
votes
0answers
199 views

Compiler error “save size exceeded”

I have a problem with compiling my thesis. Due to a new plot I inserted, it lo longer compiles. According to this guide, i increased the limits for lualatex as follows: pool_size=5000000 ...
3
votes
0answers
211 views

Generating Gantt Charts for process scheduling

I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need ...
3
votes
0answers
101 views

how to mark the minimum of a function in a certain range?

In the MWE below, \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot [domain=-10:10, samples=101, blue]{(1.5*x)^((x/(1-x)))}; \addplot ...
3
votes
0answers
33 views

Why are the numbers I get from the PGF profiler library all so close to an integer number of seconds?

I wanted to see whether some macros I wrote could be made noticeably quicker by eliminating the use of parsed PGF math commands, in favour of using the PGF math function macros (\pgfmathadd, etc.) ...
3
votes
0answers
109 views

How to define a pgf curve with points instead of controls?

The syntax to produce a Bézier curve in pgf is \pgfpathcurveto{first control point}{second control point}{target} This defines the curvature by control points. Considering the degrees of freedom ...
3
votes
0answers
190 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 ...
3
votes
0answers
436 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
0answers
149 views

Help for reproducing this page with TikZ

I am not new to LaTex/XeLaTeX, but, I am new to the TikZ world, I want to put the number page and the name of the book (or what ever) as this example: ...
3
votes
0answers
330 views

TikZ scaling graphic and adjust node position and keep font size

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and ...
3
votes
0answers
177 views

tikzipicture have different arrow tip colors in pdf output and dvi output

i have the following mwe \documentclass[tikz,border=4pt]{standalone} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=angle 45,scale=3,ultra thick] \draw[help lines] ...
3
votes
0answers
189 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 ...
3
votes
0answers
331 views

Clustered Stacked bar Chart Overlapping Labels

I have following code by which I generate the following graph \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata,calc,shapes, ...
3
votes
0answers
220 views

drawing lines using polar axis coordinate system in pgfplots

I would like to draw arrows with polar axis notation in a pgfplots figure that has Cartesian axes with the draw command: \draw[->] (polar axis cs:radius=1, angle=30) -- (polar axis cs:radius=2, ...
3
votes
0answers
591 views

Multipart nodes with multipart subparts — style issue

I want to typeset multipart nodes that have multipart sub parts — similar to the following diagram (from Miller and Ranum) I have tried using TikZ horizontal split rectangles inside vertical split ...