On Feb 15, 2012, at 0:04, Martin Costabel wrote:

> On 14/02/12 23:29, Sean Lake wrote:
> []
>> plt.savefig("asdf.pdf", "pdf")
> 
> I think this is a symtax error on your part. If you use
> 
> plt.savefig("asdf.pdf", format="pdf")
> 
> it will work.
> 
> What is strange is that you are running
> python2.7 (at least that's what is written in the first line of your script), 
> but your modules are taken from python2.6, as the error message
> 
>>  File "/sw/lib/python2.6/site-packages/matplotlib/pyplot.py", line 363, in 
>> savefig
> 
> indicates. This is not the cause of the error, however.
> 
> -- 
> Martin

Hello all,

Excellent! That problem's fixed, now I get the following error. I've tried 
moving /usr/local to make sure that my own texlive distribution isn't 
interfering. I've also tried removing /usr/bin/env from the front of the 
script, and that doesn't help, either. For what it's worth, I also get this 
error when trying to run a script that used to work fine.

Last, there's nothing odd about the original error - I said I see the problem 
in both python 2.6 and 2.7. I just copied the wrong one. :)

Thanks,
Sean

Traceback (most recent call last):
  File "./blah.py", line 34, in <module>
    plt.savefig("asdf.pdf", format="pdf")
  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
------------------------------------------------------------------------------
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/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to