I posted the below to the matplotlib users list with no response. I
was wondering if someone here could help. Since using the matplotlib
gui is not the standard option in the matplotlib spkg, this may be
difficult to debug:
On Mac OS X 10.6.2, with Sage 4.3.1, I have installed
matplotlib-0.99.1.p4.spkg with
gui backend (to do this, I set SAGE_MATPLOTLIB_GUI=True before using
sage's
spkg installer).
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. This also happens for the legends.
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 temporary workaround would be appreciated. I often use
sage just as a python distribution, so a matplotlib gui version is
useful.
Art.