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

How to use pgf backend to include hyperlink in matplotlib pdf plot?

I wish to include a hyperlink in a matplotlib plot, which I can output as a pdf (to later be inserted into a LaTeX document). I know this kind of question has been asked, but the solutions which I've seen only seem to give rise to some error. I'm…
njszym
  • 41
  • 7
1
vote
1 answer

Antialiased text rendering in matplotlib pgf backend

I have a question regarding the text rendering in the matplotlib pgf backend. I am using matplotlib to export .pdf files of my plots. In the section with the rcParameters I define that I want to use sans-serif and I want to use Helvetica as font.…
Ian
  • 1,688
  • 18
  • 35
1
vote
1 answer

Does the Matplotlib pgf backend support transparency?

I'm currently creating graphics usind the pgf backend for matplotlib. It works very well for integrating graphs generated in python in latex. However, transparency does not seem to be supported, even though I believe this should be possible in pgf.…
Underdetermined
  • 419
  • 4
  • 9
1
vote
0 answers

command line: Unable to access jarfile eps2pgf.jar

I'm working with a Mac OSX version 10.9.5 and I am a complete newbie to using the command line and running java files in it. I just downloaded the eps2pgf folder, I unzipped it and I downloaded JDK8. However when I try to run the command (thats…
1
vote
0 answers

Gnuplot not recognized in TexStudio

I use TexStudio 2.8.6 with MikTex 2.9 (full installation) in a Win-7 machine. So, gnuplottex package is available in the machine. Problem Can't get TexStudio to plot a simple graph with gnuplot + pgfplots in latex. Problem description I'm trying to…
mlomailom
  • 127
  • 1
  • 9
1
vote
1 answer

Problem with pgfplot label

I want to draw an x-y-diagram with axis labels. Unfortunately the ylabel is misplaced. It looks as depending on the actual data. When the other data line in the sample below is used instead of the upper line, it looks better. How can I move the…
harper
  • 13,345
  • 8
  • 56
  • 105
1
vote
1 answer

beamer "second screen" with XeLaTeX

I want to use beamer to project slides onto one screen and my notes onto a second screen. Beamer's show notes on second screen option is designed for this purpose. It requires the pgfpages package, and it is supposed to create PDF pages of…
user697473
  • 2,165
  • 1
  • 20
  • 47
1
vote
1 answer

matplotlib pgf savefig(pdf) fails

On a modern texlive installation on fedora 20, using pgf backend fails in savefig ('blah.pdf'). Example: # -*- coding: utf-8 -*- import matplotlib as mpl mpl.use("pgf") pgf_with_rc_fonts = { "font.family": "serif", "font.serif": [], …
nbecker
  • 1,645
  • 5
  • 17
  • 23
1
vote
1 answer

savefig PGF - RuntimeError: Cannot get window extent w/o renderer

I'm trying to save a figure in pyplot with tight margins. The following code works perfectly with a PDF output: from matplotlib import pyplot as plt plt.plot(1) plt.savefig('test.pdf', bbox_inches='tight') But not with PGF…
gozzilli
  • 8,089
  • 11
  • 56
  • 87
1
vote
2 answers

How can I force an array overflow?

I have a very odd problem related to the Portland Group FORTRAN 90 compiler. I am trying to run a code that relies on array overflow to work properly. I did not write this code! The originators had to compile it with the flag "-tp=piii" to force the…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
1
vote
2 answers

How could a simple optional argument lead to data corruption?

I have a FORTRAN code with a routine: SUBROUTINE READ_NC_VALS(NCID, RECID, VARNAME, VARDATA) integer ncid, recid character*(*) varname real*8 vardata dimension vardata(15,45,75) etc. I want to add some flexibility to this code, and I thought I…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
0
votes
0 answers

remove excess whitespace in matplotlib legend when exporting as PGF

I have a plot that i am exporting as .pgf for latex. the problem is that i cannot get rid off the whitespace inside the right side of the legend box. MWE below. i have skipped file reading and data preparation etc. Note that when i set pgf.rcfonts…
ptmva
  • 111
  • 1
  • 1
  • 5
0
votes
1 answer

How do you include a bold symbol in the axis when exporting a pgf figure using matplotlib?

I am having trouble exporting a plot I made using matplotlib to a pgf. Without the bold symbol in the axis label, there is no issue, but with I get an error. Here is my code: import seaborn as sns import numpy as np import matplotlib as…
0
votes
0 answers

Misaligned labels in PGF output from matplotlib

import matplotlib as mpl import pandas as pd mpl.rcParams.update({ 'figure.autolayout': True, }) df = pd.DataFrame(["one quite long phrase"]*3 + ["another"]*5 + ["a terribly long phrase"] * 2 + ["another…
wolvercote
  • 21
  • 1
0
votes
1 answer

matplotlib force denser major ticks on logaritmic axis of a small plot

I have a matplotlib plot with logartihmic X axis, that I want to save as pgf and include it into my latex document. At the desired size matplotlib does not label every round power of the base=10 in the X axis. On the other hand, if I increase the…
Horror Vacui
  • 195
  • 8