File:Arctanplot.png
From specialfunctionswiki
Size of this preview: 582 × 600 pixels. Other resolutions: 233 × 240 pixels | 861 × 887 pixels.
Original file (861 × 887 pixels, file size: 22 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(-20,20,0.0001); f=np.vectorize(atan) y=f(x) fig, ax = plt.subplots() xlabels = [item.get_text() for item in ax.get_xticklabels()] xlabels=[r'$-15$',r'$-10$',r'$-5$',r'$0$',r'$5$',r'$10$',r'$15$'] ax.set_xticks([-15,-10,-5,0,5,10,15]) ax.set_xticklabels(xlabels,horizontalalignment='center') ylabels = [item.get_text() for item in ax.get_yticklabels()] ylabels[0]=r'$-\frac{\pi}{2}$' ylabels[1]=r'$0$' ylabels[2]=r'$\frac{\pi}{2}$' ax.set_yticks([-1.52,0,1.52]) ax.set_yticklabels(ylabels,horizontalalignment='right') plt.xlabel('$x$') plt.ylabel('$\mathrm{arctan}(x)$') plt.plot(x,y,linewidth=2,color='Black') plt.savefig('arctanplot.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 | 04:13, 16 May 2016 | 861 × 887 (22 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(-20,20,0.0001); f=np.vectorize(atan) y=f(x) fig, ax = plt.subp... |
- You cannot overwrite this file.
File usage
The following page links to this file: