File:Mayavi spherical harmonics Y 3 0.jpg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 525 × 600 pixels. Other resolutions: 210 × 240 pixels | 420 × 480 pixels | 700 × 800 pixels.
Original file (700 × 800 pixels, file size: 40 KB, MIME type: image/jpeg)
File information
Structured data
Captions
Summary
[edit]DescriptionMayavi spherical harmonics Y 3 0.jpg |
English: 3D plot of the spherical harmonic function .
Created with Python and MayaVi. |
Date | |
Source | Own work |
Author | MagHoxpox |
import numpy as np
from scipy.special import sph_harm
from mayavi import mlab
theta_1d = np.linspace(0, np.pi, 91)
phi_1d = np.linspace(0, 2*np.pi, 181)
theta_2d, phi_2d = np.meshgrid(theta_1d, phi_1d)
xyz_2d = np.array([np.sin(theta_2d) * np.sin(phi_2d),
np.sin(theta_2d) * np.cos(phi_2d),
np.cos(theta_2d)])
l=3
m=0
Y_lm = sph_harm(m,l, phi_2d, theta_2d)
r = np.abs(Y_lm.real)*xyz_2d
mlab.figure(size=(700,830))
mlab.mesh(r[0], r[1], r[2], scalars=Y_lm.real, colormap="cool")
mlab.view(azimuth=0, elevation=75, distance=2.4, roll=-50)
mlab.savefig("Y_%i_%i.jpg" % (l,m))
mlab.show()
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 08:24, 29 December 2017 | 700 × 800 (40 KB) | MagHoxpox (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on en.wikipedia.org
- Usage on ja.wikipedia.org
Hidden categories: