Skip to content

Commit 27efbe1

Browse files
committed
fixed is_scalar -- good catch david
svn path=/trunk/matplotlib/; revision=5822
1 parent 8049c8e commit 27efbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def is_writable_file_like(obj):
287287

288288
def is_scalar(obj):
289289
'return true if *obj* is not string like and is not iterable'
290-
return is_string_like(obj) or not iterable(obj)
290+
return not is_string_like(obj) or not iterable(obj)
291291

292292
def is_numlike(obj):
293293
'return true if *obj* looks like a number'

0 commit comments

Comments
 (0)