- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Zoom with Axes3D in Matplotlib?
To zoom with Axes3D, we can take the following steps −
- Set the figure size and adjust the padding between and around the subplots.
- Create a new figure or activate an existing figure using figure() method.
- Get 3D axes object using Axes3D(fig) method.
- Plot x, y and z data points using scatter() method.
- To display the figure, use show() method.
Example
from mpl_toolkits.mplot3d import Axes3D from matplotlib import pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True fig = plt.figure() ax = Axes3D(fig) x = [2, 4, 6, 3, 1] y = [1, 6, 8, 1, 3] z = [3, 4, 10, 3, 1] ax.scatter3D(x, y, z, c=z, alpha=1, marker='d', s=150) plt.show()
Output
- Related Articles
- How to zoom subplots together in Matplotlib/Pyplot?
- How to zoom in and zoom out images using JavaScript?
- How to zoom a portion of an image and insert in the same plot in Matplotlib?
- How to create a meeting with the zoom API in Python?
- How to make a polygon object zoom-in and zoom-out using FabricJS?
- How to zoom/scale an element on hover with CSS?
- How to create an image to zoom with CSS and JavaScript?
- How to Secure ZOOM application
- Android imageView Zoom-in and Zoom-Out?
- How to enable webview zoom controls in android?
- How to create an image overlay zoom effect on hover with CSS?
- How to get the zoom level of a Canvas with Polyline object in FabricjS?
- SVG zoom-in and zoom-out in React JS
- Android imageView Zoom-in and Zoom-Out using Kotlin?
- How to zoom all tabs in one size in Excel?

Advertisements