File:Floorglyph.png

From specialfunctionswiki
Jump to: navigation, search
Floorglyph.png(186 × 192 pixels, file size: 2 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'] = 2.4,2.4

x=np.arange(-4,4,0.01)
f=np.vectorize(floor)
y=f(x)

fig, ax = plt.subplots()
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.ylim(-3.15,3.1)
plt.xlim(-3.1,3.1)

plt.savefig('floorglyph.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/TimeThumbnailDimensionsUserComment
current08:21, 16 June 2016Thumbnail for version as of 08:21, 16 June 2016186 × 192 (2 KB)Tom (talk | contribs)Category:floorglyph <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(-4,4,0.01) f=np.vectorize(floor) y=f(x) fig, ax = plt.s...
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata