Revision: 6522
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6522&view=rev
Author:   jdh2358
Date:     2008-12-08 21:54:22 +0000 (Mon, 08 Dec 2008)

Log Message:
-----------
fixed some doc formatting errors

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/legend.py
    trunk/matplotlib/lib/matplotlib/patches.py
    trunk/matplotlib/lib/matplotlib/text.py

Modified: trunk/matplotlib/lib/matplotlib/legend.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/legend.py   2008-12-08 21:27:40 UTC (rev 
6521)
+++ trunk/matplotlib/lib/matplotlib/legend.py   2008-12-08 21:54:22 UTC (rev 
6522)
@@ -123,10 +123,9 @@
 
         Optional keyword arguments:
 
-        ================   =================================================
+        ================   
==================================================================
         Keyword            Description
-        ================   =================================================
-
+        ================   
==================================================================
         loc                a location code or a tuple of coordinates
         numpoints          the number of points in the legend line
         prop               the font property
@@ -134,17 +133,16 @@
         fancybox           if True, draw a frame with a round fancybox.  If 
None, use rc
         shadow             if True, draw a shadow behind legend
         scatteryoffsets    a list of yoffsets for scatter symbols in legend
-
         borderpad          the fractional whitespace inside the legend border
         labelspacing       the vertical space between the legend entries
         handlelength       the length of the legend handles
         handletextpad      the pad between the legend handle and text
         borderaxespad      the pad between the axes and legend border
         columnspacing      the spacing between columns
+        ================   
==================================================================
 
 The dimensions of pad and spacing are given as a fraction of the
 fontsize. Values from rcParams will be used if None.
-
         """
         from matplotlib.axes import Axes     # local import only to avoid 
circularity
         from matplotlib.figure import Figure # local import only to avoid 
circularity

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2008-12-08 21:27:40 UTC (rev 
6521)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2008-12-08 21:54:22 UTC (rev 
6522)
@@ -1426,11 +1426,16 @@
             args = [(argname, argdefault) \
                     for argname, argdefault in zip(args[1:], defaults)]
         else:
-            args = []
+            args = None
 
-        _table.append([cls.__name__, name,
-                       ",".join([("%s=%s" % (an, av)) for an, av in args])])
+        if args is None:
+            argstr = 'None'  # empy table entry crashed latex build
+        else:
+            argstr =  ",".join([("%s=%s" % (an, av)) for an, av in args])
 
+        _table.append([cls.__name__, name, argstr])
+
+
     return _pprint_table(_table)
 
 
@@ -2015,8 +2020,8 @@
         comma-separated attributes. Alternatively, the attrs can
         be provided as keywords::
 
-         set_boxstyle("round,pad=0.2")
-         set_boxstyle("round", pad=0.2)
+            set_boxstyle("round,pad=0.2")
+            set_boxstyle("round", pad=0.2)
 
         Old attrs simply are forgotten.
 
@@ -2024,6 +2029,7 @@
         available box styles.
 
         ACCEPTS: [ %(AvailableBoxstyles)s ]
+
         """
 
         if boxstyle==None:
@@ -2793,6 +2799,7 @@
     _style_list["-"] = Curve
 
 
+
     class CurveA(_Curve):
         """
         An arrow with a head at its begin point.
@@ -2813,7 +2820,6 @@
 
     _style_list["<-"] = CurveA
 
-
     class CurveB(_Curve):
         """
         An arrow with a head at its end point.
@@ -2832,6 +2838,7 @@
                 beginarrow=False, endarrow=True,
                 head_length=head_length, head_width=head_width )
 
+    #_style_list["->"] = CurveB
     _style_list["->"] = CurveB
 
 
@@ -2853,6 +2860,7 @@
                 beginarrow=True, endarrow=True,
                 head_length=head_length, head_width=head_width )
 
+    #_style_list["<->"] = CurveAB
     _style_list["<->"] = CurveAB
 
 
@@ -2960,6 +2968,7 @@
             super(ArrowStyle.BracketB, self).__init__(None, True,
                      widthB=widthB, lengthB=lengthB, angleB=None )
 
+    #_style_list["-["] = BracketB
     _style_list["-["] = BracketB
 
 

Modified: trunk/matplotlib/lib/matplotlib/text.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/text.py     2008-12-08 21:27:40 UTC (rev 
6521)
+++ trunk/matplotlib/lib/matplotlib/text.py     2008-12-08 21:54:22 UTC (rev 
6522)
@@ -1297,9 +1297,9 @@
         drawn. Valid keys for YAArow are
 
 
-        =========   ===========================================================
+        =========   
=============================================================
         Key         Description
-        =========   ===========================================================
+        =========   
=============================================================
         width       the width of the arrow in points
         frac        the fraction of the arrow length occupied by the head
         headwidth   the width of the base of the arrow head in points
@@ -1310,7 +1310,7 @@
                     and base are shink percent of the distance *d* away from 
the
                     endpoints.  ie, ``shrink=0.05 is 5%%``
         ?           any key for :class:`matplotlib.patches.polygon`
-        =========   ===========================================================
+        =========   
=============================================================
 
 
         Valid keys for FancyArrowPatch are
@@ -1319,8 +1319,8 @@
         ===============  ======================================================
         Key              Description
         ===============  ======================================================
-        arrowstyle
-        connectionstyle
+        arrowstyle       the arrow style
+        connectionstyle  the connection style
         relpos           default is (0.5, 0.5)
         patchA           default is bounding box of the text
         patchB           default is None
@@ -1328,8 +1328,8 @@
         shrinkB          default is 2 points
         mutation_scale   default is text size (in points)
         mutation_aspect  default is 1.
-        ?           any key for :class:`matplotlib.patches.PathPatch`
-        =========   ===========================================================
+        ?                any key for :class:`matplotlib.patches.PathPatch`
+        ===============  ======================================================
 
 
         *xycoords* and *textcoords* are strings that indicate the


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to