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

Skip to content

Commit d322950

Browse files
committed
fix example
1 parent 5821ca4 commit d322950

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

galleries/examples/images_contours_and_fields/image_alpha_parameter_demo.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
"""
2-
==========================================
2+
===================================================
33
Alpha parameter behavior with different image types
4-
==========================================
4+
===================================================
55
66
Demonstrate how the alpha parameter interacts with different image data types
77
(2D arrays, RGB, RGBA) and colormaps in matplotlib's imshow function.
88
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)
199
"""
2010

2111
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)