Matplotlib streamplot arrows pointing the wrong way

前端 未结 2 1879
你的背包
你的背包 2021-02-06 13:51

I am generating a groundwater elevation contour and a streamplot in matplotlib

The contour indicates that the elevation is decreasing in many areas but the groundwater

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 14:37

    You can specify the arrow style with arrowstyle='->'. Try both of these and see if this works for you:

    plt.streamplot(xi, yi, dx, dy, color='c', density=1, arrowsize=3, 
                   arrowstyle='<-')
    
    plt.streamplot(xi, yi, dx, dy, color='c', density=1, arrowsize=3, 
                   arrowstyle='->')
    

提交回复
热议问题