import matplotlib.pyplot as pltimport mplleaflet#导入数据包#mplleaflet缩放页面fig, ax = plt.subplots()ax.plot([10, 20, 30], [10, 20, 30])# A second plot with some coordinates you want to use as the limits# For instance, I want a plot with x between (-100, 100)ax.plot([-100, 100], [10, 30], alpha = 0) #在当前绘图中绘图,alpha设置透明度mplleaflet.show(fig = ax.figure) #画图
1000字范文,内容丰富有趣,学习的好帮手!