Skip to content

Commit cc44f57

Browse files
authored
Merge pull request #10938 from cclauss/fix-undefined-names
Fix two undefined names
2 parents 02646cb + e7c0ab1 commit cc44f57

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/matplotlib/pyplot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ def spy(
28342834
__ret = gca().spy(
28352835
Z=Z, precision=precision, marker=marker,
28362836
markersize=markersize, aspect=aspect, origin=origin, **kwargs)
2837-
if isinstance(ret, cm.ScalarMappable): sci(__ret)
2837+
if isinstance(__ret, cm.ScalarMappable): sci(__ret)
28382838
return __ret
28392839

28402840
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

lib/matplotlib/testing/decorators.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from distutils.version import StrictVersion
22
import functools
3+
import inspect
34
import os
45
from pathlib import Path
56
import shutil

tools/boilerplate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def boilerplate_gen():
149149
'pcolormesh': 'sci(__ret)',
150150
'hist2d': 'sci(__ret[-1])',
151151
'imshow': 'sci(__ret)',
152-
'spy': 'if isinstance(ret, cm.ScalarMappable): sci(__ret)',
152+
'spy': 'if isinstance(__ret, cm.ScalarMappable): sci(__ret)',
153153
'quiver': 'sci(__ret)',
154154
'specgram': 'sci(__ret[-1])',
155155
'streamplot': 'sci(__ret.lines)',

0 commit comments

Comments
 (0)