File:Airybiplot.png

From specialfunctionswiki
Jump to: navigation, search
Original file(876 × 889 pixels, file size: 42 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(-14.8,2,0.01);
x2=x1
f=np.vectorize(airybi)
def g(x):
        return 0
h=np.vectorize(g)
y1=f(x1)
y2=h(x2)

fig, ax = plt.subplots()

xlabels = [item.get_text() for item in ax.get_xticklabels()]
xlabels=[r'$b_1$',r'$b_2$',r'$b_3$',r'$b_4$',r'$b_5$',r'$b_6$',r'$b_7$',r'$b_8$',r'$b_9$',r'$b_{10}$',r'$b_{11}$',r'$b_{12}$',r'$0$',r'$1$']
ax.set_xticks([-1.17371,-3.27109,-4.83074,-6.16985,-7.37676,-8.49195,-9.53819,-10.5299,-11.477,-12.3864,-13.2636,-14.1128,0,1])
ax.set_xticklabels(xlabels,horizontalalignment='center')

plt.xlabel('$x$')
plt.ylabel('$\mathrm{Bi}(x)$')

plt.plot(x1,y1,linewidth=2,color='Black')
plt.plot(x2,y2,'--',linewidth=2,color='Black')

plt.savefig('airybiplot.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/TimeThumbnailDimensionsUserComment
current07:44, 16 May 2016Thumbnail for version as of 07:44, 16 May 2016876 × 889 (42 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(-14.8,2,0.01); x2=x1 f=np.vectorize(airybi) def g(x):...
  • You cannot overwrite this file.

The following page links to this file:

Metadata