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

Partial or entire Image Blurring in TikZ?

Partial or entire Image Blurring in TikZ? I have seen some examples of drop shadow blurring in the pgf-blur package version 1.01 by Martin Giese but this isn’t what I mean. Is it somehow possible to ...
4
votes
0answers
62 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} \begin{...
4
votes
0answers
79 views

Problem with decorations in a small TikZ picture

When working on yesterday's update on my answer to the december challenge (a dcorated tree), I encountered a problem: if I choose the picture's dimensions to small, then it fails with Dimension ...
4
votes
0answers
61 views

How to create anchors in a foreach loop when defining a new pgfshape?

I've defined a generic pressure vessel shape in Tikz with a varying number of connection ports. I want to define anchors for each connection port in a 'foreach' loop, but I can't get it to work ...
4
votes
0answers
93 views

package for drawing polyhedrons in tikz

I need to draw some polyhedrons and their truncated versions in TikZ (while PSTRICKS has but I prefer PDFLaTeX). Below is the codes that I modified from the website for the case of a octahedron. For ...
4
votes
0answers
126 views

Calculate x-coordinate for given y-value by interpolating data from pgfplotstable

I have a text file data.txt with the following content: -2 -2 +1 +0 +1 +3 +2 +4 +2 I read it with \pgfplotstableread{data.txt}\data and then plot the second column by the first column with \...
4
votes
0answers
76 views

How can I reliably and consistently save PGF keys filtered by path to a macro for later use?

I am trying to use PGF keys in TikZ with a relatively complex key tree. (Complex by my standards, that is - I'm sure it isn't that complicated in the scheme of things.) What I hoped to do is to ...
4
votes
0answers
124 views

PGF Contour Plot with complicated (nested) functions

I have succeeded in making a simple contour plot by using the function \newcommand\expr[2]{ (-#2^4+#2^2)*e^-(#2^2+#1^2) + (cos((-#1/1.85*pi-0.45) r)/2.0-#1/3.0)/1.5 } MWE: \documentclass{report} \...
4
votes
0answers
93 views

Hyperlink a rotated nodepart

I would like to have the entire node part a link. But, it seems that once you rotate, hyperref has issues. The reference below say to place the rotated content in the hyperlink, but not sure how to do ...
4
votes
0answers
274 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} \...
4
votes
0answers
190 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 72,...
4
votes
0answers
137 views

How can I get arrows to attach to outside of rectangle split in a graphdrawing layout?

I'm trying to make use of the newer (pgf > 3.0) graphdrawing layouts to do class diagrams, but I can't seem to figure out how to get arrows to attach to the outline of a rectangle split. I've read ...
4
votes
0answers
273 views

tikz-plots get recompiled every time when using tikzscale

For my thesis I have a lot of tikzplots exported from matlab using the matlab2tikz library. I want to use the tikzscale-Package together with externalization of the plots to save compiling time. Using ...
4
votes
0answers
169 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 ...
4
votes
0answers
4k views

TeX capacity exceeded, sorry [main memory size=5000000] with matlab2tikz and reduce_plot

Yet another Tex Capacity exceeded error. I am generating a matlab scatter plot which without modification resulted in a 64.5 MB printed eps file. Using that plot directly in matlab2tikz resulted in a ...
4
votes
0answers
151 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
0answers
220 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: \documentclass[tikz]{...
4
votes
0answers
309 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 ...
4
votes
0answers
201 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 ...
4
votes
0answers
218 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 0....
4
votes
0answers
188 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 (...
4
votes
0answers
729 views

pgfplots: howto read touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your TikZ figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
4
votes
0answers
684 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 ...
4
votes
0answers
373 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 ...
4
votes
0answers
610 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 ...
4
votes
0answers
524 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 ...
4
votes
0answers
323 views

Problems with pgfplots, loops inside tikzpicture and reading from files

I was trying to implement this method (How to import ASCII coordinates to TikZ) to import coordinates and draw them, but I am having this problem Undefined control sequence \end{tikzpicture} Extra }, ...
4
votes
0answers
238 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
335 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
664 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 ...
4
votes
0answers
782 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
46 views

Dimensions too large on plot

I'm trying to plot a Gauss function/normal distribution, based on the answer to this question, however my domain is 0:10000 and the sample size is 95. This is resulting on the following error: ...
3
votes
0answers
36 views

Badly aligned tikz objects and bad page-break in deluxetable

I am creating a table in latex, and I need to use a deluxetable environment. I use the package tikz to draw some circles in the table. The problem I am having is that I want to reposition those ...
3
votes
0answers
45 views

Fill pgfplot bars with colorbrewer

I want to use colorbrewer in my project since it provides color cycle lists but I struggle to use them in the right way I think. Please have a look at my MWE: \documentclass{article} \usepackage{...
3
votes
0answers
36 views

comma separated decimal numbers in pgf-pie

can anyone tell me what to redefine (if it is possible) in pgf-pie package (https://www.ctan.org/pkg/pgf-pie) if I want it to typeset decimal numbers separated by commas, not by periods? \...
3
votes
0answers
62 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
3
votes
0answers
42 views

Submit to arXiv failed because compiler doesn't know “tikz/rotate around y”

I'm trying to submit an article written in tex to arxiv but the compilation fails whereas it works on my laptop. The error message is ! Package pgfkeys Error: I do not know the key '/tikz/rotate ...
3
votes
0answers
171 views

Coordinate Transformation for labeling with PGF-Plot

Difficulty with drawing the right coordinates I use pgfplots to draw a set of data points, fit them with gnuplot and then find the intersection points between the linear fits and a vertical bar. Now ...
3
votes
0answers
43 views

Tikz image with remember picture combined with custom page numbering

I have a problem combining TIKZ-pictures when using custom pagenumbers. I modify my page numbers as shown in the upmost answer here. When drawing a simple TIKZ-image, I recieve the error ! Illegal ...
3
votes
0answers
41 views

Is there any way to reposition/shift the node text in tikz, without creating extra nodes?

I don't like the default positioning of the labels Q1 and Q2 below; is there a way to move or shift them relative to the circuit symbols? I know I could do \node[nigbt,label={something}] but it seems ...
3
votes
0answers
42 views

TikZ: wrong edge between split rectangles in graphs

Consider the following minimal example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing,shapes.multipart} \usegdlibrary{trees} \begin{document} \tikz[every node/....
3
votes
0answers
31 views

\maxsizebox resets color in TikZ \node

While trying to fix an issue in menukeys I think I found a possible bug in adjustbox: It seems to reset the text color in the node. In the following picture all words in the first line should be red, ...
3
votes
0answers
52 views

Remove the first and last values of xtick and ytick

I use the following code to create a tufte-like range plot as suggested here: Tufte like axis with pgfplots \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \makeatletter ...
3
votes
0answers
89 views

Circular flowchart alignment

I´m trying to create a circular flowchart using the smartdiagram package but I can't get the nodes properly aligned. My code: \smartdiagramset{border color=none,set color list={blue!40!,blue!40!,...
3
votes
0answers
49 views

Tikz version history information

I'm working on a package that works on top of tikz. It needs certain libraries (the tikz libraries quotes, positioning and intersections and the pgf library arrows.meta). Is there any way I can ...
3
votes
0answers
67 views

How to exclude items from a TikZ Spy

Somewhat related to this question, I would like to exclude items from the magnified area. In the example below, I do not want the pin lines or the orange line to appear in the magnified area. Is ...
3
votes
0answers
96 views

Appropriate values for `xmin`, `xmax`, `ymin`, `ymax`, or `unit vector ratio={a b}` to get asymptote

I would like to graph a function that has y=x as an asymptote. In the following code, I have $\sqrt{x^2 + x}$ plotted. It does not look like y=x is an asymptote to it. Are there values for xmin, ...
3
votes
0answers
123 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
78 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
75 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 ...