File:Coshglyph.png

From specialfunctionswiki
Revision as of 05:59, 10 January 2017 by Tom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Coshglyph.png(186 × 192 pixels, file size: 5 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(-3,3,0.00001)
f=np.vectorize(cosh)
y=f(x)

fig, ax = plt.subplots()
#plt.ylim([-2,2])
#plt.xlim([-3,3])
ax.spines['left'].set_position('center')
ax.spines['right'].set_color('none')
ax.spines['bottom'].set_position(('axes',0.005))
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.plot(x,y,linewidth=5,color='Black')

plt.savefig('coshglyph.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
current20:35, 14 May 2016Thumbnail for version as of 20:35, 14 May 2016186 × 192 (5 KB)Tom (talk | contribs)Category:Coshglyph <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 x=np.arange(-3,3,0.00001) f=np.vectorize(cosh) y=f(x) fig, ax = plt....
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata