Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed as not planned
Milestone
Description
Now that#12674 landed, myhelper script has considerably shrinked and is now reduced to:
import matplotlib as mplfrom matplotlib.backends.backend_pgf import FigureCanvasPgfmpl.backend_bases.register_backend('pdf', FigureCanvasPgf)import matplotlib.pyplot as pltplt.style.use('pdf')
Could there be a way that using such apdf
style could do this backend registration? IIRC the biggest hurdle was that the backend must be registered before importing pyplot, but maybe things have (or could be) changed so that we could register thepgf
backend for PDF output in matplotlibrc/style configuration files. The end goal for me is getting right of this helper and just have
import matplotlib.pyplot as pltplt.style.use('pdf')
at the beginning of my notebooks. ;)
Thanks for consideration.