我想做一个没有箭头的箭袋图。我还想有边框,这样箭头就可以从背景色图中脱颖而出。下面是我试图生成这样一个图的代码的主要部分:
plt.quiver(phia[sl1,sl2], R0a[sl1,sl2],u,v, color='white', headlength=0, headwidth = 1, pivot = 'middle', scale = scale, width=width, linewidth = 0.5)
如果这很重要的话,情节就在极轴上。除了那些很短的线之外,这对大多数线路都有效。在这种情况下,边界上的一些人造尾巴是在线条之后产生的。我生成的其中一个受此影响最大的图是:
任何解决这个问题的方法或建议绕过它将不胜感激!谢谢!在
将
headaxislength
参数指定为零可以实现以下目的:上面的代码生成了下面的quiverblot,没有箭头。
相关问题 更多 >
编程相关推荐