[Python] 3D quiver arrow look

Discussão em 'Python' iniciado por Stack, Fevereiro 7, 2025.

  1. Stack

    Stack Membro Participativo

    I´m trying to plot an arrow inside a sphere and have the following code

    u, v = np.mgrid[0:2*np.pi:20j, 0:np.pi:10j]
    x = np.cos(u)*np.sin(v)
    y = np.sin(u)*np.sin(v)
    z = np.cos(v)
    fig = pl.figure(figsize=(20,15))
    ax = fig.gca(projection='3d')
    ax.quiver(0, 0, 0,blocx[0], blocy[0], blocz[0],color="b",linewidth=5)
    ax.plot_wireframe(x, y, z, color ='#15B05E')

    ax.view_init(30, 70)
    pl.show()


    where the blocx, y and z are some data I have. As a result, I get this: [​IMG]

    but I´d like the arrow head to be like a cone, as well as smaller in size, how can I do that?

    Continue reading...

Compartilhe esta Página