Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. import mplleaflet
  2. import matplotlib.pyplot as plt
  3. import matplotlib as mpl
  4.  
  5. fig, ax = plt.subplots()
  6. x = 2.363561
  7. y = 48.951918
  8. r = 2000
  9. circle1 = mpl.patches.Circle((x,y), radius=r)
  10. circle2= plt.Circle((x, y), r, color='r')
  11.  
  12. #ax.add_patch(circle1)
  13. #ax.add_patch(circle2)
  14.  
  15. mplleaflet.show(fig=ax.figure)
  16.  
  17. Traceback (most recent call last):
  18.  
  19. File "<ipython-input-81-1fdd7f4a9d12>", line 16, in <module>
  20. mplleaflet.show(fig = ax.figure)
  21.  
  22. File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 180, in show
  23. save_html(fig, fileobj=f, **kwargs)
  24.  
  25. File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 131, in save_html
  26. html = fig_to_html(fig, **kwargs)
  27.  
  28. File "C:ProgramDataAnaconda3libsite-packagesmplleaflet_display.py", line 84, in fig_to_html
  29. exporter.run(fig)
  30.  
  31. File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 51, in run
  32. self.crawl_fig(fig)
  33.  
  34. File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 118, in crawl_fig
  35. self.crawl_ax(ax)
  36.  
  37. File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 138, in crawl_ax
  38. self.draw_patch(ax, patch)
  39.  
  40. File "C:ProgramDataAnaconda3libsite-packagesmplleafletmplexporterexporter.py", line 227, in draw_patch
  41. mplobj=patch)
  42.  
  43. File "C:ProgramDataAnaconda3libsite-packagesmplleafletleaflet_renderer.py", line 125, in draw_path
  44. rings = list(iter_rings(data, pathcodes))
  45.  
  46. File "C:ProgramDataAnaconda3libsite-packagesmplleafletutils.py", line 14, in iter_rings
  47. raise ValueError('Unrecognized code: {}'.format(code))
  48.  
  49. ValueError: Unrecognized code: C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement