sewkokot / opsvis

OpenSeesPy postprocessing and plotting module
GNU General Public License v3.0
35 stars 21 forks source link

Box aspect ratio for plot_extruded_shapes_3d #16

Closed Folhento closed 2 years ago

Folhento commented 2 years ago

To set the box aspect ratio for plot_extruded_shapes_3d in ops.vis, based on the axes range of one structure's layout.

sewkokot commented 2 years ago

Thank you for the PR. I have a hugely refactored version of opsvis to be uploaded in two days. To be consistent with other places in opsvis (plot_model_3d and plot_defo_3d), I will include the following version of your PR

    ax.set_box_aspect((np.ptp(ax.get_xlim3d()),
                       np.ptp(ax.get_ylim3d()),
                       np.ptp(ax.get_zlim3d())))