Allow dragging in matplotlib 3d plots.
Project description
mplot3d_dragger
Allow dragging in matplotlib 3d plots.
Why this
It seems that dragging is not support by matplotlib when drawing and visualizing 3D plots interactively, though rotating and zooming are supported. This can be very inconvenient when you want to visualize and observe a small part of a 3D plot with large range, e.g., a large point cloud scene. Thus, if you also meet this problem like I do, have a try of this one.
Install
pip install mplot3d-dragger
Usage
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# import Dragger3D
from mplot3d_dragger import Dragger3D
fig = plt.figure()
ax = Axes3D(fig)
# ... (your plotting) ...
# wrap your axes with Dragger3D
dr = Dragger3D(ax)
# or for real-time dragging
# dr = Dragger3D(ax, real_time=True)
# but this can be stuttering
# when you have a lot of objects in one figure
# show()
plt.show()
Press SPACE, drag 3D objects by moving your cursor on figure (do not press mouse key), and release SPACE.
To do list
- Drag alone z axis
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mplot3d_dragger-0.0.0.tar.gz
.
File metadata
- Download URL: mplot3d_dragger-0.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b6c4df5752461f8bcb56dc6fc5e014b6abc2ff45d171cf28bf73e9f5bcc0682 |
|
MD5 | 0782e6f1cb317bcb3887fe6f18f4b486 |
|
BLAKE2b-256 | f96ee27257144f1dad7785c728c68ec24e8549e26e4abf6cb249926c5ea4658c |
Provenance
File details
Details for the file mplot3d_dragger-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: mplot3d_dragger-0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2797dbbd73d057c139c4496104f4a34631d4bbf693460a7b4045b8340817f910 |
|
MD5 | a903d98af4fb49e19d7d43b42281ee05 |
|
BLAKE2b-256 | 26f6002e5288f570e339519c8a3030c4f0ea1a1b1a97ba122c9f5616c08fa989 |