diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index a4069eb80ad6..73670692055b 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -1522,10 +1522,10 @@ def plot(self, xs, ys, *args, **kwargs): ''' had_data = self.has_data() - # `zs` can be passed positionally or as keyword; checking with - # `_is_string_like` matches the behavior of 2D `plot` (via + # `zs` can be passed positionally or as keyword; checking whether + # args[0] is a string matches the behavior of 2D `plot` (via # `_process_plot_var_args`). - if args and not cbook.is_string_like(args[0]): + if args and not isinstance(args[0], six.string_types): zs = args[0] args = args[1:] if 'zs' in kwargs: