Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 246
Image: ubuntu2004
Kernel: Python 3 (system-wide)
import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 4*np.pi, 200) y = np.sin(x) plt.plot(x, y) plt.xlabel('$x$', fontsize=18) plt.ylabel('$y$', fontsize=18) plt.title(r'Plot of $y = \sin(x)$') plt.savefig('Sineplot.jpg', dpi=300) plt.figure(figsize=(5, 4)) plt.tight_layout()
Image in a Jupyter notebook
<Figure size 360x288 with 0 Axes>