File:E1plot.png

From specialfunctionswiki
Jump to: navigation, search
Original file(854 × 885 pixels, file size: 19 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(0,4,0.001);

def g(x):
        return expint(1,x)
f=np.vectorize(g)
y=f(x)

fig, ax = plt.subplots()

xlabels = [item.get_text() for item in ax.get_xticklabels()]
xlabels=[r'$-4$',r'$-3$',r'$-2$',r'$-1$',r'$0$',r'$1$',r'$2$',r'$3$',r'$4$']
ax.set_xticks([-4,-3,-2,-1,0,1,2,3,4])
ax.set_xticklabels(xlabels,horizontalalignment='center')

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

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

plt.savefig('e1plot.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
current20:37, 23 May 2016Thumbnail for version as of 20:37, 23 May 2016854 × 885 (19 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(0,4,0.001); def g(x): return expint(1,x) f=np.vectoriz...
  • You cannot overwrite this file.

The following page links to this file:

Metadata