File:Matplotlib3 surf3d.svg

Uploaded by Geek3
Upload date 2020-11-17T12:24:07Z
MIME type image/svg+xml
Dimensions 576 × 432 px
File size 290.2 KB

Summary

Description
English: An example 3D surface plot made with matplotlib version 3
Date
Source Own work
Author Geek3
SVG development
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

17 November 2020

297,194 byte

image/svg+xml

f7d4c86d5a6dc05fb9cbbe6ae36b7f8e328a44f0

Category:CC-BY-SA-4.0 Category:Photos by User:Geek3 Category:SVG surface plots Category:Self-published work Category:Valid SVG created with Matplotlib code