Difference between revisions of "File:Scorergiplot.png"

From specialfunctionswiki
Jump to: navigation, search
(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(-20,30,0.01); f=np.vectorize(scorergi) y=f(x) def g(x):...)
 
 
Line 16: Line 16:
  
 
fig, ax = plt.subplots()
 
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')
 
  
 
plt.xlabel(r'$x$')
 
plt.xlabel(r'$x$')

Latest revision as of 22:58, 9 June 2016

#!/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(-20,30,0.01);
f=np.vectorize(scorergi)
y=f(x)
def g(x):
        return 0
h=np.vectorize(g)
y2=h(x)

fig, ax = plt.subplots()

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

plt.plot(x,y,linewidth=2,color='Black')
plt.plot(x,y2,'--',linewidth=2,color='Black')

plt.savefig('scorergiplot.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
current22:56, 9 June 2016Thumbnail for version as of 22:56, 9 June 2016886 × 885 (48 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(-20,30,0.01); f=np.vectorize(scorergi) y=f(x) def g(x):...
  • You cannot overwrite this file.

The following page links to this file:

Metadata