Out[38]:
<matplotlib.text.Text at 0x7f91490b1da0>
Error in callback <function install_repl_displayhook.<locals>.post_execute at 0x7f9161077d90> (for post_execute):
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py in post_execute()
147 def post_execute():
148 if matplotlib.is_interactive():
--> 149 draw_all()
150
151 # IPython >= 2
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/_pylab_helpers.py in draw_all(cls, force)
148 for f_mgr in cls.get_all_fig_managers():
149 if force or f_mgr.canvas.figure.stale:
--> 150 f_mgr.canvas.draw_idle()
151
152 atexit.register(Gcf.destroy_all)
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/backend_bases.py in draw_idle(self, *args, **kwargs)
2030 if not self._is_idle_drawing:
2031 with self._idle_draw_cntx():
-> 2032 self.draw(*args, **kwargs)
2033
2034 def draw_cursor(self, event):
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in draw(self)
462
463 try:
--> 464 self.figure.draw(self.renderer)
465 finally:
466 RendererAgg.lock.release()
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py in draw(self, renderer)
1141
1142 mimage._draw_list_compositing_images(
-> 1143 renderer, self, dsu, self.suppressComposite)
1144
1145 renderer.close_group('figure')
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, dsu, suppress_composite)
137 if not_composite or not has_images:
138 for zorder, a in dsu:
--> 139 a.draw(renderer)
140 else:
141 # Composite any adjacent images together
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe)
2407 renderer.stop_rasterizing()
2408
-> 2409 mimage._draw_list_compositing_images(renderer, self, dsu)
2410
2411 renderer.close_group('axes')
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, dsu, suppress_composite)
137 if not_composite or not has_images:
138 for zorder, a in dsu:
--> 139 a.draw(renderer)
140 else:
141 # Composite any adjacent images together
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in draw(self, renderer)
752
753 with _wrap_text(self) as textobj:
--> 754 bbox, info, descent = textobj._get_layout(renderer)
755 trans = textobj.get_transform()
756
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in _get_layout(self, renderer)
333 of a rotated text when necessary.
334 """
--> 335 key = self.get_prop_tup(renderer=renderer)
336 if key in self._cached:
337 return self._cached[key]
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in get_prop_tup(self, renderer)
907 need to know if the text has changed.
908 """
--> 909 x, y = self.get_unitless_position()
910 return (x, y, self.get_text(), self._color,
911 self._verticalalignment, self._horizontalalignment,
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in get_unitless_position(self)
889 # This will get the position with all unit information stripped away.
890 # This is here for convienience since it is done in several locations.
--> 891 x = float(self.convert_xunits(self._x))
892 y = float(self.convert_yunits(self._y))
893 return x, y
TypeError: only length-1 arrays can be converted to Python scalars
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/bill/anaconda3/lib/python3.5/site-packages/IPython/core/formatters.py in __call__(self, obj)
337 pass
338 else:
--> 339 return printer(obj)
340 # Finally look for special method names
341 method = _safe_get_formatter_method(obj, self.print_method)
/home/bill/anaconda3/lib/python3.5/site-packages/IPython/core/pylabtools.py in <lambda>(fig)
226
227 if 'png' in formats:
--> 228 png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
229 if 'retina' in formats or 'png2x' in formats:
230 png_formatter.for_type(Figure, lambda fig: retina_figure(fig, **kwargs))
/home/bill/anaconda3/lib/python3.5/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs)
117
118 bytes_io = BytesIO()
--> 119 fig.canvas.print_figure(bytes_io, **kw)
120 data = bytes_io.getvalue()
121 if fmt == 'svg':
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
2190 orientation=orientation,
2191 dryrun=True,
-> 2192 **kwargs)
2193 renderer = self.figure._cachedRenderer
2194 bbox_inches = self.figure.get_tightbbox(renderer)
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in print_png(self, filename_or_obj, *args, **kwargs)
543
544 def print_png(self, filename_or_obj, *args, **kwargs):
--> 545 FigureCanvasAgg.draw(self)
546 renderer = self.get_renderer()
547 original_dpi = renderer.dpi
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in draw(self)
462
463 try:
--> 464 self.figure.draw(self.renderer)
465 finally:
466 RendererAgg.lock.release()
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py in draw(self, renderer)
1141
1142 mimage._draw_list_compositing_images(
-> 1143 renderer, self, dsu, self.suppressComposite)
1144
1145 renderer.close_group('figure')
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, dsu, suppress_composite)
137 if not_composite or not has_images:
138 for zorder, a in dsu:
--> 139 a.draw(renderer)
140 else:
141 # Composite any adjacent images together
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe)
2407 renderer.stop_rasterizing()
2408
-> 2409 mimage._draw_list_compositing_images(renderer, self, dsu)
2410
2411 renderer.close_group('axes')
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, dsu, suppress_composite)
137 if not_composite or not has_images:
138 for zorder, a in dsu:
--> 139 a.draw(renderer)
140 else:
141 # Composite any adjacent images together
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
61 def draw_wrapper(artist, renderer, *args, **kwargs):
62 before(artist, renderer)
---> 63 draw(artist, renderer, *args, **kwargs)
64 after(artist, renderer)
65
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in draw(self, renderer)
752
753 with _wrap_text(self) as textobj:
--> 754 bbox, info, descent = textobj._get_layout(renderer)
755 trans = textobj.get_transform()
756
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in _get_layout(self, renderer)
333 of a rotated text when necessary.
334 """
--> 335 key = self.get_prop_tup(renderer=renderer)
336 if key in self._cached:
337 return self._cached[key]
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in get_prop_tup(self, renderer)
907 need to know if the text has changed.
908 """
--> 909 x, y = self.get_unitless_position()
910 return (x, y, self.get_text(), self._color,
911 self._verticalalignment, self._horizontalalignment,
/home/bill/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in get_unitless_position(self)
889 # This will get the position with all unit information stripped away.
890 # This is here for convienience since it is done in several locations.
--> 891 x = float(self.convert_xunits(self._x))
892 y = float(self.convert_yunits(self._y))
893 return x, y
TypeError: only length-1 arrays can be converted to Python scalars
<matplotlib.figure.Figure at 0x7f91490b17b8>