Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mplleaflet
- import matplotlib.pyplot as plt
- import matplotlib as mpl
- fig, ax = plt.subplots()
- x = 2.363561
- y = 48.951918
- r = 2000
- circle1 = mpl.patches.Circle((x,y), radius=r)
- circle2= plt.Circle((x, y), r, color='r')
- #ax.add_patch(circle1)
- #ax.add_patch(circle2)
- mplleaflet.show(fig=ax.figure)
- Traceback (most recent call last):
- File "<ipython-input-81-1fdd7f4a9d12>", line 16, in <module>
- mplleaflet.show(fig = ax.figure)
- File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 180, in show
- save_html(fig, fileobj=f, **kwargs)
- File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 131, in save_html
- html = fig_to_html(fig, **kwargs)
- File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 84, in fig_to_html
- exporter.run(fig)
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 51, in run
- self.crawl_fig(fig)
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 118, in crawl_fig
- self.crawl_ax(ax)
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 138, in crawl_ax
- self.draw_patch(ax, patch)
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 227, in draw_patch
- mplobj=patch)
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletleaflet_renderer.py", line 125, in draw_path
- rings = list(iter_rings(data, pathcodes))
- File "C:ProgramDataAnaconda3libsite-packagesmplleafletutils.py", line 14, in iter_rings
- raise ValueError('Unrecognized code: {}'.format(code))
- ValueError: Unrecognized code: C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement