Revision: 6403
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6403&view=rev
Author:   jdh2358
Date:     2008-11-14 15:33:32 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
fixed a vlines/hlines doc bug

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/axes.py
    trunk/matplotlib/lib/mpl_toolkits/gtktools.py

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2008-11-14 08:15:27 UTC (rev 
6402)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2008-11-14 15:33:32 UTC (rev 
6403)
@@ -2961,7 +2961,7 @@
         """
         call signature::
 
-          hlines(y, xmin, xmax, colors='k', linestyle='solid', **kwargs)
+          hlines(y, xmin, xmax, colors='k', linestyles='solid', **kwargs)
 
         Plot horizontal lines at each *y* from *xmin* to *xmax*.
 
@@ -2984,7 +2984,7 @@
             a line collections color argument, either a single color
             or a ``len(y)`` list of colors
 
-          *linestyle*:
+          *linestyles*:
             [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]
 
         **Example:**
@@ -3044,18 +3044,21 @@
         """
         call signature::
 
-          vlines(x, ymin, ymax, color='k')
+          vlines(x, ymin, ymax, color='k', linestyles='solid')
 
         Plot vertical lines at each *x* from *ymin* to *ymax*.  *ymin*
         or *ymax* can be scalars or len(*x*) numpy arrays.  If they are
         scalars, then the respective values are constant, else the
         heights of the lines are determined by *ymin* and *ymax*.
 
-        *colors* is a line collections color args, either a single color
-        or a len(*x*) list of colors
+        *colors*
+          a line collections color args, either a single color
+          or a len(*x*) list of colors
 
-        *linestyle* is one of [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]
+        *linestyles*
 
+          one of [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]
+
         Returns the :class:`matplotlib.collections.LineCollection`
         that was added.
 

Modified: trunk/matplotlib/lib/mpl_toolkits/gtktools.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/gtktools.py       2008-11-14 08:15:27 UTC 
(rev 6402)
+++ trunk/matplotlib/lib/mpl_toolkits/gtktools.py       2008-11-14 15:33:32 UTC 
(rev 6403)
@@ -359,7 +359,7 @@
      * formatd - the list of mlab.FormatObj instances, with gtk attachments
 
      * stringd - a dict mapping dtype names to a list of valid strings for the 
combo drop downs
-     
+
      * callbacks - a matplotlib.cbook.CallbackRegistry.  Connect to the 
cell_changed with
 
         def mycallback(liststore, rownum, colname, oldval, newval):
@@ -377,10 +377,10 @@
         stringd, if not None, is a dict mapping dtype names to a list of
         valid strings for a combo drop down editor
         """
-        
+
         if stringd is None:
             stringd = dict()
-            
+
         if formatd is None:
             formatd = mlab.get_formatd(r)
 
@@ -408,7 +408,7 @@
 
             keys = stringd.keys()
             keys.sort()
-        
+
             valid = set(r.dtype.names)
             for ikey, key in enumerate(keys):
                 assert(key in valid)
@@ -417,7 +417,7 @@
                     combostore.append([s])
                 self.combod[key] = combostore, len(self.headers)+ikey
 
-        
+
         gtk.ListStore.__init__(self, *types)
 
         for row in r:
@@ -426,7 +426,7 @@
                 if isinstance(formatter, mlab.FormatBool):
                     vals.append(val)
                 else:
-                    vals.append(formatter.tostr(val))            
+                    vals.append(formatter.tostr(val))
             if len(stringd):
                 # todo, get correct index here?
                 vals.extend([0]*len(stringd))
@@ -483,12 +483,12 @@
         constant, if not None, is a list of dtype names which are not editable
         """
         self.recliststore = recliststore
-        
+
         gtk.TreeView.__init__(self, recliststore)
 
         combostrings = set(recliststore.stringd.keys())
 
-        
+
         if constant is None:
             constant = []
 
@@ -509,7 +509,7 @@
                  renderer.connect("edited", recliststore.position_edited, i)
                  combostore, listind = recliststore.combod[header]
                  renderer.set_property("model", combostore)
-                 renderer.set_property('editable', True)             
+                 renderer.set_property('editable', True)
             else:
                 renderer = gtk.CellRendererText()
                 if header not in constant:
@@ -530,7 +530,7 @@
                 tvcol.add_attribute(renderer, 'text', i)
                 if header in combostrings:
                     combostore, listind = recliststore.combod[header]
-                    tvcol.add_attribute(renderer, 'text-column', listind) 
+                    tvcol.add_attribute(renderer, 'text-column', listind)
             elif coltype == gobject.TYPE_BOOLEAN:
                 tvcol.add_attribute(renderer, 'active', i)
 
@@ -542,7 +542,8 @@
 
 
         self.connect("button-release-event", self.on_selection_changed)
-        self.set_grid_lines(gtk.TREE_VIEW_GRID_LINES_BOTH)
+        #self.set_grid_lines(gtk.TREE_VIEW_GRID_LINES_BOTH)
+
         self.get_selection().set_mode(gtk.SELECTION_BROWSE)
         self.get_selection().set_select_function(self.on_select)
 
@@ -576,10 +577,10 @@
         return liststore, treeview, win
     else:
         return liststore, treeview
-        
-    
 
 
+
+
 if __name__=='__main__':
 
     import datetime
@@ -628,4 +629,4 @@
     win2.set_title('with all defaults')
 
     gtk.main()
-    
+


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to