[Python] python meshgrid size and line thickness

Discussão em 'Python' iniciado por Stack, Março 16, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to make a grid on the surface of my surfaceplot, now I know that wireframe does not work and the grid command is something else entirely. But I don't seem to be able to get grids like this [​IMG] but rather grids like this[​IMG] and changing rstride and cstride only makes it look like modern art: [​IMG]

    Here is the plot command I am using

    fig = plt.figure()
    ax = fig.add_subplot(111,projection="3d")

    plot = ax.plot_surface(x,y,z, rstride=1, cstride=1, cmap=cm.jet, shade=True,
    linewidth=1, antialiased=False)

    Continue reading...

Compartilhe esta Página