SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S






1
2
3
4
(1)
5
(6)
6
(1)
7
(5)
8
(4)
9
(7)
10
(2)
11
(12)
12
(2)
13
(1)
14
(4)
15
16
17
(7)
18
(2)
19
(3)
20
(8)
21
(6)
22
23
(9)
24
(4)
25
(9)
26
(2)
27
28
29
(2)
30
(1)






Showing 1 results of 1

From: <as...@us...> - 2008年11月30日 18:34:04
Revision: 6458
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6458&view=rev
Author: astraw
Date: 2008年11月30日 18:33:55 +0000 (2008年11月30日)
Log Message:
-----------
axes.py: Shorten source code lines so all are less than 80 chars long.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py	2008年11月29日 21:14:26 UTC (rev 6457)
+++ trunk/matplotlib/lib/matplotlib/axes.py	2008年11月30日 18:33:55 UTC (rev 6458)
@@ -266,7 +266,8 @@
 ret = []
 if is_string_like(tup2[1]):
 
- assert self.command == 'plot', 'fill needs at least 2 non-string arguments'
+ assert self.command == 'plot', ('fill needs at least 2 non-string '
+ 'arguments')
 y, fmt = tup2
 x, y, multicol = self._xy_from_y(y)
 
@@ -545,10 +546,12 @@
 if len(kwargs): martist.setp(self, **kwargs)
 
 if self.xaxis is not None:
- self._xcid = self.xaxis.callbacks.connect('units finalize', self.relim)
+ self._xcid = self.xaxis.callbacks.connect('units finalize',
+ self.relim)
 
 if self.yaxis is not None:
- self._ycid = self.yaxis.callbacks.connect('units finalize', self.relim)
+ self._ycid = self.yaxis.callbacks.connect('units finalize',
+ self.relim)
 
 def get_window_extent(self, *args, **kwargs):
 '''
@@ -575,7 +578,8 @@
 #these will be updated later as data is added
 self.dataLim = mtransforms.Bbox.unit()
 self.viewLim = mtransforms.Bbox.unit()
- self.transScale = mtransforms.TransformWrapper(mtransforms.IdentityTransform())
+ self.transScale = mtransforms.TransformWrapper(
+ mtransforms.IdentityTransform())
 
 self._set_lim_and_transforms()
 
@@ -590,7 +594,8 @@
 
 # Transforms the x and y axis separately by a scale factor
 # It is assumed that this part will have non-linear components
- self.transScale = mtransforms.TransformWrapper(mtransforms.IdentityTransform())
+ self.transScale = mtransforms.TransformWrapper(
+ mtransforms.IdentityTransform())
 
 # An affine transformation on the data, generally to limit the
 # range of the axes
@@ -815,7 +820,8 @@
 self.yaxis.cla()
 
 self.ignore_existing_data_limits = True
- self.callbacks = cbook.CallbackRegistry(('xlim_changed', 'ylim_changed'))
+ self.callbacks = cbook.CallbackRegistry(('xlim_changed',
+ 'ylim_changed'))
 
 if self._sharex is not None:
 # major and minor are class instances with
@@ -1128,7 +1134,8 @@
 changey = (self in self._shared_x_axes
 and self not in self._shared_y_axes)
 if changex and changey:
- warnings.warn("adjustable='datalim' cannot work with shared x and y axes")
+ warnings.warn("adjustable='datalim' cannot work with shared "
+ "x and y axes")
 return
 if changex:
 adjust_y = False
@@ -1187,7 +1194,8 @@
 self.set_aspect('equal', adjustable='box', anchor='C')
 
 else:
- raise ValueError('Unrecognized string %s to axis; try on or off' % s)
+ raise ValueError('Unrecognized string %s to axis; '
+ 'try on or off' % s)
 xmin, xmax = self.get_xlim()
 ymin, ymax = self.get_ylim()
 return xmin, xmax, ymin, ymax
@@ -1439,7 +1447,8 @@
 if xunits!=self.xaxis.units:
 #print '\tkw setting xunits', xunits
 self.xaxis.set_units(xunits)
- # If the units being set imply a different converter, we need to update.
+ # If the units being set imply a different converter,
+ # we need to update.
 if xdata is not None:
 self.xaxis.update_units(xdata)
 
@@ -1447,7 +1456,8 @@
 if yunits!=self.yaxis.units:
 #print '\tkw setting yunits', yunits
 self.yaxis.set_units(yunits)
- # If the units being set imply a different converter, we need to update.
+ # If the units being set imply a different converter,
+ # we need to update.
 if ydata is not None:
 self.yaxis.update_units(ydata)
 
@@ -1875,7 +1885,8 @@
 for other in self._shared_x_axes.get_siblings(self):
 if other is not self:
 other.set_xlim(self.viewLim.intervalx, emit=False)
- if other.figure != self.figure and other.figure.canvas is not None:
+ if (other.figure != self.figure and
+ other.figure.canvas is not None):
 other.figure.canvas.draw_idle()
 
 return xmin, xmax
@@ -1920,15 +1931,18 @@
 
 def get_xmajorticklabels(self):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text xticklabel', self.xaxis.get_majorticklabels())
+ return cbook.silent_list('Text xticklabel',
+ self.xaxis.get_majorticklabels())
 
 def get_xminorticklabels(self):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text xticklabel', self.xaxis.get_minorticklabels())
+ return cbook.silent_list('Text xticklabel',
+ self.xaxis.get_minorticklabels())
 
 def get_xticklabels(self, minor=False):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text xticklabel', self.xaxis.get_ticklabels(minor=minor))
+ return cbook.silent_list('Text xticklabel',
+ self.xaxis.get_ticklabels(minor=minor))
 
 def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
 """
@@ -1945,8 +1959,10 @@
 
 ACCEPTS: sequence of strings
 """
- return self.xaxis.set_ticklabels(labels, fontdict, minor=minor, **kwargs)
- set_xticklabels.__doc__ = cbook.dedent(set_xticklabels.__doc__) % martist.kwdocd
+ return self.xaxis.set_ticklabels(labels, fontdict,
+ minor=minor, **kwargs)
+ set_xticklabels.__doc__ = cbook.dedent(
+ set_xticklabels.__doc__) % martist.kwdocd
 
 def invert_yaxis(self):
 "Invert the y-axis."
@@ -1959,7 +1975,7 @@
 return right < left
 
 def get_ybound(self):
- "Returns the y-axis numerical bounds in the form of lowerBound < upperBound"
+ "Return y-axis numerical bounds in the form of lowerBound < upperBound"
 left, right = self.get_ylim()
 if left < right:
 return left, right
@@ -2044,7 +2060,8 @@
 for other in self._shared_y_axes.get_siblings(self):
 if other is not self:
 other.set_ylim(self.viewLim.intervaly, emit=False)
- if other.figure != self.figure and other.figure.canvas is not None:
+ if (other.figure != self.figure and
+ other.figure.canvas is not None):
 other.figure.canvas.draw_idle()
 return ymin, ymax
 
@@ -2093,15 +2110,18 @@
 
 def get_ymajorticklabels(self):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text yticklabel', self.yaxis.get_majorticklabels())
+ return cbook.silent_list('Text yticklabel',
+ self.yaxis.get_majorticklabels())
 
 def get_yminorticklabels(self):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text yticklabel', self.yaxis.get_minorticklabels())
+ return cbook.silent_list('Text yticklabel',
+ self.yaxis.get_minorticklabels())
 
 def get_yticklabels(self, minor=False):
 'Get the xtick labels as a list of Text instances'
- return cbook.silent_list('Text yticklabel', self.yaxis.get_ticklabels(minor=minor))
+ return cbook.silent_list('Text yticklabel',
+ self.yaxis.get_ticklabels(minor=minor))
 
 def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
 """
@@ -2118,8 +2138,10 @@
 
 ACCEPTS: sequence of strings
 """
- return self.yaxis.set_ticklabels(labels, fontdict, minor=minor, **kwargs)
- set_yticklabels.__doc__ = cbook.dedent(set_yticklabels.__doc__) % martist.kwdocd
+ return self.yaxis.set_ticklabels(labels, fontdict,
+ minor=minor, **kwargs)
+ set_yticklabels.__doc__ = cbook.dedent(
+ set_yticklabels.__doc__) % martist.kwdocd
 
 def xaxis_date(self, tz=None):
 """Sets up x-axis ticks and labels that treat the x data as dates.
@@ -2412,11 +2434,13 @@
 disconnect to disconnect from the axes event
 
 """
- raise DeprecationWarning('use the callbacks CallbackRegistry instance instead')
+ raise DeprecationWarning('use the callbacks CallbackRegistry instance '
+ 'instead')
 
 def disconnect(self, cid):
 'disconnect from the Axes event.'
- raise DeprecationWarning('use the callbacks CallbackRegistry instance instead')
+ raise DeprecationWarning('use the callbacks CallbackRegistry instance '
+ 'instead')
 
 def get_children(self):
 'return a list of child artists'
@@ -2456,8 +2480,8 @@
 the artist and the artist has picker set
 """
 if len(args)>1:
- raise DeprecationWarning(
- 'New pick API implemented -- see API_CHANGES in the src distribution')
+ raise DeprecationWarning('New pick API implemented -- '
+ 'see API_CHANGES in the src distribution')
 martist.Artist.pick(self,args[0])
 
 def __pick(self, x, y, trans=None, among=None):
@@ -2773,7 +2797,8 @@
 
 ymin, ymax = self.get_ybound()
 
- # We need to strip away the units for comparison with non-unitized bounds
+ # We need to strip away the units for comparison with
+ # non-unitized bounds
 yy = self.convert_yunits( y )
 scaley = (yy<ymin) or (yy>ymax)
 
@@ -2831,7 +2856,8 @@
 
 xmin, xmax = self.get_xbound()
 
- # We need to strip away the units for comparison with non-unitized bounds
+ # We need to strip away the units for comparison with
+ # non-unitized bounds
 xx = self.convert_xunits( x )
 scalex = (xx<xmin) or (xx>xmax)
 
@@ -2993,8 +3019,9 @@
 .. plot:: mpl_examples/pylab_examples/hline_demo.py
 """
 if kwargs.get('fmt') is not None:
- raise DeprecationWarning(
- 'hlines now uses a collections.LineCollection and not a list of Line2D to draw; see API_CHANGES')
+ raise DeprecationWarning('hlines now uses a '
+ 'collections.LineCollection and not a '
+ 'list of Line2D to draw; see API_CHANGES')
 
 # We do the conversion first since not all unitized data is uniform
 y = self.convert_yunits( y )
@@ -3069,8 +3096,9 @@
 """
 
 if kwargs.get('fmt') is not None:
- raise DeprecationWarning(
- 'vlines now uses a collections.LineCollection and not a list of Line2D to draw; see API_CHANGES')
+ raise DeprecationWarning('vlines now uses a '
+ 'collections.LineCollection and not a '
+ 'list of Line2D to draw; see API_CHANGES')
 
 self._process_unit_info(xdata=x, ydata=ymin, kwargs=kwargs)
 
@@ -3128,10 +3156,10 @@
 optional format string. For example, each of the following is
 legal::
 
- plot(x, y) # plot x and y using the default line style and color
- plot(x, y, 'bo') # plot x and y using blue circle markers
- plot(y) # plot y using x as index array 0..N-1
- plot(y, 'r+') # ditto, but with red plusses
+ plot(x, y) # plot x and y using default line style and color
+ plot(x, y, 'bo') # plot x and y using blue circle markers
+ plot(y) # plot y using x as index array 0..N-1
+ plot(y, 'r+') # ditto, but with red plusses
 
 If *x* and/or *y* is 2-dimensional, then the corresponding columns
 will be plotted.
@@ -3247,8 +3275,8 @@
 the *x* or *y* (or both) data is considered to be dates, and the
 axis is labeled accordingly.
 
- *x* and/or *y* can be a sequence of dates represented as float days since
- 0001年01月01日 UTC.
+ *x* and/or *y* can be a sequence of dates represented as float
+ days since 0001年01月01日 UTC.
 
 Keyword arguments:
 
@@ -3317,7 +3345,8 @@
 
 :func:`~matplotlib.pyplot.loglog` supports all the keyword
 arguments of :func:`~matplotlib.pyplot.plot` and
- :meth:`matplotlib.axes.Axes.set_xscale`/:meth:`matplotlib.axes.Axes.set_yscale`.
+ :meth:`matplotlib.axes.Axes.set_xscale` /
+ :meth:`matplotlib.axes.Axes.set_yscale`.
 
 Notable keyword arguments:
 
@@ -3327,9 +3356,8 @@
 *subsx*/*subsy*: [ None | sequence ]
 the location of the minor *x*/*y* ticks; *None* defaults
 to autosubs, which depend on the number of decades in the
- plot; see
- :meth:`matplotlib.axes.Axes.set_xscale`/:meth:`matplotlib.axes.Axes.set_yscale`
- for details
+ plot; see :meth:`matplotlib.axes.Axes.set_xscale` /
+ :meth:`matplotlib.axes.Axes.set_yscale` for details
 
 The remaining valid kwargs are
 :class:`~matplotlib.lines.Line2D` properties:
@@ -3497,8 +3525,9 @@
 - *b* is the *x*-axis.
 
 .. seealso::
- :meth:`~matplotlib.axes.Axes.plot` or :meth:`~matplotlib.axes.Axes.vlines`:
- For documentation on valid kwargs.
+ :meth:`~matplotlib.axes.Axes.plot` or
+ :meth:`~matplotlib.axes.Axes.vlines`: For documentation on
+ valid kwargs.
 
 **Example:**
 
@@ -3512,8 +3541,8 @@
 return self.xcorr(x, x, **kwargs)
 acorr.__doc__ = cbook.dedent(acorr.__doc__) % martist.kwdocd
 
- def xcorr(self, x, y, normed=False, detrend=mlab.detrend_none, usevlines=False,
- maxlags=None, **kwargs):
+ def xcorr(self, x, y, normed=False, detrend=mlab.detrend_none,
+ usevlines=False, maxlags=None, **kwargs):
 """
 call signature::
 
@@ -3581,7 +3610,8 @@
 if maxlags is None: maxlags = Nx - 1
 
 if maxlags >= Nx or maxlags < 1:
- raise ValueError('maglags must be None or strictly positive < %d'%Nx)
+ raise ValueError('maglags must be None or strictly '
+ 'positive < %d'%Nx)
 
 lags = np.arange(-maxlags,maxlags+1)
 c = c[Nx-1-maxlags:Nx+maxlags]
@@ -3723,11 +3753,13 @@
 labels = []
 for handle in get_handles():
 label = handle.get_label()
- if label is not None and label != '' and not label.startswith('_'):
+ if (label is not None and
+ label != '' and not label.startswith('_')):
 handles.append(handle)
 labels.append(label)
 if len(handles) == 0:
- warnings.warn("No labeled objects found. Use label='...' kwarg on individual plots.")
+ warnings.warn("No labeled objects found. "
+ "Use label='...' kwarg on individual plots.")
 return None
 
 elif len(args)==1:
@@ -3784,7 +3816,8 @@
 
 where = kwargs.pop('where', 'pre')
 if where not in ('pre', 'post', 'mid'):
- raise ValueError("'where' argument to step must be 'pre', 'post' or 'mid'")
+ raise ValueError("'where' argument to step must be "
+ "'pre', 'post' or 'mid'")
 kwargs['linestyle'] = 'steps-' + where
 
 return self.plot(x, y, *args, **kwargs)
@@ -3960,18 +3993,24 @@
 # FIXME: convert the following to proper input validation
 # raising ValueError; don't use assert for this.
 assert len(left)==nbars, "argument 'left' must be %d or scalar" % nbars
- assert len(height)==nbars, "argument 'height' must be %d or scalar" % nbars
- assert len(width)==nbars, "argument 'width' must be %d or scalar" % nbars
- assert len(bottom)==nbars, "argument 'bottom' must be %d or scalar" % nbars
+ assert len(height)==nbars, ("argument 'height' must be %d or scalar" %
+ nbars)
+ assert len(width)==nbars, ("argument 'width' must be %d or scalar" %
+ nbars)
+ assert len(bottom)==nbars, ("argument 'bottom' must be %d or scalar" %
+ nbars)
 
 if yerr is not None and len(yerr)!=nbars:
- raise ValueError("bar() argument 'yerr' must be len(%s) or scalar" % nbars)
+ raise ValueError(
+ "bar() argument 'yerr' must be len(%s) or scalar" % nbars)
 if xerr is not None and len(xerr)!=nbars:
- raise ValueError("bar() argument 'xerr' must be len(%s) or scalar" % nbars)
+ raise ValueError(
+ "bar() argument 'xerr' must be len(%s) or scalar" % nbars)
 
 patches = []
 
- # lets do some conversions now since some types cannot be subtracted uniformly
+ # lets do some conversions now since some types cannot be
+ # subtracted uniformly
 if self.xaxis is not None:
 xconv = self.xaxis.converter
 if xconv is not None:
@@ -4189,12 +4228,13 @@
 *baseline*).
 
 .. seealso::
- `this document
- <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html>`_:
- for details
+ `this document`__ for details
 
 :file:`examples/pylab_examples/stem_plot.py`:
 for a demo
+
+ __ http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html
+
 """
 remember_hold=self._hold
 if not self._hold: self.cla()
@@ -4344,7 +4384,8 @@
 elif callable(autopct):
 s = autopct(100.*frac)
 else:
- raise TypeError('autopct must be callable or a format string')
+ raise TypeError(
+ 'autopct must be callable or a format string')
 
 t = self.text(xt, yt, s,
 horizontalalignment='center',
@@ -4449,7 +4490,8 @@
 self._process_unit_info(xdata=x, ydata=y, kwargs=kwargs)
 if not self._hold: self.cla()
 
- # make sure all the args are iterable; use lists not arrays to preserve units
+ # make sure all the args are iterable; use lists not arrays to
+ # preserve units
 if not iterable(x):
 x = [x]
 
@@ -4521,14 +4563,19 @@
 plot_kw['transform'] = kwargs['transform']
 
 if xerr is not None:
- if iterable(xerr) and len(xerr)==2 and iterable(xerr[0]) and iterable(xerr[1]):
+ if (iterable(xerr) and len(xerr)==2 and
+ iterable(xerr[0]) and iterable(xerr[1])):
 # using list comps rather than arrays to preserve units
- left = [thisx-thiserr for (thisx, thiserr) in cbook.safezip(x,xerr[0])]
- right = [thisx+thiserr for (thisx, thiserr) in cbook.safezip(x,xerr[1])]
+ left = [thisx-thiserr for (thisx, thiserr)
+ in cbook.safezip(x,xerr[0])]
+ right = [thisx+thiserr for (thisx, thiserr)
+ in cbook.safezip(x,xerr[1])]
 else:
 # using list comps rather than arrays to preserve units
- left = [thisx-thiserr for (thisx, thiserr) in cbook.safezip(x,xerr)]
- right = [thisx+thiserr for (thisx, thiserr) in cbook.safezip(x,xerr)]
+ left = [thisx-thiserr for (thisx, thiserr)
+ in cbook.safezip(x,xerr)]
+ right = [thisx+thiserr for (thisx, thiserr)
+ in cbook.safezip(x,xerr)]
 
 barcols.append( self.hlines(y, left, right, **lines_kw ) )
 if capsize > 0:
@@ -4537,7 +4584,9 @@
 # y are lists
 leftlo, ylo = xywhere(left, y, xlolims)
 
- caplines.extend( self.plot(leftlo, ylo, ls='None', marker=mlines.CARETLEFT, **plot_kw) )
+ caplines.extend(
+ self.plot(leftlo, ylo, ls='None',
+ marker=mlines.CARETLEFT, **plot_kw) )
 xlolims = ~xlolims
 leftlo, ylo = xywhere(left, y, xlolims)
 caplines.extend( self.plot(leftlo, ylo, 'k|', **plot_kw) )
@@ -4547,7 +4596,9 @@
 if xuplims.any():
 
 rightup, yup = xywhere(right, y, xuplims)
- caplines.extend( self.plot(rightup, yup, ls='None', marker=mlines.CARETRIGHT, **plot_kw) )
+ caplines.extend(
+ self.plot(rightup, yup, ls='None',
+ marker=mlines.CARETRIGHT, **plot_kw) )
 xuplims = ~xuplims
 rightup, yup = xywhere(right, y, xuplims)
 caplines.extend( self.plot(rightup, yup, 'k|', **plot_kw) )
@@ -4555,21 +4606,28 @@
 caplines.extend( self.plot(right, y, 'k|', **plot_kw) )
 
 if yerr is not None:
- if iterable(yerr) and len(yerr)==2 and iterable(yerr[0]) and iterable(yerr[1]):
+ if (iterable(yerr) and len(yerr)==2 and
+ iterable(yerr[0]) and iterable(yerr[1])):
 # using list comps rather than arrays to preserve units
- lower = [thisy-thiserr for (thisy, thiserr) in cbook.safezip(y,yerr[0])]
- upper = [thisy+thiserr for (thisy, thiserr) in cbook.safezip(y,yerr[1])]
+ lower = [thisy-thiserr for (thisy, thiserr)
+ in cbook.safezip(y,yerr[0])]
+ upper = [thisy+thiserr for (thisy, thiserr)
+ in cbook.safezip(y,yerr[1])]
 else:
 # using list comps rather than arrays to preserve units
- lower = [thisy-thiserr for (thisy, thiserr) in cbook.safezip(y,yerr)]
- upper = [thisy+thiserr for (thisy, thiserr) in cbook.safezip(y,yerr)]
+ lower = [thisy-thiserr for (thisy, thiserr)
+ in cbook.safezip(y,yerr)]
+ upper = [thisy+thiserr for (thisy, thiserr)
+ in cbook.safezip(y,yerr)]
 
 barcols.append( self.vlines(x, lower, upper, **lines_kw) )
 if capsize > 0:
 
 if lolims.any():
 xlo, lowerlo = xywhere(x, lower, lolims)
- caplines.extend( self.plot(xlo, lowerlo, ls='None', marker=mlines.CARETDOWN, **plot_kw) )
+ caplines.extend(
+ self.plot(xlo, lowerlo, ls='None',
+ marker=mlines.CARETDOWN, **plot_kw) )
 lolims = ~lolims
 xlo, lowerlo = xywhere(x, lower, lolims)
 caplines.extend( self.plot(xlo, lowerlo, 'k_', **plot_kw) )
@@ -4579,7 +4637,9 @@
 if uplims.any():
 xup, upperup = xywhere(x, upper, uplims)
 
- caplines.extend( self.plot(xup, upperup, ls='None', marker=mlines.CARETUP, **plot_kw) )
+ caplines.extend(
+ self.plot(xup, upperup, ls='None',
+ marker=mlines.CARETUP, **plot_kw) )
 uplims = ~uplims
 xup, upperup = xywhere(x, upper, uplims)
 caplines.extend( self.plot(xup, upperup, 'k_', **plot_kw) )
@@ -4962,8 +5022,9 @@
 edgecolors = None
 else:
 edgecolors = 'none'
- warnings.warn('''replace "faceted=False" with "edgecolors='none'"''',
- DeprecationWarning) #2008年04月18日
+ warnings.warn(
+ '''replace "faceted=False" with "edgecolors='none'"''',
+ DeprecationWarning) #2008年04月18日
 
 sym = None
 symstyle = 0
@@ -5302,7 +5363,8 @@
 else:
 lattice2[i,j] = np.nan
 
- accum = np.hstack(( lattice1.astype(float).ravel(), lattice2.astype(float).ravel() ))
+ accum = np.hstack((
+ lattice1.astype(float).ravel(), lattice2.astype(float).ravel()))
 good_idxs = ~np.isnan(accum)
 
 px = xmin + sx * np.array([ 0.5, 0.5, 0.0, -0.5, -0.5, 0.0])
@@ -5734,7 +5796,8 @@
 Y = y.repeat(Nx, axis=1)
 if X.shape != Y.shape:
 raise TypeError(
- 'Incompatible X, Y inputs to %s; see help(%s)' % (funcname, funcname))
+ 'Incompatible X, Y inputs to %s; see help(%s)' % (
+ funcname, funcname))
 return X, Y, C
 
 def pcolor(self, *args, **kwargs):
@@ -6025,7 +6088,8 @@
 Ny, Nx = X.shape
 
 # convert to one dimensional arrays
- C = ma.ravel(C[0:Ny-1, 0:Nx-1]) # data point in each cell is value at lower left corner
+ C = ma.ravel(C[0:Ny-1, 0:Nx-1]) # data point in each cell is value at
+ # lower left corner
 X = X.ravel()
 Y = Y.ravel()
 
@@ -6039,7 +6103,8 @@
 showedges = 0
 
 collection = mcoll.QuadMesh(
- Nx - 1, Ny - 1, coords, showedges, antialiased=antialiased) # kwargs are not used
+ Nx - 1, Ny - 1, coords, showedges,
+ antialiased=antialiased) # kwargs are not used
 collection.set_alpha(alpha)
 collection.set_array(C)
 if norm is not None: assert(isinstance(norm, mcolors.Normalize))
@@ -6184,7 +6249,8 @@
 
 # convert to one dimensional arrays
 # This should also be moved to the QuadMesh class
- C = ma.ravel(C) # data point in each cell is value at lower left corner
+ C = ma.ravel(C) # data point in each cell is value
+ # at lower left corner
 X = x.ravel()
 Y = y.ravel()
 Nx = nc+1
@@ -6446,7 +6512,8 @@
 
 if kwargs.get('width') is not None:
 raise DeprecationWarning(
- 'hist now uses the rwidth to give relative width and not absolute width')
+ 'hist now uses the rwidth to give relative width '
+ 'and not absolute width')
 
 try:
 # make sure a copy is created: don't use asarray
@@ -6454,7 +6521,8 @@
 if len(x.shape)==1:
 x.shape = (1,x.shape[0])
 elif len(x.shape)==2 and x.shape[1]<x.shape[0]:
- warnings.warn('2D hist should be nsamples x nvariables; this looks transposed')
+ warnings.warn('2D hist should be nsamples x nvariables; '
+ 'this looks transposed')
 except ValueError:
 # multiple hist with data of different length
 if iterable(x[0]) and not is_string_like(x[0]):
@@ -6957,7 +7025,8 @@
 mask = np.absolute(Z)>precision
 
 if 'cmap' not in kwargs:
- kwargs['cmap'] = mcolors.ListedColormap(['w', 'k'], name='binary')
+ kwargs['cmap'] = mcolors.ListedColormap(['w', 'k'],
+ name='binary')
 nr, nc = Z.shape
 extent = [-0.5, nc-0.5, nr-0.5, -0.5]
 ret = self.imshow(mask, interpolation='nearest', aspect=aspect,
@@ -7072,7 +7141,8 @@
 
 
 total = rows*cols
- num -= 1 # convert from matlab to python indexing ie num in range(0,total)
+ num -= 1 # convert from matlab to python indexing
+ # ie num in range(0,total)
 if num >= total:
 raise ValueError( 'Subplot number exceeds total subplots')
 self._rows = rows
@@ -7125,7 +7195,8 @@
 figBottom = top - (rowNum+1)*figH - rowNum*sepH
 figLeft = left + colNum*(figW + sepW)
 
- self.figbox = mtransforms.Bbox.from_bounds(figLeft, figBottom, figW, figH)
+ self.figbox = mtransforms.Bbox.from_bounds(figLeft, figBottom,
+ figW, figH)
 self.rowNum = rowNum
 self.colNum = colNum
 self.numRows = rows
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 1 results of 1

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /