File:Eiplot.png
From specialfunctionswiki
Size of this preview: 590 × 599 pixels. Other resolutions: 236 × 240 pixels | 871 × 885 pixels.
Original file (871 × 885 pixels, file size: 28 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 x1=np.arange(-5,0,0.00001); x2=np.arange(0,5,0.00001); x3=np.arange(-30,50,1); f=np.vectorize(ei) def g(x): return 0 h=np.vectorize(g) y1=f(x1) y2=f(x2) y3=h(x3) 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{Ei}(x)$') plt.plot(x1,y1,linewidth=2,color='Black') plt.plot(x2,y2,linewidth=2,color='Black') plt.plot(y3,x3,'--',linewidth=2,color='Black') plt.savefig('eiplot.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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:28, 23 May 2016 | 871 × 885 (28 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 x1=np.arange(-5,0,0.00001); x2=np.arange(0,5,0.00001); x3=np.arange(-30,50,... |
- You cannot overwrite this file.
File usage
The following page links to this file: