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

Skip to content

Commit 2ea1b14

Browse files
committed
Fixed minor import bug
svn path=/trunk/matplotlib/; revision=3935
1 parent dde2aa3 commit 2ea1b14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import matplotlib
44
from matplotlib import _pylab_helpers
5-
from matplotlib.cbook import dedent, silent_list
5+
from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike
66
from matplotlib.figure import Figure, figaspect
77
from matplotlib.backend_bases import FigureCanvasBase
88
from matplotlib.image import imread as _imread
@@ -1231,9 +1231,9 @@ def plotfile(fname, cols=(0,), plotfuncs=None,
12311231

12321232
def getname_val(identifier):
12331233
'return the name and column data for identifier'
1234-
if cbook.is_string_like(identifier):
1234+
if is_string_like(identifier):
12351235
return identifier, r[identifier]
1236-
elif cbook.is_numlike(identifier):
1236+
elif is_numlike(identifier):
12371237
name = r.dtype.names[int(identifier)]
12381238
return name, r[name]
12391239
else:

0 commit comments

Comments
 (0)