[Matplotlib-users] default value of legend.numpoints

2011-06-19 Thread Steve Ward
# import matplotlib.pyplot as plt ax = plt.subplot(1,1,1) x = [0.1, 0.3, 2.6, 3.3] y = [25.4, 18.9, 13.5, 12.6] ax.plot(x, y, marker="s", label='foo', linestyle="None") #ax.plot(x, y, marker="s", label='foo') #leg = ax.legend(numpoints=1, title='legend title') leg =

[Matplotlib-users] incorrect exception message in legend.__init__

2011-06-19 Thread Steve Ward
# import matplotlib.pyplot as plt ax = plt.subplot(1,1,1) ax.plot(1, 2, label='foo') ax.legend(numpoints=0) # Traceback (most recent call last): File "", line 1, in File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 4044, in le

[Matplotlib-users] wrong number of logarithmic minor ticks

2011-05-19 Thread Steve Ward
>From running the code below, I see only 8 subticks between the major ticks. But the documentation says there should be 10. I'm using matplotlib version 0.99.3. # import matplotlib.p

[Matplotlib-users] set_xscale: insufficient logarithmically spaced minor ticks

2011-05-15 Thread Steve Ward
> > import matplotlib.pyplot as plt > > import numpy as np > > y = range(1, 4) > x = np.power(10, y) > > plt.gca().set_xscale('log', basex=10, subsx=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) > > plt.gca().plot(x, y) > > plt.show() > >From running the code above, I see only 8 subticks between the major ticks