Re: [Tutor] pdf generation problem

2017-03-03 Thread Peter Otten
Jason Snyder wrote: > I have the following program where I am trying to generate a pdf: > > 1 import matplotlib > 2 matplotlib.use('AGG') > 3 import matplotlib.pyplot as plt > 4 import matplotlib.image as image > 5 import matplotlib.gridspec as gridspec > 6

Re: [Tutor] pdf generation problem

2017-03-03 Thread Alan Gauld via Tutor
On 04/03/17 00:28, Jason Snyder wrote: > I have the following program where I am trying to generate a pdf: > 6 from matplotlib.backends.backend_pdf import PdfPages > 7 import numpy as np > 13 with PdfPages('wx_plot.pdf') as pdf: > When I run it I get the following error: > >

[Tutor] pdf generation problem

2017-03-03 Thread Jason Snyder
I have the following program where I am trying to generate a pdf: 1 import matplotlib 2 matplotlib.use('AGG') 3 import matplotlib.pyplot as plt 4 import matplotlib.image as image 5 import matplotlib.gridspec as gridspec 6 from matplotlib.backends.backend_pdf