File:Reciprocalgammaplotonneg7.5to5.1.png
From specialfunctionswiki
Size of this preview: 599 × 600 pixels. Other resolutions: 240 × 240 pixels | 875 × 876 pixels.
Original file (875 × 876 pixels, file size: 29 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(-7.5,5.1,0.0001); f=np.vectorize(rgamma) y1=f(x1) x2=np.arange(-7.5,5.1,0.1); def g(x): return 0 h=np.vectorize(g) y2=h(x2) 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{\frac{1}{\Gamma}(x)}$') plt.plot(x1,y1,linewidth=2,color='Black') plt.plot(x2,y2,'--',linewidth=2,color='Black') plt.ylim([-20,110]) plt.xlim([-7.5,5.1]) plt.savefig('reciprocalgammaplotonneg7.5to5.1.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 | 00:08, 24 May 2016 | 875 × 876 (29 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(-7.5,5.1,0.0001); f=np.vectorize(rgamma) y1=f(x1) x2=np.arange... |
- You cannot overwrite this file.
File usage
The following page links to this file: