Re: [Matplotlib-users] pdf Output Failing

2012-02-24 Thread Jouni K . Seppänen
Sean Lake  writes:

>   File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in 
> _register
> assert encoding is None
> AssertionError
>
> Do I perhaps need to rebuild matplotlib because of a LaTeX update?

You'll need to do one of:

1. upgrade to matplotlib v1.1.0
2. apply the patch at https://github.com/matplotlib/matplotlib/commit/708c451
3. edit your pdftex.map file to not specify multiple encodings for one font;
   in one case, the culprit was URWBookmanL-DemiBold aka pbkdo8y

I recommend upgrading, but if you're comfortable editing TeX
configuration files, number 3 is the easiest workaround.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] pdf Output Failing

2012-02-24 Thread Sean Lake
Hello all,

I'm using matplotlib 1.0.1 with python 2.7.2 (also 2.6.7) on Mac OSX 10.6.8 
installed via fink. I'm not sure at what point using pdf output using Agg 
stopped working. I can still use eps output, so I'm not sure what is going 
wrong. Here is the error I get:

  File "./PlotMagSeps.py", line 211, in 
plt.savefig(ofname, format=ofmt )
  File "/sw/lib/python2.7/site-packages/matplotlib/pyplot.py", line 363, in 
savefig
return fig.savefig(*args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/figure.py", line 1084, in 
savefig
self.canvas.print_figure(*args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 
1923, in print_figure
**kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 
1733, in print_pdf
return pdf.print_pdf(*args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", 
line 2156, in print_pdf
self.figure.draw(renderer)
  File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in 
draw_wrapper
draw(artist, renderer, *args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/figure.py", line 798, in draw
func(*args)
  File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in 
draw_wrapper
draw(artist, renderer, *args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/axes.py", line 1946, in draw
a.draw(renderer)
  File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in 
draw_wrapper
draw(artist, renderer, *args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/axis.py", line 1017, in draw
tick.draw(renderer)
  File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in 
draw_wrapper
draw(artist, renderer, *args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/axis.py", line 234, in draw
self.label1.draw(renderer)
  File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in 
draw_wrapper
draw(artist, renderer, *args, **kwargs)
  File "/sw/lib/python2.7/site-packages/matplotlib/text.py", line 571, in draw
self._fontproperties, angle)
  File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", 
line 1549, in draw_tex
psfont = self.tex_font_mapping(dvifont.texname)
  File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", 
line 1365, in tex_font_mapping
dviread.PsfontsMap(dviread.find_tex_file('pdftex.map'))
  File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 668, in 
__init__
self._parse(file)
  File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 701, in 
_parse
self._register(words)
  File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in 
_register
assert encoding is None
AssertionError

Do I perhaps need to rebuild matplotlib because of a LaTeX update?

Thanks,
Sean Lake
--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users