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

PGF: draw longitudinal arcs in 3D axis environment

I want to draw a sphere, similar to the first one here: http://www.texample.net/tikz/examples/map-projections/ But - of course - different. This is, what I did so far: The dashed lines are behind ...
3
votes
0answers
153 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
102 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
77 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
43 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
86 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
162 views

tikz-3dplot, geodesics and adressing endpoints in polar coordinates

I am trying to draw geodesics on a sphere. While many approaches, like for example this one, i am more interested in another way. If i specify two points, say qand p on the Sphere, i would like to ...
3
votes
0answers
145 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
127 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
69 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
215 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
112 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
69 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
59 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
94 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
99 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
93 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
123 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
118 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
202 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
138 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
189 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
138 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 ...
3
votes
0answers
95 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
3
votes
0answers
163 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
130 views

Fork down edge style with Tikz 3.0 tree graph

When node/child style is used, it is possible to achieve fork down edge style picured here: What would be the syntax for the similar edge style, but using graph? The below MWE produces sloped ...
3
votes
0answers
256 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
207 views

Draw register map with TikZ

I was wondering if there was a way to easily draw a register map (like the one below) in LaTeX, possibly in TikZ? The closest I've gotten is just using the tabular environment and that's not even ...
3
votes
0answers
217 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
395 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
233 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
131 views

Tikz: shading region bounded by several curves with previously named path

This two questions have been answered separatly it should be interesting to be able to shade a region using previously named pathes. Is there a possibility to combine this two macros ? ...
3
votes
0answers
317 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
35 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
162 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
3
votes
0answers
141 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
259 views

load tikz library from relative path

I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it tikzlibraryname.code.tex. Then it can be ...
3
votes
0answers
242 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
708 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
487 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
109 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
3
votes
0answers
524 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
518 views

TikZ: scaling the tikz picture environment

If I scale the TikZ picture environment, everything should scale by a factor of x correct? If that is the case, why would some code not scale or scale incorrectly when it is in the environment? For ...
3
votes
0answers
542 views

How to fit dot graph with dot2tex(i)

Currently I used the dot -Tpng to include graphs in my LaTeX document. However it produced sometimes suboptimal graphics I wanted to look into dot2tex(i). The problem I encountered is that previously ...
3
votes
0answers
369 views

Scale TikZ nodes and shapes for a given canvas size

I have the following code to produce an hexagon coverage area: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usetikzlibrary{positioning} \usetikzlibrary{calc} ...
2
votes
0answers
27 views

adding a loop to each part of an equation to label it

How I can lebel each part of an equation (when I click it will go the the second term and so on) as in this image?,
2
votes
0answers
31 views

Putting repeated symbols along a path with decorations?

I have a drawing of a curved-plate capacitor: \documentclass[]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[ ...
2
votes
0answers
40 views

Positioning of named nodes and paths within groupplot environments

I am having issues with pgf, pgfplots and the groupplots library. The issue is best explained with an example \documentclass[tikz]{standalone} \usepackage{pgfplots} %\pgfplotsset{compat=1.12} ...
2
votes
0answers
54 views

Animating tikz pictures using beamer

I have two pictures drawn using TikZ. When I place them in two different frames in beamer they perfectly show up. But I want to animate them, that is, I want one picture after the other at a mouse ...
2
votes
0answers
41 views

svg package interfers with opacity

As soon as I load the package svg, tikz does not handle opacity any longer. Here, an example: \documentclass{article} \usepackage{tikz} \usepackage{svg} \begin{document} \begin{tikzpicture} ...