File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
galleries/examples/images_contours_and_fields Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- ==========================================
2
+ ===================================================
3
3
Alpha parameter behavior with different image types
4
- ==========================================
4
+ ===================================================
5
5
6
6
Demonstrate how the alpha parameter interacts with different image data types
7
7
(2D arrays, RGB, RGBA) and colormaps in matplotlib's imshow function.
8
8
9
- This example shows the behavior of the alpha parameter when applied to:
10
- - 2D scalar data with default colormap
11
- - 2D scalar data with custom alpha-aware colormap
12
- - RGB images
13
- - RGBA images with existing alpha channels
14
-
15
- The alpha parameter can be:
16
- - None (default, no transparency)
17
- - A scalar float (uniform transparency)
18
- - A 2D array (per-pixel transparency)
19
9
"""
20
10
21
11
import matplotlib .pyplot as plt
You can’t perform that action at this time.
0 commit comments