From: <jd...@us...> - 2009-11-04 17:30:20
|
Revision: 7936 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7936&view=rev Author: jdh2358 Date: 2009-11-04 17:30:12 +0000 (Wed, 04 Nov 2009) Log Message: ----------- added levels kwarg to contour Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/contour.py trunk/matplotlib/lib/matplotlib/mlab.py trunk/matplotlib/lib/matplotlib/widgets.py Modified: trunk/matplotlib/lib/matplotlib/contour.py =================================================================== --- trunk/matplotlib/lib/matplotlib/contour.py 2009-11-04 16:26:37 UTC (rev 7935) +++ trunk/matplotlib/lib/matplotlib/contour.py 2009-11-04 17:30:12 UTC (rev 7936) @@ -1066,6 +1066,11 @@ scaling data values to colors. If *norm* is *None* and *colors* is *None*, the default linear scaling is used. + *levels* [level0, level1, ..., leveln] + A list of floating point numbers indicating the level + curves to draw; eg to draw just the zero contour pass + ``levels=[0]`` + *origin*: [ None | 'upper' | 'lower' | 'image' ] If *None*, the first value of *Z* will correspond to the lower left corner, location (0,0). If 'image', the rc Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2009-11-04 16:26:37 UTC (rev 7935) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2009-11-04 17:30:12 UTC (rev 7936) @@ -2576,6 +2576,10 @@ *withheader*: if withheader is False, do not write the attribute names in the first row + for formatd type FormatFloat, we override the precision to store + full precision floats in the CSV file + + .. seealso:: :func:`csv2rec` Modified: trunk/matplotlib/lib/matplotlib/widgets.py =================================================================== --- trunk/matplotlib/lib/matplotlib/widgets.py 2009-11-04 16:26:37 UTC (rev 7935) +++ trunk/matplotlib/lib/matplotlib/widgets.py 2009-11-04 17:30:12 UTC (rev 7936) @@ -669,6 +669,8 @@ self.vertOn = True self.useblit = useblit + if useblit: + lineprops['animated'] = True self.lineh = ax.axhline(ax.get_ybound()[0], visible=False, **lineprops) self.linev = ax.axvline(ax.get_xbound()[0], visible=False, **lineprops) @@ -741,10 +743,14 @@ """ def __init__(self, canvas, axes, useblit=True, **lineprops): + self.canvas = canvas self.axes = axes xmin, xmax = axes[-1].get_xlim() xmid = 0.5*(xmin+xmax) + if useblit: + lineprops['animated'] = True + self.lines = [ax.axvline(xmid, visible=False, **lineprops) for ax in axes] self.visible = True This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |