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
118 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
359 views

Passing an array type argument for new command

I've looked around and can't seem to find anywhere, but I was wondering if there is somewhere you can do something like the following: \newcommand{\loopy}[1]{ \begin{tikzpicture} \foreach ...
3
votes
0answers
286 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
166 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
836 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
0answers
293 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
314 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
163 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
410 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
40 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
195 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
377 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
1k 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
628 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
91 views

Has anyone combined marginfix and tikzmark yet?

I am working on a big book project, and up until today I refrained from using glue. But now I had to, and, lo and behold, suddenly my margin notes' position is broken :( The reason is that marginfix ...
3
votes
0answers
676 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
607 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
792 views

Adding a background image with tikz poster

When using the tikzposter package, is it possible to add a background image? I currently have a colour gradient, and would preferably like to keep this intact, and superpose the image on top of that. ...
3
votes
0answers
441 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
3
votes
0answers
693 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 ...
2
votes
0answers
62 views

How to make 3D ribbon plots in PGF/TikZ

I'd like to make a bunch of 3D ribbon plots in TikZ or PGF, I've taken a look around and I've found no hints on how this might be accomplished, is there a simple way to do this? I'd settle for a 3D ...
2
votes
0answers
67 views

Turn a six sides into a 3 sides logo

How to change the codes below so that we have a triangular logo shape? \documentclass[tikz]{standalone} \usetikzlibrary{shapes.geometric} \tikzset{my polygon/.style={regular polygon,regular ...
2
votes
0answers
33 views

problem when using scope and rotate with tikz

I wish to take this picture with tikz turning figure generally this type of scheme does not ask me problem and I wrote the following code \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
49 views

How to draw (Cartesian, cylindrical, and spherical) coordinates and differential elements?

How to draw the following figures? I tried to do it myself, not an easy job, apparently! I did also find these relevant posts: For the 1st pic: 3D Cube within a cube? For the 2nd & 3rd pics: ...
2
votes
0answers
128 views

how to draw this using tikz?

I am trying to illustrate something like this using tikz or pstricks. I almost have what I want, which is essentially a 3 dimensional object spanned by the vector. I would like to add faces that ...
2
votes
0answers
43 views

stacking histograms in pgfplots

The stacking is not working correctly. This is what I get: This might be a problem of different bins, but even restricting them is not working (slightly related questions about common bins are ...
2
votes
0answers
39 views

Pull down a message thread in a pgf sequence diagram

Is it possible to somehow hack the sequence diagram to extend the thread of the received message on Some Server, that it will reach down to the next message notify? The code it the following one: ...
2
votes
0answers
37 views

Precision of \tkzCalcLength

I was typesetting a triangle with tkz-euclide, trying to automate the process as much as possible, and noticed that there is some calculation mistakes when using \tkzCalcLength and \tkzGetLength AND ...
2
votes
0answers
58 views

Blurred colormap using matlab2tikz to export Matlab imagesc picture

I'm using matlab2tikz to export imagesc figures into TikZ/pgfplots code. This process gives me a TikZ file and a rasterized png version of the image with colours matching the colourbar at the time of ...
2
votes
0answers
71 views

fading angle does not work?

I am trying to draw a figure of a dihedral angle. The figure is Think that the line OB is a river and the line AC is a bridge over the river. I want the colors to fade from the tops C and A toward ...
2
votes
0answers
46 views

Printout of TikZ colorbar gives wrong colors

I want to publish a PDF with a print-on-demand service, but the resulting hard copy has errors in the printed colorbars. The colorbar is generated with TikZ by \begin{tikzpicture} \begin{axis}[ ...
2
votes
0answers
33 views

How do I set /pgfplots/trig format?

I am trying out pgfplots: \documentclass[]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=0,xmax=2,ymin=0,ymax=1.25, samples=50, /pgfplots/trig format=rad] ...
2
votes
0answers
53 views

problem copying in the folder texmf

While I was trying to update my pgf version, I read something like I have to merge my folder in the texmf. I tried this, but I got the following error: The folder "pgf.tds" cannot be copied ...
2
votes
0answers
47 views

Translate plot data from file in tikz

I have some x,y coordinate data organised as two columns in my mydata.dat text file. I have no problem plotting this, but I want to plot the same data but just translated by some 2d Vector. My attempt ...
2
votes
0answers
33 views

Ignoring the space occupied by a character in a node command

I have two angle measurements that I want positioned along the imaginary angle bisectors of the angles. The space occupied by the "${}^\circ$" character shifts the position of the number too far from ...
2
votes
0answers
77 views

Two nodes not placed properly on a TikZ diagram

I have the code for a triangle. A median is drawn, and the marks for the measures of four angles are drawn. I have a question about the placement of the \theta and the \psi in the diagram. The code ...
2
votes
0answers
61 views

fill opacity, opacity, and draw opacity commands don't work at all - tikz, tikz3dplot

I'm new to tex.stackexchenge. I tried for many and many times to draw the circular shaded areas in red and orange in such a way to superimpose them in transparency (with an opacity parameter of 0.3) ...
2
votes
0answers
147 views

Draw an intersection of two planes

I use this code for producing the intersection of two planes: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture}[x={(240:0.8cm)}, y={(-10:1cm)}, z={(0,1cm)}, ...
2
votes
0answers
113 views

Type of sankey diagram

I searched and identified a type of sankey diagram that could show the software lifecycle as swimlanes and the tool chain used. I code basic tex but need some help. Are there libraries that can ...
2
votes
0answers
44 views

Working with lengths in node shape definition

This question is a bit tricky. I am trying to build symbols of flow charts for pneumatic circuits. I don't need that many elements, but I would like to be able to extend my collection similar to what ...
2
votes
0answers
61 views

Stepwise edge hightlighting (tikz) doesn't work with template

I'm just now working on a written paper for a presentation I've given and would like to reuse the graphs developed for the slides. Unfortunately the template given for the paper somehow screws with my ...
2
votes
0answers
60 views

TikZ plots samples count — the more, the better?

I plot a lot of spirals like this one: \draw[domain=0:2*pi, variable=\t, samples=500] plot[fixed point arithmetic] (1.2*exp(0.22*\t)*cos(deg(\t))}, {1.2*exp(0.22*\t)*sin(deg(\t))}); with ...
2
votes
0answers
57 views

Conditional compilation of a graph

Is there a way to avoid compiling a piece of TiKz code \begin{tikzpicture} ..... a heavy job here that takes 30 seconds to process \end{tikzpicture} so that, if we do not make changes on ...
2
votes
0answers
89 views

Webpages that show off beauty of LaTeX output relative to `competitors?'

There is a question (Showcase of beautiful typography done in TeX & friends) with many great answers showing off the great things one can accomplish with LaTeX. There are books (like Tufte's) ...
2
votes
0answers
61 views

Rotate scope about Y-axis in tikz

I have a cyclinder (solid) which is little tilted. I want to rotate it about Y-axis. Below is the code- \begin{tikzpicture} \begin{scope}[shift={(0,0)},rotate=30] \coordinate (ll) at (-2,0); ...
2
votes
0answers
70 views

3D effects for hollow and solid cylinder in tikz

I want to make following things in tikz- Solid Cylinder Hollow Cylinder The solid cylinder is little tilted and touching the top surface of hollow cylinder. The hollow cylinder is open from both ...
2
votes
0answers
74 views

TikZ: identify intersection points to draw function

Is it possible to just show the part of the blue function that is strictly greater than the red one? \begin{tikzpicture} [/pgf/declare function={ f=2; g=1.4*(x-2); h=.1*x*x+.2*x+.5;}] ...
2
votes
0answers
50 views

Coordinate naming in custom Tikz package

I want to make my own Tikz library/package or just a set of commands for making hydraulic diagrams within the Tikz environment. Say I want to draw a valve like (b) with the notation for the nodes in ...
2
votes
0answers
101 views

Interactive sliders in tikz

Is it possible to make an interactive picture or animation with tikz which has an interactive slider? The output format doesn't have to be pdf in this case, maybe also html or something else. The ...
2
votes
0answers
98 views

Drawing many bent paths [(n*(n+1))/2] in a nice way (tikz)

I have to draw a graph where many nodes (n=13) are all connected with paths to each other (k=78, k=[n*[n+1]]/2). The paths should be bent (APA style requires this for paths that symbolise correlations ...