Jump to content

File:Sinc abs.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 360 × 288 pixels, file size: 85 KB)

Summary

Description
English: Svg version of .
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with an unknown SVG tool.
 
  This SVG map uses required raster graphics to show delicate structures.

Python/Matplotlib Source Code

#!/usr/bin/env python
 
"""This generates the graph depicting |sinc(z)|."""
# Author: Ika. 2015-08-13

from matplotlib.pyplot import *
import matplotlib.pyplot as plt
import numpy as np

low = -7.0
high = 7.0
tic = 0.1

X = np.arange(low, high, tic)

Z = np.outer(X,X)

for i in range(len(X)):
	for j in range(len(X)):
		x = low + tic*j
		y = low + tic*i
		if np.abs(x)<tic and np.abs(y)<tic:
			Z[i][j] = 0.0
		else:
			Z[i][j] = np.abs((np.exp(1j*(x+1j*y))-np.exp(-1j*(x+1j*y)))/(2j*(x+1j*y)))

plt.figure(figsize=(4,3.2))
plt.axes([0.18,0.08,0.76,0.9])

plt.imshow(Z, origin='lower', \
			cmap=plt.cm.gist_rainbow,\
			extent=(low, high, low, high))
plt.colorbar(shrink=0.84)
for a in plt.gca().get_xticklabels():
    a.set_size(10)
for a in plt.gca().get_yticklabels():
    a.set_size(10)
plt.savefig("sinc_abs.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

13 August 2015

File history

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

Date/TimeThumbnailDimensionsUserComment
current08:00, 13 August 2015Thumbnail for version as of 08:00, 13 August 2015360 × 288 (85 KB)IkamusumeFanUser created page with UploadWizard
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file:

Metadata