File:Arcsinplot.png
From specialfunctionswiki
Size of this preview: 575 × 599 pixels. Other resolutions: 230 × 240 pixels | 861 × 897 pixels.
Original file (861 × 897 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 x=np.arange(-1,1,0.0001); f=np.vectorize(asin) y=f(x) fig, ax = plt.subplots() xlabels = [item.get_text() for item in ax.get_xticklabels()] xlabels=[r'$-1$',r'$-\frac{1}{2}$',r'$0$',r'$\frac{1}{2}$','$1$'] ax.set_xticks([-1,-0.5,0,0.5,0.99]) 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'$-\frac{\pi}{6}$' ylabels[2]=r'$0$' ylabels[3]=r'$\frac{\pi}{6}$' ylabels[4]=r'$\frac{\pi}{2}$' ax.set_yticks([-1.571,-0.5235,0,0.5235,1.558]) ax.set_yticklabels(ylabels,horizontalalignment='right') plt.xlabel('$x$') plt.ylabel('$\mathrm{arcsin}(x)$') plt.plot(x,y,linewidth=2,color='Black') plt.savefig('arcsinplot.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 | 03:51, 16 May 2016 | 861 × 897 (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 x=np.arange(-1,1,0.0001); f=np.vectorize(asin) y=f(x) fig, ax = plt.subplo... |
- You cannot overwrite this file.
File usage
The following page links to this file: