File:Sinc re.svg

Summary

Description
English: Re Sinc complex plot.
Date
Source Own work based on: Re Sinc complex plot.JPG: 
Author IkamusumeFan
SVG development
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
Category:Valid SVG created with Matplotlib#Sinc%20re.svgCategory:SVG images with embedded raster graphics#Sinc%20re.svg

Source code

The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
This media was created with Matplotlib (comprehensive library for creating static, animated, and interactive visualizations in Python)Category:Images with Matplotlib source code
Here is a listing of the source used to create this file.

Deutsch  English  +/−

#!/usr/bin/env python
 
"""This generates the graph depicting Im 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.exp(1j*(x+1j*y))-np.exp(-1j*(x+1j*y)))/(2j*(x+1j*y))).real

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_im.svg")

Licensing

IkamusumeFan, the copyright holder of this work, hereby publishes 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.
Attribution:
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.
Category:CC-BY-SA-4.0#Sinc%20re.svgCategory:Self-published work
Category:Sinc function
Category:CC-BY-SA-4.0 Category:Images with Matplotlib source code Category:SVG images with embedded raster graphics Category:Self-published work Category:Sinc function Category:Valid SVG created with Matplotlib