---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
C:\ProgramData\Anaconda2\lib\site-packages\IPython\core\formatters.pyc in __call__(self, obj)
332 pass
333 else:
--> 334 return printer(obj)
335 # Finally look for special method names
336 method = get_real_method(obj, self.print_method)
C:\ProgramData\Anaconda2\lib\site-packages\IPython\core\pylabtools.pyc in <lambda>(fig)
238
239 if 'png' in formats:
--> 240 png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
241 if 'retina' in formats or 'png2x' in formats:
242 png_formatter.for_type(Figure, lambda fig: retina_figure(fig, **kwargs))
C:\ProgramData\Anaconda2\lib\site-packages\IPython\core\pylabtools.pyc in print_figure(fig, fmt, bbox_inches, **kwargs)
122
123 bytes_io = BytesIO()
--> 124 fig.canvas.print_figure(bytes_io, **kw)
125 data = bytes_io.getvalue()
126 if fmt == 'svg':
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
2198 orientation=orientation,
2199 dryrun=True,
-> 2200 **kwargs)
2201 renderer = self.figure._cachedRenderer
2202 bbox_inches = self.figure.get_tightbbox(renderer)
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\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()
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\figure.py in draw(self, renderer)
1142
1143 mimage._draw_list_compositing_images(
-> 1144 renderer, self, dsu, self.suppressComposite)
1145
1146 renderer.close_group('figure')
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in draw(self, renderer, inframe)
2424 renderer.stop_rasterizing()
2425
-> 2426 mimage._draw_list_compositing_images(renderer, self, dsu)
2427
2428 renderer.close_group('axes')
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\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
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axis.py in draw(self, renderer, *args, **kwargs)
1136 ticks_to_draw = self._update_ticks(renderer)
1137 ticklabelBoxes, ticklabelBoxes2 = self._get_tick_bboxes(ticks_to_draw,
-> 1138 renderer)
1139
1140 for tick in ticks_to_draw:
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axis.py in _get_tick_bboxes(self, ticks, renderer)
1076 for tick in ticks:
1077 if tick.label1On and tick.label1.get_visible():
-> 1078 extent = tick.label1.get_window_extent(renderer)
1079 ticklabelBoxes.append(extent)
1080 if tick.label2On and tick.label2.get_visible():
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\text.py in get_window_extent(self, renderer, dpi)
965 raise RuntimeError('Cannot get window extent w/o renderer')
966
--> 967 bbox, info, descent = self._get_layout(self._renderer)
968 x, y = self.get_unitless_position()
969 x, y = self.get_transform().transform_point((x, y))
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\text.py in _get_layout(self, renderer)
351 tmp, lp_h, lp_bl = renderer.get_text_width_height_descent('lp',
352 self._fontproperties,
--> 353 ismath=False)
354 offsety = (lp_h - lp_bl) * self._linespacing
355
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\backends\backend_agg.py in get_text_width_height_descent(self, s, prop, ismath)
228 fontsize = prop.get_size_in_points()
229 w, h, d = texmanager.get_text_width_height_descent(s, fontsize,
--> 230 renderer=self)
231 return w, h, d
232
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\texmanager.py in get_text_width_height_descent(self, tex, fontsize, renderer)
674 else:
675 # use dviread. It sometimes returns a wrong descent.
--> 676 dvifile = self.make_dvi(tex, fontsize)
677 dvi = dviread.Dvi(dvifile, 72 * dpi_fraction)
678 try:
C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\texmanager.py in make_dvi(self, tex, fontsize)
421 'string:\n%s\nHere is the full report generated by '
422 'LaTeX: \n\n' % repr(tex.encode('unicode_escape')) +
--> 423 report))
424 else:
425 mpl.verbose.report(report, 'debug')
RuntimeError: LaTeX was not able to process the following string:
'lp'
Here is the full report generated by LaTeX:
<matplotlib.figure.Figure at 0xb16f4a8>