File:Fresnelcplot.png
From specialfunctionswiki
Size of this preview: 595 × 600 pixels. Other resolutions: 238 × 240 pixels | 869 × 876 pixels.
Original file (869 × 876 pixels, file size: 49 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(-10,10,0.01); f=np.vectorize(fresnelc) y1=f(x) def g(x): return 0.5 def h(x): return -0.5 j=np.vectorize(g) k=np.vectorize(h) y2=j(x) y3=k(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') ylabels=[item.get_text() for item in ax.get_yticklabels()] ylabels=[r'$-\frac{1}{2}$',r'$0$',r'$\frac{1}{2}$'] ax.set_yticks([-0.5,0,0.5]) ax.set_yticklabels(ylabels,verticalalignment='center') plt.xlabel(r'$x$') plt.ylabel(r'$C(x)$') plt.plot(x,y1,linewidth=2,color='Black') plt.plot(x,y2,'--',linewidth=2,color='Black') plt.plot(x,y3,'--',linewidth=2,color='Black') plt.savefig('fresnelcplot.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:47, 23 May 2016 | 869 × 876 (49 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(-10,10,0.01); f=np.vectorize(fresnelc) y1=f(x) def g(x):... |
- You cannot overwrite this file.
File usage
The following page links to this file: