Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for matplotlib stuff in the docs #195

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/indexing-guide/multidimensional-indices/boolean-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ both. -->
.. plot::
:context: reset
:include-source: True
:output-base-name: plot-{counter}
:image-basename: function-plot
:alt: A plot of 4*x*np.sin(x) - x**2/4 - 2*x from -10 to 10. The curve crosses the x-axis several times at irregular intervals.
:caption: Plot of :math:`y = 4x\sin(x) - \frac{x^2}{4} - 2x`

Expand All @@ -194,7 +194,7 @@ to do this is to select them using a mask:
.. plot::
:context: close-figs
:include-source: True
:output-base-name: plot-{counter}
:image-basename: function-plot-masked
:alt: A plot of only the parts of 4*x*np.sin(x) - x**2/4 - 2*x that are above the x-axis.
:caption: Plot of :math:`y = 4x\sin(x) - \frac{x^2}{4} - 2x` where :math:`y > 0`

Expand Down Expand Up @@ -387,7 +387,7 @@ For example, say we have an image represented in
.. plot::
:context: reset
:include-source: True
:output-base-name: astronaut-{counter}
:image-basename: astronaut
:alt: An image of an astronaut, which is represented as a shape (512, 512, 3) array.

>>> def imshow(image, title):
Expand All @@ -410,7 +410,7 @@ value (the second value in the last dimension, which should always be between
.. plot::
:context: close-figs
:include-source: True
:output-base-name: astronaut-{counter}
:image-basename: astronaut-saturated-
:alt: An image of an astronaut with increased saturation. The lighter parts of the image appear washed out.

>>> from skimage import color
Expand All @@ -429,7 +429,7 @@ saturation of only those pixels:
.. plot::
:context: close-figs
:include-source: True
:output-base-name: astronaut-{counter}
:image-basename: astronaut-saturated-better
:alt: An image of an astronaut with increased saturation. The image does not appear washed out.

>>> hsv_image = color.rgb2hsv(image)
Expand Down
Loading