Difference between revisions of "File:Integerdeltacosine,a=0.6,s=0glyph.png"
From timescalewiki
(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'] =...) |
|||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:deltacosineglyph]] |
[[Category:glyph]] | [[Category:glyph]] | ||
[[Category:timescale:integers]] | [[Category:timescale:integers]] | ||
− | [[Category: | + | [[Category:deltacosine]] |
<pre>#!/usr/bin/python | <pre>#!/usr/bin/python | ||
import numpy as np | import numpy as np |
Latest revision as of 07:47, 1 June 2016
#!/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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 07:46, 1 June 2016 | 186 × 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.
File usage
There are no pages that link to this file.