File:Coshcglyph.png

From specialfunctionswiki
Jump to: navigation, search
Coshcglyph.png(186 × 192 pixels, file size: 4 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

x1=np.arange(0.001,4,0.01)
x2=np.arange(-4,-0.001,0.01)
f=np.vectorize(lambda x: cosh(x)/x)
y1=f(x1)
y2=f(x2)

xvert=np.arange(-30,30,0.1)
def g(x):
        return 0
h=np.vectorize(g)
yvert=h(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(x2,y2,linewidth=5,color='Black')
plt.plot(yvert,xvert,linewidth=1,color='Black')
plt.plot(xvert,yvert,linewidth=1,color='Black')

plt.xlim(-1,1)
plt.ylim(-10,10)

plt.savefig('coshcglyph.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
current01:05, 5 January 2017Thumbnail for version as of 01:05, 5 January 2017186 × 192 (4 KB)Tom (talk | contribs)<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(0.001,4,0.01) x2=np.arange(-4,-0.001,0.01) f=np.vectorize(lambda x: cosh(x)/x)...
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata