import matplotlib.pyplot as plt
import mplleaflet
long=[72.12,72.012,72.25,72.0254,73] #data (random)
lat=[50,50.21,51.1263,52.4174,53.21]
ax=plt.plot(long, lat) #matplotlib
mplleaflet.display() #mplleaflet
file "C:\Anaconda\lib\site-packages\mplleaflet\mplexporter\utils.py", line 241, in get_grid_style
if axis._gridOnMajor and len(gridlines) > 0:
AttributeError: 'XAxis' object has no attribute '_gridOnMajor'
mplleaflet attribute error with first use
Problem
Solution
Possible Solution
(def get_grid_style)axis._gridOnMajortoaxis._major_tick_kw['gridOn']Setup