From: <ds...@us...> - 2008-05-23 20:25:02
|
Revision: 5244 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5244&view=rev Author: dsdale Date: 2008-05-23 13:25:00 -0700 (Fri, 23 May 2008) Log Message: ----------- minor changes to rest docstrings for lines.py and artist.py Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/artist.py trunk/matplotlib/lib/matplotlib/lines.py Modified: trunk/matplotlib/lib/matplotlib/artist.py =================================================================== --- trunk/matplotlib/lib/matplotlib/artist.py 2008-05-23 20:10:18 UTC (rev 5243) +++ trunk/matplotlib/lib/matplotlib/artist.py 2008-05-23 20:25:00 UTC (rev 5244) @@ -514,9 +514,12 @@ def get_aliases(self): """ get a dict mapping fullname -> alias for each alias in o. - Eg for lines: {'markerfacecolor': 'mfc', - 'linewidth' : 'lw', - } + Eg for lines:: + + {'markerfacecolor': 'mfc', + 'linewidth' : 'lw', + } + """ names = [name for name in dir(self.o) if (name.startswith('set_') or name.startswith('get_')) Modified: trunk/matplotlib/lib/matplotlib/lines.py =================================================================== --- trunk/matplotlib/lib/matplotlib/lines.py 2008-05-23 20:10:18 UTC (rev 5243) +++ trunk/matplotlib/lib/matplotlib/lines.py 2008-05-23 20:25:00 UTC (rev 5244) @@ -40,18 +40,18 @@ y = ma.array(np.arange(5), mask = [0,0,1,0,0]) #ii = unmasked_index_ranges(y.mask()) ii = unmasked_index_ranges(ma.getmask(y)) - # returns [[0,2,] [2,4,]] + # returns [[0,2,] [2,4,]] y.compressed().filled()[ii[1,0]:ii[1,1]] - # returns np.array [3,4,] - # (The 'filled()' method converts the masked np.array to a numerix np.array.) + # returns np.array [3,4,] + # (The 'filled()' method converts the masked np.array to a numerix np.array.) #i0, i1 = unmasked_index_ranges(y.mask(), compressed=False) i0, i1 = unmasked_index_ranges(ma.getmask(y), compressed=False) - # returns [[0,3,] [2,5,]] + # returns [[0,3,] [2,5,]] y.filled()[ii[1,0]:ii[1,1]] - # returns np.array [3,4,] + # returns np.array [3,4,] ''' m = np.concatenate(((1,), mask, (1,))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |