On Mac OS X 10.6.2, with Sage 4.3.1, I have installed matplotlib-0.99.1 with
gui backend (to do this, I set SAGE_MATPLOTLIB_GUI=True before using sage's
spkg installer, which performs some patches on matplotlib that ).

When I use the OS X backend and do:

import matplotlib.pyplot as plt
plt.figure()
plt.plot([1,2,3,4])

I get a plot that has as evenly spaced x-labels [0.,0.,1.,1.,2.,2.,3.] and
y-labels [1.,1.,2.,2.,3.,3.,4.].

If I try,

plt.plot([10, 20, 30, 40])

I get y-labels [1,1,2,2,3,3,4]. It seems there is an issue with rendering
the last digit for the labels.

If I use the TkAgg backend, the axes are labeled correctly.

However, on the same machine, with EPD 6.0 installed and Mac OX backend, the
labels are correct.

Any tips, even temorary workaround would be appreciated. I primarily use
sage, but in the default build, it doesn't include a gui backend. Wanted to
check here before I ask the sage users list.

Art.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to