On Jan 2, 2008 1:57 PM, William Stein <[EMAIL PROTECTED]> wrote:
>
> On Jan 2, 2008 9:47 AM, David Joyner <[EMAIL PROTECTED]> wrote:
> >
> > (1) I get the same failure after hg_sage.pull().
> >
> > (2) I ssh'd into sage.math and tried the commands and got much worst errors:
> >
> > sage: from pylab import *
> >
> > Bad key "lines.markeredgecolor" on line 48 in
> > /home/wdj/.sage//matplotlibrc.
> > You probably need to get an updated matplotlibrc file from
>
> Delete
>     /home/wdj/.sage//matplotlibrc
> and try again.  You have a hopelessly out of date version
> of that file (as it says above).


That didn't work either.

In fact, I tried a fresh install of 2.9.1.1 from source (this is why
my response is so
delayed) and got the same error as I reported in the beginning.


>
>
> > http://matplotlib.sf.net/matplotlibrc or from the matplotlib source
> > distribution
> >
> > Bad key "lines.markerfacecolor" on line 47 in
> > /home/wdj/.sage//matplotlibrc.
> > You probably need to get an updated matplotlibrc file from
> > http://matplotlib.sf.net/matplotlibrc or from the matplotlib source
> > distribution
> > /home/was/s/local/lib/python2.5/site-packages/matplotlib/numerix/__init__.py:79:
> > DeprecationWarning: Numeric use as a numerix backed for matplotlib is
> > deprecated
> >   DeprecationWarning, stacklevel=1)
> > ---------------------------------------------------------------------------
> > <type 'exceptions.ImportError'>           Traceback (most recent call last)
> > ...
> >
> >
> >
> > On Jan 2, 2008 3:09 AM, William Stein <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Dec 28, 2007 8:08 PM, David Joyner <[EMAIL PROTECTED]> wrote:
> > > > > I just pasted that in exactly in Sage at the command line and it 
> > > > > worked
> > > > > fine.  Above you say "it doesn't work".  What is the error?!!
> > > >
> > > > The errors below were the same on both an ubuntu 64bit machine and
> > > > an intel macbook.
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > | SAGE Version 2.9.1.1, Release Date: 2007-12-25                     |
> > > > | Type notebook() for the GUI, and license() for information.        |
> > > > ----------------------------------------------------------------------
> > > > sage: from pylab import *
> > > > sage: # make a square figure and axes
> > > > sage: figure(1, figsize=(8,8))
> > > > <matplotlib.figure.Figure instance at 0x3991758>
> > > > sage: ax = axes([0.1, 0.1, 0.8, 0.8])
> > > > sage: labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
> > > > sage: fracs = [15,30,45, 10]
> > > > sage: figure(1)
> > > > <matplotlib.figure.Figure instance at 0x3991758>
> > > > sage: pie(fracs, labels=labels)
> > > >
> > > > ([<matplotlib.patches.Wedge instance at 0x3a32a70>,
> > > >   <matplotlib.patches.Wedge instance at 0x3a32b90>,
> > > >   <matplotlib.patches.Wedge instance at 0x3a32cf8>,
> > > >   <matplotlib.patches.Wedge instance at 0x3a32e60>],
> > > >  [<matplotlib.text.Text instance at 0x3a32b00>,
> > > >   <matplotlib.text.Text instance at 0x3a32c68>,
> > > >   <matplotlib.text.Text instance at 0x3a32dd0>,
> > > >   <matplotlib.text.Text instance at 0x3a32f38>])
> > > > sage: # figure(2) showa some optional features.  autopct is used to 
> > > > label
> > > > sage: # the percentage of the pie, and can be a format string or a 
> > > > function
> > > > sage: # which takes a percentage and returns a string.  explode is a
> > > > sage: # len(fracs) sequuence which gives the fraction of the radius to
> > > > sage: # offset that slice.
> > > > sage: figure(2, figsize=(8,8))
> > > > <matplotlib.figure.Figure instance at 0x3a340e0>
> > > > sage: explode=(0, 0.05, 0, 0)
> > > > sage: pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%', 
> > > > shadow=True)
> > > > ---------------------------------------------------------------------------
> > > > <type 'exceptions.TypeError'>             Traceback (most recent call 
> > > > last)
> > > >
> > > > /mnt/drive_hda1/sagefiles/sage-2.8.13.alpha1/<ipython console> in 
> > > > <module>()
> > > >
> > > > /home/wdj/wdj/sagefiles/sage-2.8.13.alpha1/local/lib/python2.5/site-packages/matplotlib/pyplot.py
> > > > in pie(*args, **kwargs)
> > > >    1757         hold(h)
> > > >    1758     try:
> > > > -> 1759         ret =  gca().pie(*args, **kwargs)
> > > >    1760         draw_if_interactive()
> > > >    1761     except:
> > > >
> > > > /home/wdj/wdj/sagefiles/sage-2.8.13.alpha1/local/lib/python2.5/site-packages/matplotlib/axes.py
> > > > in update_datalim(self, xys)
> > > >    1178
> > > >    1179
> > > > -> 1180         self.dataLim.update_numerix_xy(xys, -1)
> > > >    1181
> > > >    1182
> > > >
> > > > <type 'exceptions.TypeError'>: Bbox::update_numerix_xy expected numerix 
> > > > array
> > > > sage: savefig('/home/wdj/pie_demo')
> > > > sage:
> > >
> > > There is very likely something wrong with your sage install or something
> > > incomplete about the upgrade or merge.   Make sure to do
> > >
> > >    sage: hg_sage.pull()
> > >
> > > etc.    Try on sage.math using the system-wide sage and you'll see that
> > > the above works.  The error you get was, I think (maybe wrong), the
> > > sort of thing
> > > I had to fix in the sage library when updating the matplotlib spkg.
> > >
> > >
> > > William
> > >
> > > >
> > >
> >
> >
> > >
> >
>
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to