Difference between revisions of "File:Versineglyph.png"
From specialfunctionswiki
(Category:versineglyph <pre>#!/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 x1=np.arange(-20,20,0.001) f=np.vectorize(lambda x: 1-cos(x)) y1=f...) |
(Tom uploaded a new version of "File:Versineglyph.png") |
(No difference)
|
Latest revision as of 01:49, 5 January 2017
#!/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 x1=np.arange(-20,20,0.001) f=np.vectorize(lambda x: 1-cos(x)) y1=f(x1) xvert=np.arange(-30,30,0.1) g=np.vectorize(lambda x: 0) yvert=g(xvert) fig, ax = plt.subplots() ax.spines['top'].set_color('none') ax.spines['left'].set_color('none') ax.spines['right'].set_color('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.plot(x1,y1,linewidth=5,color='Black') plt.plot(yvert,xvert,linewidth=1,color='Black') plt.plot(xvert,yvert,linewidth=1,color='Black') plt.xlim(-7,7) plt.ylim(-0.1,2.1) plt.savefig('versinglyph.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 | 01:49, 5 January 2017 | 186 × 192 (7 KB) | Tom (talk | contribs) | Category:versineglyph <pre>#!/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 x1=np.arange(-20,20,0.001) f=np.vectorize(lambda x: 1-cos(x)) y1=f... | |
01:48, 5 January 2017 | 186 × 192 (7 KB) | Tom (talk | contribs) | Category:versineglyph <pre>#!/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 x1=np.arange(-20,20,0.001) f=np.vectorize(lambda x: 1-cos(x)) y1=f... |
- You cannot overwrite this file.
File usage
There are no pages that link to this file.