File:Versinplot.png

From specialfunctionswiki
Revision as of 04:13, 4 October 2016 by Tom (talk | contribs) (Category:Plot <pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 10, 10 x=np.arange(-10,10,0.001); f=np.vectorize(lambda x: 1-cos(x)) y=f(x) fig,...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Original file(872 × 885 pixels, file size: 47 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'] = 10, 10

x=np.arange(-10,10,0.001);
f=np.vectorize(lambda x: 1-cos(x))
y=f(x)

fig, ax = plt.subplots()

plt.xlabel(r'$x$')
plt.ylabel(r'$\mathrm{versin}(x)$')

plt.plot(x,y,linewidth=2,color='Black')

plt.savefig('versinplot.png',bbox_inches='tight',pad_inches=0.15)

File history

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

Date/TimeThumbnailDimensionsUserComment
current04:13, 4 October 2016Thumbnail for version as of 04:13, 4 October 2016872 × 885 (47 KB)Tom (talk | contribs)Category:Plot <pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 10, 10 x=np.arange(-10,10,0.001); f=np.vectorize(lambda x: 1-cos(x)) y=f(x) fig,...
  • You cannot overwrite this file.

The following page links to this file:

Metadata