PDF output

Hello,

I'm attaching the beginnings of a PDF backend. It doesn't implement
much of the backend protocol yet, but enough for this script to
produce the attached output:

  import matplotlib
  matplotlib.use('Pdf')
  from pylab import *
  x = arange(0, 10, 0.05)
  plot(x, sin(x), 'b-', lw=10, alpha=0.8)
  plot(x, cos(x), 'r-', lw=10, alpha=0.8)
  plot(x, cos(x+1), 'g-', lw=10, alpha=0.8)
  savefig('foo.pdf')

foo.pdf (16.1 KB)

backend_pdf.py (13.7 KB)

add_pdf.patch (1.31 KB)

···

--
Jouni

Nice work, Jouni.

···

On Wednesday 19 April 2006 1:31 am, Jouni K Seppanen wrote:

Hello,

I'm attaching the beginnings of a PDF backend. It doesn't implement
much of the backend protocol yet, but enough for this script to
produce the attached output:

  import matplotlib
  matplotlib.use('Pdf')
  from pylab import *
  x = arange(0, 10, 0.05)
  plot(x, sin(x), 'b-', lw=10, alpha=0.8)
  plot(x, cos(x), 'r-', lw=10, alpha=0.8)
  plot(x, cos(x+1), 'g-', lw=10, alpha=0.8)
  savefig('foo.pdf')