File:Monkey saddle surface.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 575 × 449 pixels, file size: 227 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionMonkey saddle surface.svg |
English: A monkey saddle surface, with the equation |
| Date | |
| Source | Own work |
| Author | Nicoguaro |
| SVG development InfoField | |
| Source code InfoField | Python codeimport numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plot_args = {'rstride': 1, 'cstride': 1, 'cmap':"viridis",
'linewidth': 0.4, 'antialiased': True,
'vmin': -2, 'vmax': 2}
x, y = np.mgrid[-1:1:31j, -1:1:31j]
z = x**3 - 3*x*y**2
ax.plot_surface(x, y, z, **plot_args)
ax.view_init(azim=-60, elev=20)
ax.set_xlim(-1, 1)
ax.set_ylim(-1, 1)
ax.set_zlim(-2, 2)
plt.xticks([-1, -0.5, 0, 0.5, 1],
[r"$-1$", r"$-1/2$", r"$0$", r"$1/2$", r"$1$"])
plt.yticks([-1, -0.5, 0, 0.5, 1],
[r"$-1$", r"$-1/2$", r"$0$", r"$1/2$", r"$1$"])
ax.set_zticks([-2, -1, 0, 1, 2])
ax.set_zticklabels([r"$-2$", r"$-1$", r"$0$", r"$1$", r"$2$"])
ax.w_xaxis.set_pane_color((1.0, 1.0, 1.0, 0.0))
ax.w_yaxis.set_pane_color((1.0, 1.0, 1.0, 0.0))
ax.w_zaxis.set_pane_color((1.0, 1.0, 1.0, 0.0))
ax.set_xlabel(r"$x$", fontsize=18)
ax.set_ylabel(r"$y$", fontsize=18)
ax.set_zlabel(r"$x^3 - 3xy^2$", fontsize=18)
plt.savefig("monkey_saddle.svg", bbox_inches="tight", transparent=True)
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 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.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
17 May 2016
232,796 byte
449 pixel
575 pixel
image/svg+xml
9ecc96631072bd8930b1bdb6f68648483549f3ee
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 00:48, 18 May 2016 | 575 × 449 (227 KB) | wikimediacommons>Nicoguaro | User created page with UploadWizard |
File usage
There are no pages that use this file.