File:Arccosplot.png
From specialfunctionswiki
Size of this preview: 575 × 599 pixels. Other resolutions: 230 × 240 pixels | 858 × 894 pixels.
Original file (858 × 894 pixels, file size: 31 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(acos) 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,1]) ax.set_xticklabels(xlabels,horizontalalignment='center') ylabels = [item.get_text() for item in ax.get_yticklabels()] ylabels[0]=r'$\pi$' ylabels[1]=r'$\frac{2\pi}{3}$' ylabels[2]=r'$\frac{\pi}{2}$' ylabels[3]=r'$\frac{\pi}{3}$' ylabels[4]=r'$0$' ax.set_yticks([3.14159,2.09439,1.570796,1.04719755,0.015]) ax.set_yticklabels(ylabels,horizontalalignment='right') plt.xlabel('$x$') plt.ylabel('$\mathrm{arccos}(x)$') plt.plot(x,y,linewidth=2,color='Black') plt.savefig('arccosplot.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:59, 16 May 2016 | 858 × 894 (31 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(acos) y=f(x) fig, ax = plt.subplo... |
- You cannot overwrite this file.
File usage
The following page links to this file: