在matplotlib quiver p中获取“scale”

2024-09-29 23:26:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用以下命令绘制matplotlib quiver plot:

Q = quiver(X[::30,::30],Y[::30,::30],U[::30,::30],V[::30,::30],\
         units='x', color='#383838',width=0.004*nx*dx, \
           pivot='mid',headaxislength=5)

它基本上是好的,但我只需要箭头的长度短一点。有没有一种方法可以知道quiver用来生成绘图的“scale”的值,比如Q.get_scale(),这样我就可以调整这个值,得到我想要的长度吗?在


Tags: 命令plotmatplotlib绘制箭头widthcolorpivot

热门问题