File:Ciplot.png

From specialfunctionswiki
Jump to: navigation, search
Original file(886 × 885 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

x1=np.arange(0,20,0.01);
x2=(-4.1,2,0.1);

f=np.vectorize(ci)
y1=f(x1)
def g(x):
        return 0
h=np.vectorize(g)
y2=h(x2)

fig, ax = plt.subplots()

plt.ylim([-2,2])
plt.xlim([-0.5,20])

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

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

plt.savefig('ciplot.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
current21:28, 23 May 2016Thumbnail for version as of 21:28, 23 May 2016886 × 885 (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 x1=np.arange(0,20,0.01); x2=(-4.1,2,0.1); f=np.vectorize(ci) y1=f(x1) def...
  • You cannot overwrite this file.

The following page links to this file:

Metadata