Hi Pong,

Huh, that is weird.    I wonder if perhaps the syntax/meaning of graph 
plotting changed somewhat recently? At any rate I can confirm the same 
problem.  It does seem to work at the command line.

On Monday, November 11, 2013 3:34:40 PM UTC-5, pong wrote:
>
> I have just re-run on an old latex file which uses sageplot. It seems to 
> be broken.
>
> However, the exact same codes (which I attached) work with sage 5.9 on 
> another machine.
>
> The problem does not seem to be coming from sagetex.sty since they are 
> exactly the same on both machines.
>
> Any fix or get around to the problem?
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
> Processing Sage code for testplot.tex...
> Code block begin...end
> Initializing plots directory
> Plot 0
> **** Error in Sage code on line 10 of testplot.tex! Traceback follows.
> Traceback (most recent call last):
>   File "testplot.sagetex.py", line 15, in <module>
>     _st_.plot(_sage_const_0 , format='notprovided', 
> _p_=G.plot(),figsize=[_sage_const_3 ,_sage_const_3 ])
>   File "/opt/sage/local/lib/python2.7/site-packages/sagetex.py", line 252, 
> in plot
>     _p_.save(filename=plotfilename, **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 
> 458, in wrapper
>     return func(*args, **kwds)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/sage/plot/graphics.py", line 
> 2732, in save
>     transparent=transparent)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/figure.py", 
> line 1370, in savefig
>     self.canvas.print_figure(*args, **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", 
> line 2055, in print_figure
>     **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", 
> line 1848, in print_pdf
>     return pdf.print_pdf(*args, **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py",
>  
> line 2301, in print_pdf
>     self.figure.draw(renderer)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/artist.py", 
> line 54, in draw_wrapper
>     draw(artist, renderer, *args, **kwargs)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/figure.py", 
> line 1006, in draw
>     func(*args)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/artist.py", 
> line 54, in draw_wrapper
>     draw(artist, renderer, *args, **kwargs)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/axes.py", 
> line 2086, in draw
>     a.draw(renderer)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/artist.py", 
> line 54, in draw_wrapper
>     draw(artist, renderer, *args, **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/collections.py", 
> line 695, in draw
>     return Collection.draw(self, renderer)
>   File "/opt/sage/local/lib/python2.7/site-packages/matplotlib/artist.py", 
> line 54, in draw_wrapper
>     draw(artist, renderer, *args, **kwargs)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/collections.py", 
> line 259, in draw
>     self._offset_position)
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py",
>  
> line 1548, in draw_path_collection
>     output(*self.gc.pop())
>   File 
> "/opt/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py",
>  
> line 2093, in pop
>     assert self.parent is not None
> AssertionError
> **** Running Sage on testplot.sage failed! Fix testplot.tex and try again.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to