Questions tagged [pgf]

PGF (Portable Graphics Format) is a plat­form- and for­mat-in­de­pen­dent macro pack­age for cre­at­ing graph­ics. It works to­gether with the most im­por­tant TeX back-end drivers and it comes with a user-friendly syn­tax layer called TikZ.

PGF (Portable Graphics Format) is a plat­form- and for­mat-in­de­pen­dent macro pack­age for cre­at­ing graph­ics. It works to­gether with the most im­por­tant TeX back-end drivers, in­clud­ing pdf­tex and dvips. It comes with a user-friendly syn­tax layer called TikZ.

PGF works with plain (pdf-)TEX, (pdf-)LATEX, and ConTEXt, and it can pro­duce either PostScript or PDF out­put.

Homepage: https://sourceforge.net/projects/pgf/.

Manual (v. 3.0.0): http://ctan.mirror.garr.it/mirrors/CTAN/graphics/pgf/base/doc/pgfmanual.pdf.

92 questions
1
vote
0 answers

Pgf backend in matplotlib doesn't use the defined fonts

Context: I'm producing a report with lot's of figures with some LateX content, and to maintain layout coherence I use a predefined mplstyle file with the following related definitions that I need to keep across the report. # FONT font.family:…
MrT77
  • 811
  • 6
  • 25
1
vote
1 answer

TikZ: Fill a circle with shading color by angle

Goal: Draw a semi-circle and fill it with line-gradient color that changes according to angle. For example, with angle from θ=0 to θ=π, it is expected that the filling color shades from red to blue. In tikz manual…
zengc
  • 97
  • 9
1
vote
1 answer

Confusion on TikZ and PGF LaTeX packages - what they are, how they are stored by MiKTeX, and how they are interpreted by LaTeX compilers

I use VSCode to write LaTeX using the LaTeX-Workshop VSCode extension, MiKTeX, and pdflatex. The LaTeX-Workshop extension comes with the handy feature of being able to hover packages and view their documentation, but I noticed that this feature does…
1
vote
0 answers

matplotlib axis tick labels moving up and down when exporting to pgf

I am plotting some function and use radians for the ticks of the x-axis. Looks great it matplotlib and when exported to png or svg, but when exporting to pgf, then π (and to a lower extent -π) is a lot closer to the x-axis than the other labels.…
laolux
  • 1,445
  • 1
  • 17
  • 28
1
vote
1 answer

matplotlib python: y-axis labels not aligned in PGF format

I am trying to create a heatmap in python with matplotlib. I will use the generated graphic in latex, which is why i am saving it in .pgf format. I have y-axis labels of varying length, which are not aligned correctly: heatmap in .pgf My…
1
vote
0 answers

Matplotlib's LaTeX run directory

Where is the LaTeX run directory for matplotlib? Are the LaTeX log files kept at all? I use pdflatex system to generate a ".pgf" plot, that I could insert into my LaTeX document. Unfortunately the python traceback shows only a small part of the log…
Horror Vacui
  • 195
  • 8
1
vote
1 answer

Plotting Exponentials Inside Logs in Latex pgfplots

I'm trying to add some plots to my document. I've been able to do so successfully before; but for some reason it's not working this time. I tried deleting everything except just one plot but I still get the same error. Let me just show the document…
J.D.
  • 139
  • 4
  • 14
1
vote
1 answer

How to draw a smooth curve in pgfplots? And how to remove y-axis ticks?

I'm preparing a presentation using Latex beamer. I've decided to include a plot. The middle curve is supposed to be a normal distribution; but it has sharp corners. Why is that? Also, can I remove the tick marks on the y-axis? Here is my…
J.D.
  • 139
  • 4
  • 14
1
vote
1 answer

Create data partition figure

I would like to create a figure in Latex similar to this (but then also with percentages in the blocks): And I managed to get this far…
jtsbattle
  • 185
  • 1
  • 8
1
vote
1 answer

How to set family keys with pgfkeys and a macro?

I want to set 2 keys of a pgfkeys-family using a macro : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgf} \begin{document} \pgfkeys{ /keys/.is family, /keys/.cd, test 1/.store in=\testone, test 1=unset, test…
1
vote
1 answer

How to import matplotlib pgf with colorbar into latex document

I have a matplotlib plot that has a colorbar. I am saving the figure as PGF so I can use in a latex document. Charts go into a different directory. When I import them, the colorbar is not shown. Inside the PGF file, there are some instructions: %%…
Juan Leni
  • 6,982
  • 5
  • 55
  • 87
1
vote
1 answer

matplotlib backend pgf version unknown

I'm getting a debug message from matplotlib with the pgf backend: matplotlib.backends DEBUG backend pgf version unknown My matplotlib setup is something like mpl.use("pgf") mpl.rc('text', usetex=True) mpl.rcParams['pgf.rcfonts'] =…
filippo
  • 5,197
  • 2
  • 21
  • 44
1
vote
1 answer

pgfplots with gnuplot: Unexpected behaviour: Why?

While I used pgfplots with gnuplot successfully several times, I cannot find the cause of the following problem: I'm trying to plot the graph of a function which you can see here: f(x)=(36/25) + (336*x)/125 - (6*x^2)/5 + (24*x^3)/125 - (x^4)/100.…
Sigmar2030
  • 13
  • 3
1
vote
1 answer

TikZ: plotting data file with missing values

I have this data: data2 is missing the third point. So I thought, I'd define two different x columns and assign data2 to x2. Problem: the third point of data1 goes up to 3 in the compiled graphic. If I have different and more values, points start…
Sophie
  • 13
  • 1
  • 5
1
vote
1 answer

pgfplots error: dimension too large

I am trying to generate a LaTeX pgfplot: \begin{tikzpicture} \begin{axis}[ xmin=.2,xmax=.5, ymin=-.00000000000000001,ymax=.00000000000000001, xlabel=Distance a (nm), ylabel=Force F…
dylhunn
  • 989
  • 2
  • 8
  • 25