SHARE
TWEET

Untitled

a guest Oct 12th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In [1]: plt.plot(np.arange(10))
  2. ---------------------------------------------------------------------------
  3. TypeError                                 Traceback (most recent call last)
  4. <ipython-input-1-a81699eb47e8> in <module>()
  5. ----> 1 plt.plot(np.arange(10))
  6.  
  7. /usr/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in plot(*args, **kwargs)
  8.    3227 @_autogen_docstring(Axes.plot)
  9.    3228 def plot(*args, **kwargs):
  10. -> 3229     ax = gca()
  11.    3230     # Deprecated: allow callers to override the hold state
  12.    3231     # by passing hold=True|False
  13.  
  14. /usr/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in gca(**kwargs)
  15.     957     matplotlib.figure.Figure.gca : The figure's gca method.
  16.     958     """
  17. --> 959     return gcf().gca(**kwargs)
  18.     960
  19.     961 # More ways of creating axes:
  20.  
  21. /usr/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in gcf()
  22.     586         return figManager.canvas.figure
  23.     587     else:
  24. --> 588         return figure()
  25.     589
  26.     590
  27.  
  28. /usr/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass, clear, **kwargs)
  29.     554         # FigureManager base class.
  30.     555         if matplotlib.is_interactive():
  31. --> 556             draw_if_interactive()
  32.     557
  33.     558         if _INSTALL_FIG_OBSERVER:
  34.  
  35. /usr/local/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_if_interactive(cls)
  36.     183             manager = Gcf.get_active()
  37.     184             if manager:
  38. --> 185                 cls.trigger_manager_draw(manager)
  39.     186
  40.     187     @classmethod
  41.  
  42. TypeError: unbound method trigger_manager_draw() must be called with _BackendMac instance as first argument (got FigureManagerMac instance instead)
RAW Paste Data
Top