File:Surface3D sinFoisSin python matplotlib.svg

Summary

Description
Français : Surface z = sin(x) × sin(y) tracée avec Python/Matplotlib.
English: Surface z = sin(x) × sin(y) plotted with Python/Matplotlib.
Date
Source Own work
Author Cdang
Category:Files by User:cdang
 
This plot was created with Matplotlib.
Category:Valid SVG created with Matplotlib#Surface3D%20sinFoisSin%20python%20matplotlib.svg
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # permet d'utiliser l'attribut projection="3d"

x = np.linspace(0, 2*np.pi, 20)
y = x.copy()
X, Y = np.meshgrid(x, y)

Z = np.sin(X)*np.sin(Y)

plt.figure()
ax = plt.axes(projection="3d")

ax.contour(X, Y, Z, zdir="z", offset=-1)
ax.plot_surface(X, Y, Z, alpha=0.8)

plt.savefig("surface3D_sinFoisSin_python_matplotlib.svg", format="svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Surface3D%20sinFoisSin%20python%20matplotlib.svg
Category:Self-published work Category:Surface plots
Category:CC-BY-SA-4.0 Category:Files by User:cdang Category:Pages using deprecated source tags Category:Self-published work Category:Surface plots Category:Valid SVG created with Matplotlib