Difference between revisions of "File:Sineglyph.png"
From specialfunctionswiki
(<pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 2.4,2.4 x=np.arange(0,2*pi,0.00001) f=np.vectorize(sin) y=f(x) fig, ax = plt.subplots() plt.ylim([...) |
|||
Line 1: | Line 1: | ||
+ | [[Category:Sineglyph]] | ||
<pre> | <pre> | ||
#!/usr/bin/python | #!/usr/bin/python |
Revision as of 20:06, 7 February 2016
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 2.4,2.4 x=np.arange(0,2*pi,0.00001) f=np.vectorize(sin) y=f(x) fig, ax = plt.subplots() plt.ylim([-1.1,1.1]) #ax.spines['left'].set_position('center') ax.spines['right'].set_color('none') ax.spines['bottom'].set_position('center') ax.spines['top'].set_color('none') ax.spines['left'].set_smart_bounds(True) ax.spines['bottom'].set_smart_bounds(True) ax.xaxis.set_ticks_position('none') plt.tick_params(axis='x', which='both', bottom='off', top='off', labelbottom='off') plt.tick_params(axis='y', which='both', left='off', right='off', labelleft='off') plt.plot(x,y,linewidth=5,color='Black') plt.savefig('sineglyph.png',bbox_inches='tight',pad_inches=0.0)
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:55, 29 January 2016 | 186 × 192 (6 KB) | Tom (talk | contribs) | <pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 2.4,2.4 x=np.arange(0,2*pi,0.00001) f=np.vectorize(sin) y=f(x) fig, ax = plt.subplots() plt.ylim([... |
- You cannot overwrite this file.
File usage
The following 2 pages link to this file: