Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdc201a

Browse files
committed
keep fig variable per matplotlib convention
1 parent4e8b54b commitbdc201a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/tests/test_image.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ def test_image_array_alpha_rgb():
12421242
alpha=np.ones_like(arr)
12431243
alpha[:5]=0.3# First 5 rows (top half) more transparent
12441244

1245-
(ax1,ax2)=plt.subplots(1,2,figsize=(8,4))
1245+
fig,(ax1,ax2)=plt.subplots(1,2,figsize=(8,4))
12461246

12471247
# Grayscale with array alpha (reference)
12481248
ax1.imshow(arr,alpha=alpha,cmap='gray',interpolation='nearest')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp