Demo entry 6783092

234

   

Submitted by anonymous on Jan 28, 2019 at 15:21
Language: Python 3. Code size: 244 Bytes.

import numpy as np
from matplotlib import pyplot as plt
#import matplotlib.pyplot as plt
x = np.linspace(-np.pi,np.pi,256)
c,s = np.sin(x),np.cos(x)
plt.subplot(2,1,1)
plt.plot(x,c,'-k')
plt.subplot(2,1,2)
plt.plot(x,s,'-b')
plt.show()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).