Incompatibility between Linux and XP

Hi Alan,

You'll see Python exceptions are obvious enough.

Here it looks like windows doesn't support the ".1".
Try 0.1 instead.

Hope it will solve the problem. :wink:
Regards,
Philippe Collet

路路路

Message: 6
Date: Thu, 24 Nov 2005 22:16:48 -0600
From: Alan Jackson <ajackson@...894...>
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Incompatibility between Linux and XP

I'm a new python user, basically trying to learn python using matplotlib
for a little project.

My code works fine on Linux, but it fails on Windows XP. I'm running
the latest version of Matplotlib and SciPy python, 2.3.3.

Before I go to a lot of effort to build a small demo program to show the
failure, I thought I would ask to see of there are known incompatibilities
between Linux and XP that might be causing my problem.

The line of code that seems to precipitate the failure is :

self.Cax_c = figtext(0.84, .1, '000')

that gives an error on Windows XP of :

.....matplotlib\text.py", line 665 in set_text
TypeError: This doesn't look like a string: '0.0'

Thanks!

Wasn't that simple... sigh. I'll keep looking.

路路路

On Fri, 25 Nov 2005 10:17:57 +0100 "philopensource@...32..." <philopensource@...32...> wrote:

Hi Alan,

You'll see Python exceptions are obvious enough.

Here it looks like windows doesn't support the ".1".
Try 0.1 instead.

Hope it will solve the problem. :wink:
Regards,
Philippe Collet

>Message: 6
>Date: Thu, 24 Nov 2005 22:16:48 -0600
>From: Alan Jackson <ajackson@...894...>
>To: matplotlib-users@lists.sourceforge.net
>Subject: [Matplotlib-users] Incompatibility between Linux and XP
>
>I'm a new python user, basically trying to learn python using matplotlib
>for a little project.
>
>My code works fine on Linux, but it fails on Windows XP. I'm running
>the latest version of Matplotlib and SciPy python, 2.3.3.
>
>Before I go to a lot of effort to build a small demo program to show the
>failure, I thought I would ask to see of there are known incompatibilities
>between Linux and XP that might be causing my problem.
>
>The line of code that seems to precipitate the failure is :
>
>self.Cax_c = figtext(0.84, .1, '000')
>
>that gives an error on Windows XP of :
>
>.....matplotlib\text.py", line 665 in set_text
>TypeError: This doesn't look like a string: '0.0'
>
>Thanks!
>

-------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
-----------------------------------------------------------------------

Alan K. Jackson | To see a World in a Grain of Sand |
alan@...895... | And a Heaven in a Wild Flower, |
www.ajackson.org | Hold Infinity in the palm of your hand |
Houston, Texas | And Eternity in an hour. - Blake |

-----------------------------------------------------------------------