File:Signumglyph.png

From specialfunctionswiki
Jump to: navigation, search
Signumglyph.png(192 × 191 pixels, file size: 1 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

x1=np.arange(-4,-0.05,0.01);
x2=np.arange(0.05,4,0.01);

def g1(x):
        return 1
def g2(x):
        return -1
f1=np.vectorize(g1)
f2=np.vectorize(g2)

y1=f1(x1)
y2=f2(x2)

fig, ax = plt.subplots()
#plt.ylim([-1.1,1.1])
#plt.xlim([-1.05,1.05])
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(x1,y1,linewidth=5,color='Black')
plt.scatter([0],[0])
plt.plot(x2,y2,linewidth=5,color='Black')

plt.savefig('signumglyph.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
current20:00, 14 December 2017Thumbnail for version as of 20:00, 14 December 2017192 × 191 (1 KB)Tom (talk | contribs)Category:signumglyph <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 x1=np.arange(-4,-0.05,0.01); x2=np.arange(0.05,4,0.01); def g1(x)...
19:59, 14 December 2017Thumbnail for version as of 19:59, 14 December 2017192 × 191 (1 KB)Tom (talk | contribs)Category:signumglyph <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 x1=np.arange(-4,-0.05,0.01); x2=np.arange(0.05,4,0.01); def g1(x)...
08:06, 16 June 2016Thumbnail for version as of 08:06, 16 June 2016186 × 192 (1 KB)Tom (talk | contribs)Category:signumglyph <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 x1=np.arange(-4,-0.05,0.01); x2=np.arange(0.05,4,0.01); def g1(x):...
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata