matplotlib/matplotlib — Issue #712: Possible bug in ScalarFormatter
Author: nilswagner01
Created: 2012-02-23 14:47:25+00:00
State: open

from matplotlib.ticker import ScalarFormatter
formatter = ScalarFormatter(useMathText=True,useOffset=False)
formatter.set_scientific(True)
formatter.set_powerlimits((-15,12))
print dir (formatter)
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.yaxis.set_major_formatter(formatter)

import numpy as np

A = np.array([
[ 1., 0.000000E+00, 0.000000E+00],
[ 2., 1.000000E-03, 4.513195E-14],
[ 3., 2.000000E-03, -7.520010E-13],
[ 4., 3.000000E-03, -5.465278E-12],
[ 5., 4.000000E-03, -1.002687E-11],
[ 6., 5.000000E-03, -2.002648E-12],
[ 7., 6.000000E-03, 8.275591E-12],
[ 8., 7.000000E-03, 9.795011E-12],
[ 9., 8.000000E-03, 1.414932E-11],
[10., 9.000001E-03, 1.003241E-11],
[11., 1.000000E-02, 1.035293E-12],
[12., 1.100000E-02, -4.038256E-13],
[13., 1.200000E-02, -9.699483E-12],
[14., 1.300000E-02, -1.505963E-11],
[15., 1.400000E-02, -1.013211E-11],
[16., 1.500000E-02, -6.609537E-12],
[17., 1.600000E-02, -3.627273E-12],
[18., 1.700000E-02, 3.030712E-12]])
ax.plot(A[:,1],A[:,2])
plt.show()

All ytick values are equal 0. Am I missing something ?

I am using x86_64 GNU/Linux
>>> matplotlib.__version__
'1.1.0'