[Python] matplotlib.pyplot.quiver draws gigantic arrows, 'scale' or 'width' as parameter,...

Discussão em 'Python' iniciado por Stack, Junho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I am drawing a graph with the path of a vector and the position of thissame vector at a given time. I am using quiver in 3D, but when I try to use scale or width in the parameters, it gives an error. It plots the vector, but it has a too-big arrow. The two "side lines", which are making arrow point are to big. How to make them a litle bit smaller? [​IMG]

    ax = plt.axes(projection='3d')
    ax.set_autoscalex_on(True)
    ax.scatter3D(x, y, z, s=0.4 )
    #x, y and z are arrays with coordinates of points
    ax.quiver(0, 0, 0, x[10], y[10], z[10], color='red')
    {}s'.format(step)

    plt.show()

    Continue reading...

Compartilhe esta Página