Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reorder Axes3D parameters semantically. #28370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ class Axes3D(Axes):
Axes._shared_axes["view"] = cbook.Grouper()

def __init__(
self, fig, rect=None, *args,
elev=30, azim=-60, roll=0, sharez=None, proj_type='persp',
box_aspect=None, computed_zorder=True, focal_length=None,
shareview=None,
**kwargs):
self, fig, rect=None, *args,
elev=30, azim=-60, roll=0, shareview=None, sharez=None,
proj_type='persp', focal_length=None,
box_aspect=None,
computed_zorder=True,
**kwargs,
):
"""
Parameters
----------
Expand All @@ -83,11 +85,21 @@ def __init__(
The roll angle in degrees rotates the camera about the viewing
axis. A positive angle spins the camera clockwise, causing the
scene to rotate counter-clockwise.
shareview : Axes3D, optional
Other Axes to share view angles with. Note that it is not possible
to unshare axes.
sharez : Axes3D, optional
Other Axes to share z-limits with. Note that it is not possible to
unshare axes.
proj_type : {'persp', 'ortho'}
The projection type, default 'persp'.
focal_length : float, default: None
For a projection type of 'persp', the focal length of the virtual
camera. Must be > 0. If None, defaults to 1.
For a projection type of 'ortho', must be set to either None
or infinity (numpy.inf). If None, defaults to infinity.
The focal length can be computed from a desired Field Of View via
the equation: focal_length = 1/tan(FOV/2)
box_aspect : 3-tuple of floats, default: None
Changes the physical dimensions of the Axes3D, such that the ratio
of the axis lengths in display units is x:y:z.
Expand All @@ -101,16 +113,6 @@ def __init__(
does not produce the desired result. Note however, that a manual
zorder will only be correct for a limited view angle. If the figure
is rotated by the user, it will look wrong from certain angles.
focal_length : float, default: None
For a projection type of 'persp', the focal length of the virtual
camera. Must be > 0. If None, defaults to 1.
For a projection type of 'ortho', must be set to either None
or infinity (numpy.inf). If None, defaults to infinity.
The focal length can be computed from a desired Field Of View via
the equation: focal_length = 1/tan(FOV/2)
shareview : Axes3D, optional
Other Axes to share view angles with. Note that it is not possible
to unshare axes.

**kwargs
Other optional keyword arguments:
Expand Down
Loading