From: <ef...@us...> - 2009-02-07 21:19:16
|
Revision: 6889 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6889&view=rev Author: efiring Date: 2009-02-07 21:19:11 +0000 (Sat, 07 Feb 2009) Log Message: ----------- Restore interpolation in polar_bar plot, and update docstring in pyplot Modified Paths: -------------- trunk/matplotlib/examples/pylab_examples/polar_bar.py trunk/matplotlib/lib/matplotlib/pyplot.py Modified: trunk/matplotlib/examples/pylab_examples/polar_bar.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/polar_bar.py 2009-02-06 13:12:38 UTC (rev 6888) +++ trunk/matplotlib/examples/pylab_examples/polar_bar.py 2009-02-07 21:19:11 UTC (rev 6889) @@ -7,7 +7,7 @@ # force square figure and square axes looks better for polar, IMO fig = figure(figsize=(8,8)) -ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True) +ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True, resolution=50) N = 20 theta = np.arange(0.0, 2*np.pi, 2*np.pi/N) Modified: trunk/matplotlib/lib/matplotlib/pyplot.py =================================================================== --- trunk/matplotlib/lib/matplotlib/pyplot.py 2009-02-06 13:12:38 UTC (rev 6888) +++ trunk/matplotlib/lib/matplotlib/pyplot.py 2009-02-07 21:19:11 UTC (rev 6889) @@ -1418,8 +1418,8 @@ with format strings, as in :func:`~matplotlib.pyplot.plot`. An optional kwarg *resolution* sets the number of vertices to - interpolate between each pair of points. Set to 1 to disable - interpolation. + interpolate between each pair of points. The default is 1, + which disables interpolation. """ resolution = kwargs.pop('resolution', None) ax = gca(polar=True, resolution=resolution) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |