use*_*827 13 python matplotlib
我有以下网格图,并想绘制一个箭头(使用MS绘制蓝色显示).我怎么能通过matplotlib做到这一点?我不知道有任何命令要做.

Die*_*ich 17
import matplotlib.pyplot as plt
fg = plt.figure(1);
fg.clf();
ax = fg.add_subplot(1,1,1)
ax.annotate('', xy=(0, -0.1), xycoords='axes fraction', xytext=(1, -0.1),
arrowprops=dict(arrowstyle="<->", color='b'))
ax.grid(True)
fg.canvas.draw()
Run Code Online (Sandbox Code Playgroud)
给 