File:Erfiplot.png
From specialfunctionswiki
Size of this preview: 583 × 599 pixels. Other resolutions: 233 × 240 pixels | 861 × 885 pixels.
Original file (861 × 885 pixels, file size: 26 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(-1.5,1.5,0.01); f=np.vectorize(erfi) 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{erfi}(x)$') plt.plot(x,y,linewidth=2,color='Black') plt.savefig('erfiplot.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 | 22:19, 23 May 2016 | 861 × 885 (26 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(-1.5,1.5,0.01); f=np.vectorize(erfi) y=f(x) fig, ax = plt.subp... |
- You cannot overwrite this file.
File usage
The following page links to this file: