Download 3d_plot.py from antitheft159/3Dplot: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/antitheft159/3Dplot/resolve/4817160a26839ca0734a782f8350ff53108be25b/3d_plot.py
- Command line
-
hf download hf://antitheft159/3Dplot@4817160a26839ca0734a782f8350ff53108be25b/3d_plot.py
-
curl -L -o 3d_plot.py https://huggingface.co/antitheft159/3Dplot/resolve/4817160a26839ca0734a782f8350ff53108be25b/3d_plot.py
404 Bytes
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| # Create data points | |
| x = np.linspace(-5, 5, 100) | |
| y = np.linspace(-5, 5, 100) | |
| X, Y = np.meshgrid(x, y) | |
| Z = np.sin(np.sqrt(X**2 + Y**2)) | |
| # Create a 3D plot | |
| fig = plt.figure() | |
| ax = fig.add_subplot(111, projection='3d') | |
| ax.plot_surface(X, Y, Z) | |
| ax.set_xlabel('X-axis') | |
| ax.set_ylabel('Y-axis') | |
| ax.set_zlabel('Z-axis') | |
| ax.set_title('WealthNet') | |
| plt.show() |