The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [tikz-pgf]

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.

892 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
19
votes
0answers
275 views

Symbolic 3d coordinates in TikZ

Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ, \path (<x>,<y&...
11
votes
0answers
852 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 ...
10
votes
1answer
329 views

How to draw 1D mesh with polynomial order?

I would like to draw both the approximated solution and the mesh (including the polynomial order). The example I have in mind is the following: (from http://dx.doi.org/10.1201/9781420011692) My ...
9
votes
0answers
666 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
8
votes
0answers
5k views

How to incorporate and scale matplotlib plots in latex using the PGF backend?

I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily. Example python code: #!/usr/bin/env python ...
6
votes
0answers
712 views

Typesetting graphs of Turing machines

I have to typeset a lot of graphs of automatons looking like this. Therefore, I spent a lot of effort on introducing a simplied syntax based on TikZ. I got much help from here working out one or the ...
6
votes
1answer
222 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 ...
6
votes
0answers
328 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 ...
6
votes
0answers
10k 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 ...
5
votes
0answers
107 views

How to draw this picture (spiral tree) in tikz?

How to draw this pictures: Minimum working example: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[very thick, font=\small, scale=1.0, ...
5
votes
0answers
194 views

`imshow` like diplay of image with colormap

I would like to show an originally gray scale image with a specific colormap like matlabs/matplotlibs imshow. Original: % python import matplotlib.pyplot as plt import matplotlib.image as mpimg ...
5
votes
0answers
131 views

Tikz externalize resulting in legends with wrong style

I have an issue that has already been discussed in some form for example here and here but I have not been able to resolve it with the hints/solutions given there. Please consider the following ...
5
votes
0answers
127 views

One tcbcolorbox with alternative color in different lines

This is what I want to get This is what I already have \documentclass{article} \usepackage{geometry} \geometry{left=2.5cm,right=2cm,top=2.5cm,bottom=2.5cm} \usepackage{fontawesome} \usepackage{...
5
votes
0answers
584 views

Technical drawing in LaTeX

I am aware of some questions regarding technical drawings in LaTeX, e.g., Technical Drawing Using LaTeX, Dimensioning of a technical drawing in TikZ, Technical Drawing Fill that address only parts, ...
5
votes
0answers
83 views

How can I get correct spacing when reusing Forest trees and when calign is center (default), last etc.?

Forest allows me to reuse (part of) a tree in another tree. However, when calign has certain values, including the default center, this does strange things to the spacing of some nodes. How can this ...
5
votes
0answers
387 views

PGFPlots fillbetween layer issue with main layer

I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move ...
5
votes
0answers
2k 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 ...
5
votes
0answers
392 views

How to layout large edge labels in dot2texi?

I never got to layout (arbitrary) large edge labels in a dot2tex section. The problem is that the size of the layout has no effect of the layout and the rendering is only based on the default edge ...
5
votes
0answers
1k 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 ...
4
votes
0answers
40 views

Change Path Color at Specified Points (to Tricolor Trefoil Knot)

I am currently teaching myself Knot Theory and am looking to draw related diagrams using TikZ. Using the knots library and a foreach loop, I have written a pretty solid code for drawing a monocolor ...
4
votes
0answers
65 views

Why xelatex renders arrows in tikz figures differently than lualatex?

My document can be produced with the following code: \documentclass{beamer} % only frames ...
4
votes
0answers
61 views

Draw circle connection bar between two (or more) nodes of different tikzpictures

I tried to find something as identical as possible to this question but did not find it. If so, please let me know. I want to connect two nodes that are in different tikzpicture environments through ...
4
votes
0answers
200 views

TikZ Arrowheads for Asymptote

For some figures, I need Asymptote over TikZ. However, I like the arrowheads in TikZ more than I do the arrowheads in Asymptote, particularly the stealth' arrowhead in TikZ. Is there a way to create ...
4
votes
0answers
129 views

Better arrows in math to match tikz-cd diagrams

The underlying problem I find the arrow tip in the Lucida Bright \rightarrow, hence in \to and \mapsto, to be too small, especially at smaller font sizes. Likewise, I find the Lucida Bright \relbar,...
4
votes
0answers
56 views

Tikz intersection without extending the paths till they intersect

The below MWE draws a certain isosceles triangle: \documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{intersections, positioning} \begin{document}% \begin{tikzpicture} \coordinate (A) at (...
4
votes
0answers
47 views

No decoration is dropped when the total length of the decoration list exceeds the length of the input path (a possible bug)

Just want to run this by the good people of tex.stackexchange before I submit this as a bug. Consider the following LaTeX manuscript featuring a pgf picture of a 2cm long horizontal line that is ...
4
votes
0answers
568 views

Tikz automated layout of nodes and routing of edges for complicated flow diagram

I have a master, "all-encompassing" (but non-standard) flow-diagram on the whiteboard to explain a methodology to readers of a journal article that I am writing. The problem is that I am unsure of ...
4
votes
0answers
150 views

Battery Voltages Diagram Help

I tried to redraw this figure: I was able to get this far: Can you please help me with that? My Code \documentclass[]{article} \usepackage{tikz} \usepackage{circuitikz} ...
4
votes
0answers
686 views

How to install pdftops?

I use MikTeX + TeXstudio and use to TikzEdt to draw graphics. I want to export figures from TikzEdt to TeX. As I know, firstly I shall install pdftops to transform figures in order to .eps format. ...
4
votes
0answers
64 views

topaths ending with at end

The following code displays the problem \documentclass{article} \usepackage{tikz} \usetikzlibrary{circuits} \begin{document} \begin{tikzpicture}[circuit] \draw (0,0) to [circuit handle symbol={...
4
votes
0answers
287 views

TeXPad: erroneous alignment in TikZ diagram

If I compile the following code on my MacBook Pro (TeXLive 2016), there is no problem at all. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,3) --...
4
votes
0answers
311 views

Braids diagrams and quantum groups

I need to include some graphical proofs of quantum groups theorem, looking like the one below: It's very similar to the braids package, but I also need to include operators, like the S in the circle. ...
4
votes
0answers
179 views

What is the preferred mechanism for reuse/encapsulation in TikZ?

I'm just starting out in TikZ, and I'm noticing a lot of friction around the issues of encapsulation and reuse, so I figure I must be missing some best practices. I want to create a multi-panel figure ...
4
votes
0answers
159 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
899 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
1k 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, ...
4
votes
0answers
276 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
303 views

Tikz Sphere without using Shade

I am using following graphic in my beamer slides I use evince pdf viewer and I find that the pdf displays very slowly. When I click for next page, it appears around 15-20 seconds later. I have a ...
4
votes
0answers
380 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
679 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, ...
4
votes
0answers
244 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 edges: ...
4
votes
0answers
652 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 ...
4
votes
0answers
1k 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
786 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
655 views

Chains in nested tikz pictures

I am trying to draw a complex item (consisting of multiple \nodes) as a cohesive whole using a nested \tikzpicture. My outermost picture uses a chain, onto which every \node is put. My inner picture ...
4
votes
0answers
66 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.) ...
4
votes
1answer
532 views

Any way to integrate WaveDrom with LaTeX?

I know about the TikZ package for drawing timing diagrams, but WaveDrom is just so much simpler to use for me. Is there any way to integrate the WaveJSON into my LaTeX document, and make pdflatex ...
3
votes
0answers
130 views

possible (major) bug with pgfplot axis labeling?

I tried compiling a bunch of files today, all of which use tikzpictures and pgfplots. Something truly odd is happening with how the y-axis label is being positioned. I took the MWE from Positioning ...
3
votes
0answers
35 views

Why does \tkzMarkAngle increase the size of the following points?

\tkzMarkAngle is affecting the size of the following points. Is there any logical explanation to this strange behavior? Without \tkzMarkAngle (Normal point size) \documentclass[tikz,border=10pt]{...
3
votes
0answers
40 views

Align pgfplots horizontally

I want to align the pgfplots seen in the picture below. I already tried with \pgfplotsset{yticklabel style={text width=3em,align=right}}, but as you can see, the plots are still not aligned. The ...