File:Matplotlib3 surf3d.svg

Summary

Description
English: An example 3D surface plot made with matplotlib version 3
Date
Source Own work
Author Geek3
SVG development
InfoField
Source code
InfoField

Python code

from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(projection="3d")
X = np.arange(-5, 5, 0.25)
Y = np.arange(-5, 5, 0.25)
X, Y = np.meshgrid(X, Y)
R = np.sqrt(X**2 + Y**2)
Z = np.sin(R)
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.coolwarm, edgecolor="black")
plt.savefig("Matplotlib3 surf3d.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#Matplotlib3%20surf3d.svg
Category:Self-published work Category:Photos by User:Geek3 Category:Surface plots
Category:CC-BY-SA-4.0 Category:Photos by User:Geek3 Category:Self-published work Category:Surface plots Category:Valid SVG created with Matplotlib code