File:Integerdeltacosine,a=0.6,s=0glyph.png

From timescalewiki
Jump to: navigation, search
Integerdeltacosine,a=0.6,s=0glyph.png(186 × 192 pixels, file size: 2 KB, MIME type: image/png)
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from mpmath import *
from pylab import rcParams
rcParams['figure.figsize'] = 2.4,2.4

x=np.arange(-16,14,1)
def integerexp(a,t,s):
        return (1+a)**(t-s)
def integercosine(t): # a=0.6,s=0
        return (integerexp(0.6j,t,0)+integerexp(-0.6j,t,0))/2
def g(x):
        return integercosine(x).real
f=np.vectorize(g)
y=f(x)

fig, ax = plt.subplots()
#plt.ylim([-1.1,1.1])
#plt.xlim([-1.05,1.05])
ax.spines['left'].set_position(('axes',0.37))
ax.spines['right'].set_color('none')
ax.spines['bottom'].set_position(('axes',0.34))
ax.spines['top'].set_color('none')
ax.spines['left'].set_smart_bounds(True)
ax.spines['bottom'].set_smart_bounds(True)
ax.xaxis.set_ticks_position('none')
plt.tick_params(axis='x', which='both', bottom='off', top='off', labelbottom='off')
plt.tick_params(axis='y', which='both', left='off', right='off', labelleft='off')

plt.scatter(x,y,color='Black',s=15)

plt.savefig('integerdeltacosine,a=0.6,s=0glyph.png',bbox_inches='tight',pad_inches=0.0)

File history

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

Date/TimeThumbnailDimensionsUserComment
current07:46, 1 June 2016Thumbnail for version as of 07:46, 1 June 2016186 × 192 (2 KB)Tom (talk | contribs)Category:deltasineglyph Category:glyph Category:timescale:integers Category:deltasine <pre>#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] =...
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata