autoscale question

Hi,

I have matplotlib 0.90.1 on YellowDog 3 PPC with Python 2.5 and all
the support libraries built by hand, and matplotlib-0.90.1 on Ubuntu
Feisty x86 via `aptitude install`. And let's say I have:

import pylab
pylab.plot([2.2, 2.3, 2.4], [0, 5, 1])
pylab.show()

Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and
on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I
am attempting to resolve an autoscale problem elsewhere, and I must of
screwed something up when I built matplotlib. But what?

Thanks.

-Tom

Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and
on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I
am attempting to resolve an autoscale problem elsewhere, and I must of
screwed something up when I built matplotlib. But what?

The only explanation that makes sense to me is that you are picking up
different versions of mpl. Did you ever install from svn on any
system? You can print

import matplotlib
print matplotlib.__version__

but that doesn't always help, because frequently different svn
versions will print the same version number. We should adopt the
numpy and scipy system of tagging the version w/ the svn revision
number....

JDH

···

On 8/22/07, Tom Vaughan <tom@...1703...> wrote:

> Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and
> on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I
> am attempting to resolve an autoscale problem elsewhere, and I must of
> screwed something up when I built matplotlib. But what?

The only explanation that makes sense to me is that you are picking up
different versions of mpl. Did you ever install from svn on any
system? You can print

>>> import matplotlib
>>> print matplotlib.__version__

but that doesn't always help, because frequently different svn
versions will print the same version number. We should adopt the
numpy and scipy system of tagging the version w/ the svn revision
number....

JDH

sorry for the tardy reply (fsck'd mail filter)...

on yellowdog 3...

Python 2.5.1 (r251:54863, Jun 21 2007, 14:27:05)
[GCC 4.1.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import matplotlib
print matplotlib.__version__

0.90.1

on ubuntu feisty...

Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import matplotlib
print matplotlib.__version__

0.87.7

funny. i thought these were the same version. so is the 0.90.1
behaviour the correct behavior?

thanks.

-tom

···

On 8/22/07, John Hunter <jdh2358@...287...> wrote:

On 8/22/07, Tom Vaughan <tom@...1703...> wrote: