Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---------------------------------------------------------------------------
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
You can’t perform that action at this time.