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

Plotting the sum of a function in TikZ

I am trying to plot a function that is the sum of another function based on the parameter. A famous example of this is the "sum of squares", however the functions I really want to do this do not have ...
3
votes
0answers
54 views

Specifying the point via “intersection of” in TikZ - a problem

I aimed at drawing a square (using TikZ) with a red dot inside it, placed on the intersection of its diagonals: And while the following method worked fine: \documentclass[12pt]{article} ...
3
votes
0answers
30 views

tikz bounding box / cropping: too much space for curves

I have a problem with TikZ's auto-cropping/auto-calculating the bounding box for a tikzpicture. Look at the following example: \documentclass{article} \usepackage{tikz} \begin{document} Lorem ipsum ...
3
votes
0answers
44 views

Tikz: Add arrow tip to path instead of replacing part of path

When I add an arrow tip to a path, a part of the path is replaced so that the overall length stays the same: \documentclass[margin=10pt]{standalone} \usepackage{tikz} \begin{document} ...
3
votes
0answers
51 views

How to list all known pgfkeys?

Is there a way to list all known pgfkeys (i.e., those that are currently set)? Concretely, I'm looking for a way to get the value of the tikz scale option. I was hoping there would be a pgfkey for ...
3
votes
0answers
38 views

Tikz External vs. Overlay

While designing a title page in tikz I noticed a somewhat unwanted behaviour. When I use the externalize and the overlay option for a tikzpicture the output is just empty. MWE: \documentclass{book} ...
3
votes
0answers
108 views

Drawing a phase line diagram using TIkz/PGF

I have created a phase line diagram before using these two packages. The code is as follows, \documentclass{amsart} \usepackage{pgfplots} \usepackage{tikz} \newcommand*{\TickSize}{2pt}% ...
3
votes
0answers
61 views

Error using tikzexternalize when placing an image on the verso page

I am preparing a thesis in the same manner as detailed in this question. Namely, I am looking to write a thesis with the text appearing on the right (odd) page, and images appearing on the left ...
3
votes
0answers
74 views

\includegraphics not working with xelatex for PDFs with images in them

I switched to using xelatex so I could use a specific font, but now some images don't render. Here's a simplified example that illustrates the failure: % The next lines tell TeXShop to typeset with ...
3
votes
0answers
56 views

Doing surf plot with user defined colormap

I want to make pgfplot surf with my colormap rainbow. The funny thing is that I get error I do not know the key '/pgfplots/colormap/rainbow' and I am going to ignore it. Perhaps you misspelled it. ...
3
votes
0answers
71 views

tikz drawing layers?

I am using pdflatex to document as my program runs. My program prints out some tikz commands in a file, which is compiled by pdflatex offline. In some cases the order of the commmands is not what I ...
3
votes
0answers
72 views

Fill pattern for time series with bounds (tikz pgfplots) generates corrupt PDF

I have used the answer from another post, but the generated PDF seems to be corrupted using the suggested code. This post refers to question: Fill pattern for time series with bounds (tikz pgfplots) ...
3
votes
0answers
89 views

Tikz externalize not working when jobname is specified for main document

I'm not sure if it's a well known fact or not, but using the tikz externalization library does not work very well if a LaTeX document is compiled with a jobname that is different from the filename of ...
3
votes
0answers
18 views

Changes in the \pdfsavepos offset across MacTeX versions when in landscape through dvi

Recently, I hit an scenario where the issue discussed in TikZ: anchors of special node “current page” seem to be incorrect in landscape is critical for a document I'm generating, because of TikZ ...
3
votes
0answers
131 views

Draw non-uniform B-spline in Latex

I would like to draw the couple of spline curves in Latex. Is there anything I could use in tikz or other packages such that I could draw a spline curve by simply providing the control points value ...
3
votes
0answers
61 views

Is it possible to increase the line's width from its start to its end?

I was wondering if it is possible to let the line's width dynamically increase from its start to its end. I found such an illustration in a book: I am a TikZ noob but what I came up with would be ...
3
votes
0answers
88 views

Pgfplots: Transpose headrow as first column in: confusion matrix with colormaps / heatmaps

My question builds on code from this question: original question/answer What I am trying to achieve: I want to use pgfplots to build a table, where the header row is automatically added as first ...
3
votes
0answers
145 views

Pgfplots Boxplots with a thick line at the mean value

pgfplot produces nice looking plots, that have consistent look and feel. But sometimes you have a good reason to change that look, and I found it tricky to change style of an specific line, circle, ...
3
votes
0answers
197 views

How to select a range of data within a .csv file in latex using pgfplots?

I am generating a plot of data using pgfplots in latex. I am using data from several excel files as .csv. Here is the MWE: \documentclass[border=5mm,convert]{standalone} \usepackage{pgfplots} ...
3
votes
0answers
114 views

Problem to render blend groups with TikZ

I'm having trouble to blend colors with TikZ. The MWE below does not render the blend in my system. I'm on Windows Xp with MiKTeX 2.9 and the latest version of TikZ/PGF downloaded and installed from ...
3
votes
0answers
153 views

Drawing Cross Sections of (Contours over) Torus

I have this simple torus \begin{figure} \begin{center} \begin{pspicture}(-6,-4)(6,4) \psset{viewpoint=30 10 25 rtp2xyz,Decran=30,lightsrc=viewpoint} \psSolid[object=tore,r1=2.5,r0=1.0,ngrid=36 ...
3
votes
0answers
51 views

Using tikzexternalize and LuaLaTeX leads to display problems in viewer

I am using the following code \documentclass{report} \usepackage[ngerman]{babel} \usepackage{lmodern} \usepackage{tikz} \usetikzlibrary{external} \tikzset{external/system call={lualatex ...
3
votes
0answers
72 views

texexample, tikz: “Difference Quotient”, why does the curly brace decoration on the x-axis not need a `mirror` decoration option?

Consider the source code for the "difference quotient" example presented on TeXample: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % DIFFERENCE QUOTIENT % % Author: ...
3
votes
0answers
121 views

Make a Sheme in LaTeX Tikz?

I have this CSV-file ... Lineare Algebra TÜ [Übungsraum (3322-316)],01/28/15,08:15:00,01/28/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/04/15,08:15:00,02/04/15,10:00:00 Lineare Algebra ...
3
votes
0answers
200 views

Legend image arguments for the command `\addlegendimage`, 3d legend image

In the 3d plot I want to modify the third legend entry to only show the marks and not the line. From http://tex.stackexchange.com/a/113765/28093 I understood that I'm supposed to use something ...
3
votes
0answers
127 views

luatodonotes and tikz externalization won't mix

Consider the following code: documentclass[11pt]{report} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize %\usepackage{luatodonotes} \begin{document} \begin{tikzpicture} ...
3
votes
0answers
100 views

Drawing arrows using tikz package (fine tuning coordinates)

I am making some lecture slides for my class and sometimes I need to label the different components of the C/C++ program. For this I have referred to the post How can I draw arrows within a listing to ...
3
votes
0answers
147 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
3
votes
0answers
190 views

Matplotlib pgf backend returns “LaTeX returned an error, probably missing font or error in preamble” for all plots

I've spent the last few hours trying to get PGF backend to work. I was trying to use xelatex, but it wouldn't run at all. Now I have made this example: # -*- coding: utf-8 -*- import matplotlib as ...
3
votes
0answers
324 views

Solids of revolution using tikz or pgf

I've been looking here on TEX Stackexchange for a solution to create Solids of Revolution but I could'n find anything. The analysis that I make on this problem is, first, draw a 2-D graph, second, ...
3
votes
0answers
303 views

Why isn't pgf honouring my font selections for matplotlib-generated graphics?

I wanted to use a euro symbol in my axis descriptions for matplotlib plots saved as pgf files with the pgf backend. When I use the following code: import numpy as np import matplotlib.pyplot as mplot ...
3
votes
0answers
147 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
92 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
64 views

Adding prefix to TikZ node and coordinate names

This question is somewhat related to my search for a good practice to include TikZ stuff in my documents. Suppose a document (book) with a lot of formulas and equations which you have decorated with ...
3
votes
0answers
198 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
180 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
97 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
331 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
169 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
80 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
203 views

How to scale hatch in tikz figure in LaTeX?

I have ellipses with hatch. I want to use lines or bricks hatch but more rare than default. I can change spread between lines in this way Custom and built in TikZ fill patterns. It worked, but it's ...
3
votes
0answers
127 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
122 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
153 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
163 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
164 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
304 views

Custom tikz pattern: hatchangle

In PSTricks there exist the fillstyles vlines, hlines, crosshatch which have counterparts in tikz patterns library. However, in PSTricks they can be modified by following options: hatchwidth, ...
3
votes
0answers
172 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
222 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
231 views

callout with multiple pointers, how to design it

I know, that this question was asked more than year ago (see here), but given answer is limited to callouts without border line. Is there a way to improve there given answer with callout shape with ...