Osama Billah
Osama Billah

Reputation: 101

How to zoom_in 3D plot

I have a dataset I display it in 3D. now I have to look deep into that 3D plot. because there is a hole in it and I have to find it. Now I don't know how to do it. The 3D I display. The 3D I display

and I want to extract this from the above image zoom to see this

Upvotes: 1

Views: 1784

Answers (1)

swatchai
swatchai

Reputation: 18782

For 3D viewing distance/angles, there are 3 parameters that you need to specify appropriately:

ax3d.azim = 150   # z rotation (default=270)
ax3d.elev = 42    # x rotation (default=0)
ax3d.dist = 10    # define perspective (default=10)

If you want to zoom-in, ax3d.dist should be set smaller than the default value.

However, the plot limits are also important in such situations. These lines of code are also needed:

ax3d.set_xlim3d(low_x, high_x)
ax3d.set_ylim3d(low_y, high_y)
ax3d.set_zlim3d(low_z, high_z)

Upvotes: 2

Related Questions