Exception after upgrading to 0.85

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception after upgrading to 0.85

Vinj Vinj
I get the following exception after upgrading from 0.84 to 0.85. My server is running on ubuntu with python 2.4:

setp(axMiddle.get_xticklabels(), rotation=45, horizontalalignment='right', fontsize=7)
  File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 1551, in setp
    ret = _setp(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/artist.py", line 468, in setp
    insp = ArtistInspector(h)
  File "/usr/lib/python2.4/site-packages/matplotlib/artist.py", line 260, in __init__
    if iterable(o): o = o[0]
 IndexError: list index out of range

any help would be appreciated.

VJ





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Exception after upgrading to 0.85

John Hunter-8
>>>>> "Vinj" == Vinj Vinj <[hidden email]> writes:

    Vinj> I get the following exception after upgrading from 0.84 to
    Vinj> 0.85. My server is running on ubuntu with python 2.4:

Try replacing that bit of code with

    if iterable(o) and len(o): o = o[0]

JDH


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re[2]: Exception after upgrading to 0.85

Alan G Isaac
>     Vinj> I get the following exception after upgrading
>     from 0.84 to
>     Vinj> 0.85. My server is running on ubuntu with python 2.4:

On Wed, 07 Dec 2005 07:57:23 -0600 John Hunter apparently wrote:
> Try replacing that bit of code with
>     if iterable(o) and len(o): o = o[0]



Recall a Python 2.4 oddity:

>>> x=[1,2,3,4]
>>> o=iter(x)
>>> len(o)
4
>>> o[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unindexable object

I understand iterables will return to their 2.3 behavior,
but for now we have this oddity.

Cheers,
Alan Isaac






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Exception after upgrading to 0.85

Vinj Vinj
Thanks John, That fixed the problem.

VJ

----- Original Message ----
From: Alan G Isaac <[hidden email]>
To: [hidden email]
Sent: Wednesday, December 07, 2005 10:38:54 AM
Subject: Re[2]: [Matplotlib-users] Exception after upgrading to 0.85

>     Vinj> I get the following exception after upgrading
>     from 0.84 to
>     Vinj> 0.85. My server is running on ubuntu with python 2.4:

On Wed, 07 Dec 2005 07:57:23 -0600 John Hunter apparently wrote:
> Try replacing that bit of code with
>     if iterable(o) and len(o): o = o[0]



Recall a Python 2.4 oddity:

>>> x=[1,2,3,4]
>>> o=iter(x)
>>> len(o)
4
>>> o[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unindexable object

I understand iterables will return to their 2.3 behavior,
but for now we have this oddity.

Cheers,
Alan Isaac






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users