File:Saddle Point SVG.svg

From formulasearchengine
Jump to navigation Jump to search

Original file(SVG file, nominally 720 × 540 pixels, file size: 865 KB)

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

Description
English: SVG version of the illustration of saddle point.
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

# Author: Ika, 2013-07-26
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.gca(projection='3d')
ax.set_xlabel('x')
ax.set_ylabel('y')
# Prepare the data to plot
X = np.arange(-8, 8, 0.5)
Y = np.arange(-8, 8, 0.5)
X, Y = np.meshgrid(X, Y)
Z = X*X - Y*Y
# Plot the surface
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet, linewidth=0, antialiased=False)

# Plot the saddle point
x=y=z=np.arange(-0.1,0.1,0.1)
ax.plot(x, y, z, 'r+', linewidth=1)
ax.text(-2,0,2,r'(0,0,0)',fontsize=20)

fig.colorbar(surf, shrink=0.5, aspect=5)

# Save the figure to the output SVG file
plt.savefig("Saddle_Point_SVG.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 3.0 Unported 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

26 July 2013

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:44, 26 July 2013Thumbnail for version as of 17:44, 26 July 2013720 × 540 (865 KB)wikimediacommons>IkamusumeFanUser created page with UploadWizard

There are no pages that use this file.