[sage-support] Re: bar chart fails in pylab

2008-06-02 Thread Marshall Hampton
It sounds like the above solutions worked for you, but to avoid changing global names and options which might cause other side effects you could also do: import pylab as p p.close() pos=p.arange(4.0,dtype=float) width=float(0.35) dat=p.array([-2.0,10.4,30.0,29.9],dtype=float) p.bar(pos,dat,width,

[sage-support] Re: bar chart fails in pylab

2008-06-01 Thread tkeller
This worked perfectly. Thanks again. Thomas On Jun 1, 3:05 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > Hi Thomas, > > The issue comes from Pylab not knowing how to deal with instances of > Sage's RealNumber class.  When you do "4.0" from the command line, it > gets changed into "RealNumber('4

[sage-support] Re: bar chart fails in pylab

2008-06-01 Thread Mike Hansen
Hi Thomas, The issue comes from Pylab not knowing how to deal with instances of Sage's RealNumber class. When you do "4.0" from the command line, it gets changed into "RealNumber('4.0')". You can see this with the following commands: sage: preparse('4.0') "RealNumber('4.0')" In order to get P