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
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.