From 1d47337d8060f07c537b43385bbfce53679c35e6 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:44:13 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- matplotlib/subplots/README.md | 112 ++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/matplotlib/subplots/README.md b/matplotlib/subplots/README.md index bc20ca7..81691ee 100644 --- a/matplotlib/subplots/README.md +++ b/matplotlib/subplots/README.md @@ -38,3 +38,115 @@ Axes.imshow(X, cmap=None, norm=None, *, aspect=None, interpolation=None, alpha=N > > The number of pixels used to render an image is set by the Axes size and the figure dpi. This can lead to aliasing artifacts when the image is resampled, because the displayed image size will usually not match the size of X (see Image antialiasing). The resampling can be controlled via the interpolation parameter and/or rcParams["image.interpolation"] (default: 'antialiased'). +## [matplotlib.axes.Axes.set_axis_off](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_axis_off.html#matplotlib-axes-axes-set-axis-off) + +```python +Axes.set_axis_off() +``` + +> Hide all visual components of the x- and y-axis. +> +> This sets a flag to suppress drawing of all axis decorations, i.e. axis labels, axis spines, and the axis tick component (tick markers, tick labels, and grid lines). Individual visibility settings of these components are ignored as long as set_axis_off() is in effect. + + +## [matplotlib.axes.Axes.set_axis_on](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_axis_on.html#matplotlib.axes.Axes.set_axis_on) + +```python +Axes.set_axis_on() +``` + +> Do not hide all visual components of the x- and y-axis. +> +> This reverts the effect of a prior set_axis_off() call. Whether the individual axis decorations are drawn is controlled by their respective visibility settings. +> +> This is on by default. + +## [matplotlib.axes.Axes.set_xlim](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_xlim.html#matplotlib.axes.Axes.set_xlim) + +```python +Axes.set_xlim(left=None, right=None, *, emit=True, auto=False, xmin=None, xmax=None) +``` + +> Set the y-axis view limits. + +## [matplotlib.axes.Axes.set_ylim](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_ylim.html#matplotlib.axes.Axes.set_ylim) + +```python +Axes.set_ylim(bottom=None, top=None, *, emit=True, auto=False, ymin=None, ymax=None) +``` + +> Set the y-axis view limits. + +## [matplotlib.axes.Axes.set_xlabel](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_xlabel.html#matplotlib.axes.Axes.set_xlabel) + +```python +Axes.set_xlabel(xlabel, fontdict=None, labelpad=None, *, loc=None, **kwargs) +``` + +> Set the label for the x-axis. + +## [matplotlib.axes.Axes.set_ylabel](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_ylabel.html#matplotlib.axes.Axes.set_ylabel) + +```python +Axes.set_ylabel(ylabel, fontdict=None, labelpad=None, *, loc=None, **kwargs) +``` + +> Set the label for the y-axis. + +## [matplotlib.axes.Axes.set_title](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_title.html#matplotlib.axes.Axes.set_title) + +```python +Axes.set_title(label, fontdict=None, loc=None, pad=None, *, y=None, **kwargs)[source] +``` + +> Set a title for the Axes. +> +> Set one of the three available Axes titles. The available titles are positioned above the Axes in the center, flush with the left edge, and flush with the right edge. + +## [matplotlib.axes.Axes.legend](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.legend.html#matplotlib.axes.Axes.legend) + +```python +Axes.legend(*args, **kwargs) +``` + +> Place a legend on the Axes. + +## [matplotlib.axes.Axes.plot](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.plot.html#matplotlib-axes-axes-plot) + +```python +Axes.plot(*args, scalex=True, scaley=True, data=None, **kwargs) +``` + +> Plot y versus x as lines and/or markers. + +## [matplotlib.axes.Axes.loglog](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.loglog.html#matplotlib.axes.Axes.loglog) + +```python +Axes.loglog(*args, **kwargs) +``` + +> Make a plot with log scaling on both the x- and y-axis. + +## [matplotlib.axes.Axes.semilogx](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.semilogx.html#matplotlib-axes-axes-semilogx) + +```python +Axes.semilogx(*args, **kwargs) +``` + +> Make a plot with log scaling on the x-axis. + +## [matplotlib.axes.Axes.semilogy](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.semilogy.html#matplotlib.axes.Axes.semilogy) + +```python +Axes.semilogy(*args, **kwargs) +``` + +> Make a plot with log scaling on the y-axis. + + + + + + + +