File:Exponentialplot.png
From specialfunctionswiki
Size of this preview: 586 × 600 pixels. Other resolutions: 234 × 240 pixels | 852 × 872 pixels.
Original file (852 × 872 pixels, file size: 25 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(-3,3,0.001); f=np.vectorize(exp) y=f(x) fig, ax = plt.subplots() ylabels = [item.get_text() for item in ax.get_yticklabels()] ylabels=[0,'$e$',5,10,15,20,25] ax.set_yticks([0,2.718281828,5,10,15,20,25]) ax.set_yticklabels(ylabels,horizontalalignment='right') plt.xlabel('$x$') plt.ylabel('$\exp(x) \equiv e^x$') plt.plot(x,y,linewidth=2,color='Black') plt.savefig('exponentialplot.png',bbox_inches='tight',pad_inches=0.1)
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 05:26, 8 February 2016 | 852 × 872 (25 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(-3,3,0.001); f=np.vectorize(exp) y=f(x) fig, ax = plt.subplots... |
- You cannot overwrite this file.
File usage
The following page links to this file: