diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 72192d247473..191147105ef6 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -426,11 +426,8 @@ def pickable(self): self._picker is not None) def pick(self, mouseevent): - """Process pick event - - call signature:: - - pick(mouseevent) + """ + Process pick event each child artist will fire a pick event if *mouseevent* is over the artist and the artist has picker set diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index c385cc75ac99..e8f5da9a5552 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -751,7 +751,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs): Examples - --------- + -------- * draw a thick red vline at *x* = 0 that spans the yrange:: >>> axvline(linewidth=4, color='r') @@ -1034,7 +1034,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid', hlines : horizontal lines Examples - --------- + -------- .. plot:: mpl_examples/pylab_examples/vline_hline_demo.py """ @@ -1089,12 +1089,6 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, """ Plot identical parallel lines at specific positions. - Call signature:: - - eventplot(positions, orientation='horizontal', lineoffsets=0, - linelengths=1, linewidths=None, color =None, - linestyles='solid' - Plot parallel lines at the given positions. positions should be a 1D or 2D array-like object, with each row corresponding to a row or column of lines. @@ -1497,10 +1491,6 @@ def loglog(self, *args, **kwargs): """ Make a plot with log scaling on both the *x* and *y* axis. - Call signature:: - - loglog(*args, **kwargs) - :func:`~matplotlib.pyplot.loglog` supports all the keyword arguments of :func:`~matplotlib.pyplot.plot` and :meth:`matplotlib.axes.Axes.set_xscale` / @@ -1702,7 +1692,7 @@ def acorr(self, x, **kwargs): - `b` is the x-axis. Other parameters - ----------------- + ---------------- linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None Only used if usevlines is False. @@ -1766,7 +1756,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none, - `b` is the x-axis (none, if plot is used). Other parameters - ----------------- + ---------------- linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None Only used if usevlines is False. @@ -2231,7 +2221,7 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs): the x coordinates of the left sides of the bars Returns - -------- + ------- `matplotlib.patches.Rectangle` instances. Other parameters @@ -2304,10 +2294,6 @@ def broken_barh(self, xranges, yrange, **kwargs): """ Plot horizontal bars. - Call signature:: - - broken_barh(self, xranges, yrange, **kwargs) - A collection of horizontal bars spanning *yrange* with a sequence of *xranges*. @@ -2494,15 +2480,6 @@ def pie(self, x, explode=None, labels=None, colors=None, r""" Plot a pie chart. - Call signature:: - - pie(x, explode=None, labels=None, - colors=None, - autopct=None, pctdistance=0.6, shadow=False, - labeldistance=1.1, startangle=None, radius=None, - counterclock=True, wedgeprops=None, textprops=None, - center = (0, 0), frame = False ) - Make a pie chart of array *x*. The fractional area of each wedge is given by x/sum(x). If sum(x) <= 1, then the values of x give the fractional area directly and the array will not @@ -3111,17 +3088,6 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None, """ Make a box and whisker plot. - Call signature:: - - boxplot(self, x, notch=None, sym=None, vert=None, whis=None, - positions=None, widths=None, patch_artist=False, - bootstrap=None, usermedians=None, conf_intervals=None, - meanline=False, showmeans=False, showcaps=True, - showbox=True, showfliers=True, boxprops=None, - labels=None, flierprops=None, medianprops=None, - meanprops=None, capprops=None, whiskerprops=None, - manage_xticks=True, autorange=False, zorder=None): - Make a box and whisker plot for each column of ``x`` or each vector in sequence ``x``. The box extends from the lower to upper quartile values of the data, with a line at the median. @@ -3421,15 +3387,6 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True, """ Drawing function for box and whisker plots. - Call signature:: - - bxp(self, bxpstats, positions=None, widths=None, vert=True, - patch_artist=False, shownotches=False, showmeans=False, - showcaps=True, showbox=True, showfliers=True, - boxprops=None, whiskerprops=None, flierprops=None, - medianprops=None, capprops=None, meanprops=None, - meanline=False, manage_xticks=True, zorder=None): - Make a box and whisker plot for each column of *x* or each vector in sequence *x*. The box extends from the lower to upper quartile values of the data, with a line at the median. @@ -4900,10 +4857,6 @@ def fill_betweenx(self, y, x1, x2=0, where=None, """ Make filled polygons between two horizontal curves. - Call signature:: - - fill_betweenx(y, x1, x2=0, where=None, **kwargs) - Create a :class:`~matplotlib.collections.PolyCollection` filling the regions between *x1* and *x2* where ``where==True`` @@ -5034,7 +4987,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None, Display an image on the axes. Parameters - ----------- + ---------- X : array_like, shape (n, m) or (n, m, 3) or (n, m, 4) Display the image in `X` to current axes. `X` may be an array or a PIL image. If `X` is an array, it @@ -5117,7 +5070,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None, when interpolation is one of: 'sinc', 'lanczos' or 'blackman' Returns - -------- + ------- image : `~matplotlib.image.AxesImage` Other parameters @@ -6528,7 +6481,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None, The return value is ``(counts, xedges, yedges, Image)``. Other parameters - ----------------- + ---------------- kwargs : :meth:`pcolorfast` properties. See also @@ -7066,12 +7019,6 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none, """ Plot the coherence between *x* and *y*. - Call signature:: - - cohere(x, y, NFFT=256, Fs=2, Fc=0, detrend = mlab.detrend_none, - window = mlab.window_hanning, noverlap=0, pad_to=None, - sides='default', scale_by_freq=None, **kwargs) - Plot the coherence between *x* and *y*. Coherence is the normalized cross spectral density: @@ -7448,13 +7395,8 @@ def matshow(self, Z, **kwargs): def violinplot(self, dataset, positions=None, vert=True, widths=0.5, showmeans=False, showextrema=True, showmedians=False, points=100, bw_method=None): - """Make a violin plot. - - Call signature:: - - violinplot(dataset, positions=None, vert=True, widths=0.5, - showmeans=False, showextrema=True, showmedians=False, - points=100, bw_method=None): + """ + Make a violin plot. Make a violin plot for each column of *dataset* or each vector in sequence *dataset*. Each filled area extends to represent the @@ -7553,11 +7495,6 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5, showmeans=False, showextrema=True, showmedians=False): """Drawing function for violin plots. - Call signature:: - - violin(vpstats, positions=None, vert=True, widths=0.5, - showmeans=False, showextrema=True, showmedians=False): - Draw a violin plot for each column of `vpstats`. Each filled area extends to represent the entire data range, with optional lines at the mean, the median, the minimum, and the maximum. diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index ce216d87d56c..0ea1819161fb 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1189,11 +1189,8 @@ def ishold(self): return self._hold def hold(self, b=None): - """Set the hold state - - Call signature:: - - hold(b=None) + """ + Set the hold state If *hold* is *None* (default), toggle the *hold* state. Else set the *hold* state to boolean value *b*. @@ -2454,10 +2451,6 @@ def grid(self, b=None, which='major', axis='both', **kwargs): """ Turn the axes grids on or off. - Call signature:: - - grid(self, b=None, which='major', axis='both', **kwargs) - Set the axes grids on or off; *b* is a boolean. (For MATLAB compatibility, *b* may also be a string, 'on' or 'off'.) @@ -2788,12 +2781,7 @@ def get_xlim(self): return tuple(self.viewLim.intervalx) def set_xlim(self, left=None, right=None, emit=True, auto=False, **kw): - """Set the data limits for the xaxis - - Call signature:: - - set_xlim(self, *args, **kwargs): - + """ Set the data limits for the xaxis Examples:: @@ -2887,11 +2875,8 @@ def get_xscale(self): @docstring.dedent_interpd def set_xscale(self, value, **kwargs): - """Set the x-axis scale - - Call signature:: - - set_xscale(value) + """ + Set the x-axis scale Set the scaling of the x-axis: %(scale)s @@ -2970,14 +2955,10 @@ def get_xticklabels(self, minor=False, which=None): @docstring.dedent_interpd def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs): - """Set the xtick labels with list of strings *labels* - - Call signature:: - - set_xticklabels(labels, fontdict=None, minor=False, **kwargs) + """ + Set the xtick labels with list of strings *labels* - Return a - list of axis text instances. + Return a list of axis text instances. *kwargs* set the :class:`~matplotlib.text.Text` properties. Valid properties are @@ -3049,11 +3030,8 @@ def get_ylim(self): return tuple(self.viewLim.intervaly) def set_ylim(self, bottom=None, top=None, emit=True, auto=False, **kw): - """Set the data limits for the yaxis - - Call signature:: - - set_ylim(self, *args, **kwargs): + """ + Set the data limits for the yaxis Examples:: @@ -3149,10 +3127,6 @@ def get_yscale(self): def set_yscale(self, value, **kwargs): """Set the y-axis scale - Call signature:: - - set_yscale(value) - Set the scaling of the y-axis: %(scale)s ACCEPTS: [%(scale)s] @@ -3233,14 +3207,10 @@ def get_yticklabels(self, minor=False, which=None): @docstring.dedent_interpd def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs): - """Set the y tick labels with list of strings *labels* - - Call signature:: - - set_yticklabels(labels, fontdict=None, minor=False, **kwargs) + """ + Set the y tick labels with list of strings *labels* - Return a list of - :class:`~matplotlib.text.Text` instances. + Return a list of :class:`~matplotlib.text.Text` instances. *kwargs* set :class:`~matplotlib.text.Text` properties for the labels. Valid properties are @@ -3781,11 +3751,8 @@ def _make_twin_axes(self, *kl, **kwargs): return ax2 def twinx(self): - """Create a twin Axes sharing the xaxis - - Call signature:: - - ax = twinx() + """ + Create a twin Axes sharing the xaxis create a twin of Axes for generating a plot with a sharex x-axis but independent y axis. The y-axis of self will have @@ -3807,11 +3774,8 @@ def twinx(self): return ax2 def twiny(self): - """Create a twin Axes sharing the yaxis - - Call signature:: - - ax = twiny() + """ + Create a twin Axes sharing the yaxis create a twin of Axes for generating a plot with a shared y-axis but independent x axis. The x-axis of self will have diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 3424caac1a6a..316dbc6ce2fd 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2429,10 +2429,6 @@ def start_event_loop_default(self, timeout=0): functions for each of the GUI backends can be written. As such, it throws a deprecated warning. - Call signature:: - - start_event_loop_default(self,timeout=0) - This call blocks until a callback function triggers stop_event_loop() or *timeout* is reached. If *timeout* is <=0, never timeout. @@ -2457,9 +2453,6 @@ def stop_event_loop_default(self): loop so that interactive functions, such as ginput and waitforbuttonpress, can wait for events. - Call signature:: - - stop_event_loop_default(self) """ self._looping = False diff --git a/lib/matplotlib/backend_managers.py b/lib/matplotlib/backend_managers.py index efd289ff7572..57c35ef9ec4e 100644 --- a/lib/matplotlib/backend_managers.py +++ b/lib/matplotlib/backend_managers.py @@ -79,7 +79,7 @@ def toolmanager_connect(self, s, func): Connect event with string *s* to *func*. Parameters - ----------- + ---------- s : String Name of the event @@ -138,7 +138,7 @@ def get_tool_keymap(self, name): Name of the Tool Returns - ---------- + ------- list : list of keys associated with the Tool """ @@ -379,7 +379,7 @@ def get_tool(self, name, warn=True): Return the tool object, also accepts the actual tool for convenience Parameters - ----------- + ---------- name : str, ToolBase Name of the tool, or the tool itself warn : bool, optional diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index 697b7f0495c2..4ab049aa0b8d 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -770,10 +770,6 @@ def start_event_loop(self, timeout=0): confused with the main GUI event loop, which is always running and has nothing to do with this. - Call signature:: - - start_event_loop(self,timeout=0) - This call blocks until a callback function triggers stop_event_loop() or *timeout* is reached. If *timeout* is <=0, never timeout. @@ -799,9 +795,6 @@ def stop_event_loop(self, event=None): loop so that interactive functions, such as ginput and waitforbuttonpress, can wait for events. - Call signature:: - - stop_event_loop_default(self) """ if hasattr(self, '_event_loop'): if self._event_loop.IsRunning(): diff --git a/lib/matplotlib/cbook.py b/lib/matplotlib/cbook.py index 80ae2ed60fce..1f7d2bede048 100644 --- a/lib/matplotlib/cbook.py +++ b/lib/matplotlib/cbook.py @@ -86,7 +86,7 @@ def warn_deprecated( Used to display deprecation warning in a standard way. Parameters - ------------ + ---------- since : str The release at which this API became deprecated. @@ -143,7 +143,7 @@ def deprecated(since, message='', name='', alternative='', pending=False, Decorator to mark a function as deprecated. Parameters - ------------ + ---------- since : str The release at which this API became deprecated. This is required. @@ -599,7 +599,7 @@ def local_over_kwdict(local_var, kwargs, *keys): kwargs dict in place. Parameters - ------------ + ---------- local_var: any object The local variable (highest priority) @@ -611,12 +611,12 @@ def local_over_kwdict(local_var, kwargs, *keys): priority Returns - --------- + ------- out: any object Either local_var or one of kwargs[key] for key in keys Raises - -------- + ------ IgnoredKeywordWarning For each key in keys that is removed from kwargs but not used as the output value diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 4f11171c0c48..a7c6c97249fe 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -1025,9 +1025,7 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15, shrink=1.0, aspect=20, **kw): ''' Resize and reposition parent axes, and return a child - axes suitable for a colorbar:: - - cax, kw = make_axes(parent, **kw) + axes suitable for a colorbar. Keyword arguments may include the following (with defaults): @@ -1161,9 +1159,7 @@ def make_axes_gridspec(parent, **kw): of the parent with a new one. While this function is meant to be compatible with *make_axes*, - there could be some minor differences.:: - - cax, kw = make_axes_gridspec(parent, **kw) + there could be some minor differences. Keyword arguments may include the following (with defaults): diff --git a/lib/matplotlib/contour.py b/lib/matplotlib/contour.py index 0b273e99fc32..8fdcd8fd21d5 100644 --- a/lib/matplotlib/contour.py +++ b/lib/matplotlib/contour.py @@ -1335,11 +1335,6 @@ def find_nearest_contour(self, x, y, indices=None, pixel=True): Returns a tuple containing the contour, segment, index of segment, x & y of segment point and distance to minimum point. - Call signature:: - - conmin,segmin,imin,xmin,ymin,dmin = find_nearest_contour( - self, x, y, indices=None, pixel=True ) - Optional keyword arguments: *indices*: diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 7b5a355c644f..b66ad8e33ea0 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1627,11 +1627,6 @@ def subplots_adjust(self, *args, **kwargs): def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1, mouse_pop=3, mouse_stop=2): """ - Call signature:: - - ginput(self, n=1, timeout=30, show_clicks=True, - mouse_add=1, mouse_pop=3, mouse_stop=2) - Blocking call to interact with the figure. This will wait for *n* clicks from the user and return a list of the @@ -1666,10 +1661,6 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1, def waitforbuttonpress(self, timeout=-1): """ - Call signature:: - - waitforbuttonpress(self, timeout=-1) - Blocking call to interact with the figure. This will return True is a key was pressed, False if a mouse diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index 207d374471e9..e29bda464081 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -1161,7 +1161,7 @@ def set_marker(self, marker): ACCEPTS: :mod:`A valid marker style ` Parameters - ----------- + ---------- marker: marker style See `~matplotlib.markers` for full description of possible diff --git a/lib/matplotlib/mlab.py b/lib/matplotlib/mlab.py index 3a9ad634ec10..d5cae06e647f 100644 --- a/lib/matplotlib/mlab.py +++ b/lib/matplotlib/mlab.py @@ -4,7 +4,7 @@ commands with the same names. MATLAB compatible functions -------------------------------- +--------------------------- :func:`cohere` Coherence (normalized cross spectral density) @@ -39,7 +39,7 @@ Spectrogram (spectrum over segments of time) Miscellaneous functions -------------------------- +----------------------- Functions that don't exist in MATLAB, but are useful anyway: @@ -99,7 +99,7 @@ record array helper functions -------------------------------- +----------------------------- A collection of helper methods for numpyrecord arrays @@ -192,9 +192,6 @@ def logspace(xmin, xmax, N): ''' Return N values logarithmically spaced between xmin and xmax. - Call signature:: - - logspace(xmin, xmax, N) ''' return np.exp(np.linspace(np.log(xmin), np.log(xmax), N)) @@ -203,9 +200,6 @@ def _norm(x): ''' Return sqrt(x dot x). - Call signature:: - - _norm(x) ''' return np.sqrt(np.dot(x, x)) @@ -214,10 +208,6 @@ def window_hanning(x): ''' Return x times the hanning window of len(x). - Call signature:: - - window_hanning(x) - .. seealso:: :func:`window_none` @@ -230,10 +220,6 @@ def window_none(x): ''' No window function; simply return x. - Call signature:: - - window_none(x) - .. seealso:: :func:`window_hanning` @@ -246,10 +232,6 @@ def apply_window(x, window, axis=0, return_window=None): ''' Apply the given window to the given 1D or 2D array along the given axis. - Call signature:: - - apply_window(x, window, axis=0, return_window=False) - *x*: 1D or 2D array or sequence Array or sequence containing the data. @@ -304,10 +286,6 @@ def detrend(x, key=None, axis=None): ''' Return x with its trend removed. - Call signature:: - - detrend(x, key='mean') - *x*: array or sequence Array or sequence containing the data. @@ -369,10 +347,6 @@ def demean(x, axis=0): ''' Return x minus its mean along the specified axis. - Call signature:: - - demean(x, axis=0) - *x*: array or sequence Array or sequence containing the data Can have any dimensionality @@ -399,10 +373,6 @@ def detrend_mean(x, axis=None): ''' Return x minus the mean(x). - Call signature:: - - detrend_mean(x, axis=None) - *x*: array or sequence Array or sequence containing the data Can have any dimensionality @@ -448,10 +418,6 @@ def detrend_none(x, axis=None): ''' Return x: no detrending. - Call signature:: - - detrend_none(x, axis=None) - *x*: any object An object containing the data @@ -481,10 +447,6 @@ def detrend_linear(y): ''' Return x minus best fit line; 'linear' detrending. - Call signature:: - - detrend_linear(y) - *y*: 0-D or 1-D array or sequence Array or sequence containing the data @@ -537,10 +499,6 @@ def stride_windows(x, n, noverlap=None, axis=0): elements may point to the same piece of memory, so modifying one value may change others. - Call signature:: - - stride_windows(x, n, noverlap=0) - *x*: 1D array or sequence Array or sequence containing the data. @@ -606,10 +564,6 @@ def stride_repeat(x, n, axis=0): elements may point to the same piece of memory, so modifying one value may change others. - Call signature:: - - stride_repeat(x, n, axis=0) - *x*: 1D array or sequence Array or sequence containing the data. @@ -1381,10 +1335,6 @@ def cohere_pairs(X, ij, NFFT=256, Fs=2, detrend=detrend_none, returnPxx=False): """ - Call signature:: - - Cxy, Phase, freqs = cohere_pairs( X, ij, ...) - Compute the coherence and phase for all pairs *ij*, in *X*. *X* is a *numSamples* * *numCols* array @@ -3629,9 +3579,6 @@ class GaussianKDE(object): """ Representation of a kernel-density estimate using Gaussian kernels. - Call signature:: - kde = GaussianKDE(dataset, bw_method='silverman') - Parameters ---------- dataset : array_like diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 221a1a8de2e0..e8e88dc7074c 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -920,7 +920,7 @@ def gca(**kwargs): current figure matching the given keyword args, or create one. Examples - --------- + -------- To get the current polar axes on the current figure:: plt.gca(projection='polar') diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py index 88d712f8c5db..6c5919110e58 100644 --- a/lib/matplotlib/testing/decorators.py +++ b/lib/matplotlib/testing/decorators.py @@ -270,10 +270,6 @@ def image_comparison(baseline_images=None, extensions=None, tol=0, freetype_version=None, remove_text=False, savefig_kwarg=None, style='classic'): """ - call signature:: - - image_comparison(baseline_images=['my_figure'], extensions=None) - Compare images generated by the test with those specified in *baseline_images*, which must correspond else an ImageComparisonFailure exception will be raised. diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index 1e53e7dbf398..f907e642f423 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -1334,14 +1334,14 @@ def _cg(A, b, x0=None, tol=1.e-10, maxiter=1000): Right hand side of the linear system. Returns - ---------- + ------- x: array. The converged solution. err: float The absolute error np.linalg.norm(A.dot(x) - b) Other parameters - ---------- + ---------------- x0: array. Starting guess for the solution. tol: float. diff --git a/lib/mpl_toolkits/axes_grid1/parasite_axes.py b/lib/mpl_toolkits/axes_grid1/parasite_axes.py index c9f4869a4357..b1e241c16baa 100644 --- a/lib/mpl_toolkits/axes_grid1/parasite_axes.py +++ b/lib/mpl_toolkits/axes_grid1/parasite_axes.py @@ -308,10 +308,6 @@ def cla(self): def twinx(self, axes_class=None): """ - call signature:: - - ax2 = ax.twinx() - create a twin of Axes for generating a plot with a sharex x-axis but independent y axis. The y-axis of self will have ticks on left and the returned axes will have ticks on the @@ -342,10 +338,6 @@ def twinx(self, axes_class=None): def twiny(self, axes_class=None): """ - call signature:: - - ax2 = ax.twiny() - create a twin of Axes for generating a plot with a shared y-axis but independent x axis. The x-axis of self will have ticks on bottom and the returned axes will have ticks on the @@ -375,10 +367,6 @@ def twiny(self, axes_class=None): def twin(self, aux_trans=None, axes_class=None): """ - call signature:: - - ax2 = ax.twin() - create a twin of Axes for generating a plot with a sharex x-axis but independent y axis. The y-axis of self will have ticks on left and the returned axes will have ticks on the diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index 883fcecba46d..ecc53b69d0ea 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -799,10 +799,6 @@ def set_yscale(self, value, **kwargs) : @docstring.dedent_interpd def set_zscale(self, value, **kwargs) : """ - call signature:: - - set_zscale(value) - Set the scaling of the z-axis: %(scale)s ACCEPTS: [%(scale)s]