Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created January 8, 2016 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/607c33992bcbbae497fa to your computer and use it in GitHub Desktop.
Save thomasaarholt/607c33992bcbbae497fa to your computer and use it in GitHub Desktop.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs)
57 def draw_wrapper(artist, renderer, *args, **kwargs):
58 before(artist, renderer)
---> 59 draw(artist, renderer, *args, **kwargs)
60 after(artist, renderer)
61
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in draw(self, renderer)
1089 self._cachedRenderer = renderer
1090
-> 1091 self.canvas.draw_event(renderer)
1092
1093 def draw_artist(self, a):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in draw_event(self, renderer)
1793 s = 'draw_event'
1794 event = DrawEvent(s, self, renderer)
-> 1795 self.callbacks.process(s, event)
1796
1797 def resize_event(self):
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in process(self, s, *args, **kwargs)
538 del self.callbacks[s][cid]
539 else:
--> 540 proxy(*args, **kwargs)
541
542
/Users/thomas/anaconda/lib/python2.7/site-packages/matplotlib/cbook.pyc in __call__(self, *args, **kwargs)
413 mtd = self.func
414 # invoke the callable and return the result
--> 415 return mtd(*args, **kwargs)
416
417 def __eq__(self, other):
/Users/thomas/anaconda/lib/python2.7/site-packages/hyperspy/drawing/figure.pyc in _on_draw(self, *args)
6 def _on_draw(self, *args):
7 canvas = self.figure.canvas
----> 8 self._background = canvas.copy_from_bbox(self.figure.bbox)
9 self._draw_animated()
10
AttributeError: 'FigureCanvasMac' object has no attribute 'copy_from_bbox'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment