[Python] Good organization with 2D and 3D plots

Discussão em 'Python' iniciado por Stack, Janeiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    I want to create a large 4x2 figure, where two of the subplots are 3D, and the rest are 2D. I prepared a layout for this, but the result is not satisfactory. The 3D plots are too small. Is it possible to make these two subplots bigger?

    fig = plt.figure(figsize=(40,10))

    ax1 = fig.add_subplot(241, projection='3d')

    ax2 = fig.add_subplot(242)

    ax3 = fig.add_subplot(243)

    ax4 = fig.add_subplot(244)

    ax5 = fig.add_subplot(245, projection='3d')

    ax6 = fig.add_subplot(246)

    ax7 = fig.add_subplot(247)

    ax8 = fig.add_subplot(248)

    fig.tight_layout()


    [​IMG]

    Continue reading...

Compartilhe esta Página