From: <jd...@us...> - 2008-12-09 03:34:02
|
Revision: 6528 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6528&view=rev Author: jdh2358 Date: 2008-12-09 03:33:57 +0000 (Tue, 09 Dec 2008) Log Message: ----------- tweaks to backend driver list Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/examples/tests/backend_driver.py trunk/matplotlib/lib/matplotlib/patches.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2008-12-09 03:24:44 UTC (rev 6527) +++ trunk/matplotlib/CHANGELOG 2008-12-09 03:33:57 UTC (rev 6528) @@ -1,3 +1,6 @@ +2008-12-08 Removed the prints in the set_*style commands. Return the + list of pprinted strings instead + 2008-12-08 Some of the changes Michael made to improve the output of the property tables in the rest docs broke of made difficult to use some of the interactive doc helpers, eg Modified: trunk/matplotlib/examples/tests/backend_driver.py =================================================================== --- trunk/matplotlib/examples/tests/backend_driver.py 2008-12-09 03:24:44 UTC (rev 6527) +++ trunk/matplotlib/examples/tests/backend_driver.py 2008-12-09 03:33:57 UTC (rev 6528) @@ -25,8 +25,8 @@ pylab_dir = os.path.join('..', 'pylab_examples') pylab_files = [ - 'two_scales.py', + 'accented_text.py', 'alignment_test.py', 'annotation_demo.py', @@ -191,10 +191,8 @@ 'unicode_demo.py', 'vertical_ticklabels.py', 'vline_demo.py', - 'webapp_demo.py', 'xcorr_demo.py', 'zorder_demo.py', - ] @@ -202,13 +200,16 @@ api_files = [ 'agg_oo.py', 'barchart_demo.py', + 'bbox_intersect.py', 'collections_demo.py', + 'color_cycle.py', + 'colorbar_only.py', 'custom_projection_example.py', 'custom_scale_example.py', 'date_demo.py', 'date_index_formatter.py', + 'donut_demo.py', 'font_family_rc.py', - 'font_file.py', 'histogram_demo.py', 'image_zcoord.py', 'legend_demo.py', @@ -216,19 +217,14 @@ 'logo2.py', 'mathtext_asarray.py', 'patch_collection.py', + 'path_patch_demo.py', + 'quad_bezier.py', 'scatter_piecharts.py', 'span_regions.py', + 'two_scales.py' 'unicode_minus.py', 'watermark_image.py', 'watermark_text.py', - - 'bbox_intersect.py', - 'colorbar_only.py', - 'color_cycle.py', - 'donut_demo.py', - 'path_patch_demo.py', - 'quad_bezier.py', - 'two_scales.py' ] units_dir = os.path.join('..', 'units') Modified: trunk/matplotlib/lib/matplotlib/patches.py =================================================================== --- trunk/matplotlib/lib/matplotlib/patches.py 2008-12-09 03:24:44 UTC (rev 6527) +++ trunk/matplotlib/lib/matplotlib/patches.py 2008-12-09 03:33:57 UTC (rev 6528) @@ -1494,19 +1494,19 @@ :class:`BoxStyle` is a container class which defines several boxstyle classes, which are used for :class:`FancyBoxPatch`. - A style object can be created as + A style object can be created as:: BoxStyle.Round(pad=0.2) - or + or:: BoxStyle("Round", pad=0.2) - or + or:: BoxStyle("Round, pad=0.2") - Following boxstyle classes are defined. + The following boxstyle classes are defined. %(AvailableBoxstyles)s @@ -2026,7 +2026,7 @@ Old attrs simply are forgotten. - Without argument (or with *boxstyle* = None), it prints out + Without argument (or with *boxstyle* = None), it returns available box styles. ACCEPTS: [ %(AvailableBoxstyles)s ] @@ -2034,10 +2034,7 @@ """ if boxstyle==None: - # print out available boxstyles and return. - print "Following box styles are available:" - print BoxStyle.pprint_styles() - return + return BoxStyle.pprint_styles() if isinstance(boxstyle, BoxStyle._Base): self._bbox_transmuter = boxstyle @@ -2097,7 +2094,7 @@ return _path - # Followong methods are borrowed from the Rectangle class. + # Following methods are borrowed from the Rectangle class. def get_x(self): "Return the left coord of the rectangle" @@ -2183,19 +2180,19 @@ between two points. These are mainly used with :class:`FancyArrowPatch`. - A connectionstyle object can be either created as + A connectionstyle object can be either created as:: ConnectionStyle.Arc3(rad=0.2) - or + or:: ConnectionStyle("Arc3", rad=0.2) - or + or:: ConnectionStyle("Arc3, rad=0.2") - Following classes are defined + The following classes are defined %(AvailableConnectorstyles)s @@ -2205,11 +2202,13 @@ __call__(self, posA, posB, patchA=None, patchB=None, shrinkA=2., shrinkB=2.) - and it returns a :class:`Path` instance. *posA* and *posB are tuples - of x,y coordinates of the two points to be connected. *patchA* (or - $patchB*) is given, the returned path is clipped so that it start - (or end) from the boundary of the patch. The path is further - shrinked by *shrinkA* (or *shrinkB*) which is given in points. + and it returns a :class:`Path` instance. *posA* and *posB* are + tuples of x,y coordinates of the two points to be + connected. *patchA* (or *patchB*) is given, the returned path is + clipped so that it start (or end) from the boundary of the + patch. The path is further shrunk by *shrinkA* (or *shrinkB*) + which is given in points. + """ _style_list = {} @@ -2547,18 +2546,18 @@ arrowstyle classes, which is used to create an arrow path along a given path. These are mainly used with :class:`FancyArrowPatch`. - A arrowstyle object can be either created as + A arrowstyle object can be either created as:: ArrowStyle.Fancy(head_length=.4, head_width=.4, tail_width=.4) - or + or:: ArrowStyle("Fancy", head_length=.4, head_width=.4, tail_width=.4) - or + or:: ArrowStyle("Fancy, head_length=.4, head_width=.4, tail_width=.4") - Following classes are defined + The following classes are defined %(AvailableArrowstyles)s @@ -3232,7 +3231,7 @@ connected. It can be an instance of the ConnectionStyle class (matplotlib.patches.ConnectionStlye) or a string of the connectionstyle name, with optional comma-separated - attributes. Following connection styles are available. + attributes. The following connection styles are available. %(AvailableConnectorstyles)s @@ -3241,7 +3240,7 @@ drawn. It can be string of the available arrowstyle names, with optional comma-separated attributes, or one of the ArrowStyle instance. The optional attributes are meant to be - scaled with the *mutation_scale*. Following arrow styles are + scaled with the *mutation_scale*. The following arrow styles are available. %(AvailableArrowstyles)s @@ -3334,14 +3333,12 @@ Old attrs simply are forgotten. - Without argument (or with connectionstyle=None), it prints out - available styles. + Without argument (or with connectionstyle=None), return + available styles as a list of strings. """ if connectionstyle==None: - # print out available styles and return. - print "Following styles are available:" - print ConnectionStyle.pprint_styles() + return ConnectionStyle.pprint_styles() if isinstance(connectionstyle, ConnectionStyle._Base): self._connector = connectionstyle @@ -3372,14 +3369,12 @@ Old attrs simply are forgotten. - Without argument (or with arrowstyle=None), it prints out - available box styles. + Without argument (or with arrowstyle=None), return + available box styles as a list of strings. """ if arrowstyle==None: - # print out available styles and return. - print "Following styles are available:" - print ArrowStyle.pprint_styles() + return ArrowStyle.pprint_styles() if isinstance(arrowstyle, ConnectionStyle._Base): self._arrow_transmuter = arrowstyle This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |