On Feb 20, 5:12 am, David Joyner <[email protected]> wrote:
Hi David,
> I don't know if this is helpful or not but here is what I get
> (ubuntu 8.04, sage-3.3.alpha1):
>
> sage: import pylab
> sage: pylab.clf()
> sage: pylab.figure(1)
> <matplotlib.figure.Figure object at 0x69e9150>
> sage: xs = range(1,10000,100)
> sage: pylab.plot(xs, bits24_original, label="$S_n$")
> ---------------------------------------------------------------------------
> NameError Traceback (most recent call last)
>
> /home/wdj/.sage/temp/tinah/11106/_home_wdj_teaching_sm212_grades_record_sag
> e_25.py
> in <module>()
> ----> 1
> 2
> 3
> 4
> 5
>
> NameError: name 'bits24_original' is not defined
> sage: pylab.legend(loc=2)
> /home/wdj/sagefiles/sage-3.3.alpha1/local/lib/python2.5/site-packages/matpl
> otlib/axes.py:3590:
> UserWarning: No labeled objects found. Use label='...' kwarg on
> individual plots.
> warnings.warn("No labeled objects found. Use label='...' kwarg on
> individual plots.")
> sage: pylab.ylabel("iterations")
> <matplotlib.text.Text object at 0x6dd7d90>
> sage: pylab.xlabel("x")
> <matplotlib.text.Text object at 0x6ddaa90>
> sage: pylab.grid(b=True)
> sage: pylab.savefig('/home/wdj/sagefiles/graph.svg',dpi=1000)
>
> It saves a graph with labeled axes but no plot. I don't understand the error
> messages (either for your code or for mine) produced though.
Pylab has some issues at the moment it seems. One such error in
3.3.rc2 is here:
http://trac.sagemath.org/sage_trac/ticket/5301
I think this greatly depends on which backend is installed, but this
is pure speculation at this point.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---