[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

Re: [Matplotlib-users] contour plot confined by shapefile border

2011-06-19 Thread Benjamin Root
On Sunday, June 19, 2011, Lukmanul Hakim wrote: > Hello, > > I would like to ask for some hints > and help. I am currently trying to plot a "pseudo contour" over a Basemap. > This contour is confined by borders obtained from a shapefile. I can generate > the contour, I can retrieve the shapefile

[Matplotlib-users] contour plot confined by shapefile border

2011-06-19 Thread Lukmanul Hakim
Hello, I would like to ask for some hints and help. I am currently trying to plot a "pseudo contour" over a Basemap. This contour is confined by borders obtained from a shapefile. I can generate the contour, I can retrieve the shapefile and put them on a basemap. What I have not been able to do

[Matplotlib-users] How to Add Minor Ticks to Auto-Scaled Axis?

2011-06-19 Thread matplotlib . coralnut
I am having trouble adding minor tick marks to an auto-scaled axis on a linear plot. I hope someone can help. I am drawing a plot where the X axis values are predictable, so I have the ability to define the desired major/minor intervals for tickmarks and gridlines. The scale of the X axis is