Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08a0b57

Browse files
committed
rst syntax fix
1 parent bb05da7 commit 08a0b57

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
`alpha` parameter handling in `_ImageBase::_make_image`
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
*alpha* parameter handling in `~matplotlib.image._ImageBase._make_image`
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
This PR expands and clarifies code logic in `_ImageBase::_make_image` related to
5-
the `alpha` parameter, and ensure that `Axes.imshow` exhibits the following behavior:
4+
This PR expands and clarifies code logic in `~matplotlib.image._ImageBase._make_image`
5+
related to the *alpha* parameter, and ensure that `~matplotlib.axes._axes.Axes.imshow`
6+
exhibits the following behavior:
67

78
1. When the image does not have alpha channel:
8-
- `alpha`` not specified: default to 1.0.
9-
- scalar `alpha``: broadcast.
10-
- array `alpha`: concatenate.
9+
- *alpha* not specified: default to 1.0.
10+
- scalar *alpha*: broadcast.
11+
- array *alpha*: concatenate.
1112
2. When the image has an alpha channel:
12-
- `alpha` not specified: nothings needs to be done.
13-
- scalar `alpha`: multiply the alpha channel with user-specified scalar.
14-
- array `alpha`: replace the alpha channel with user-specified array.
13+
- *alpha* not specified: nothings needs to be done.
14+
- scalar *alpha*: multiply the alpha channel with user-specified scalar.
15+
- array *alpha*: replace the alpha channel with user-specified array.

0 commit comments

Comments
 (0)