Plot Function Demo

This demonstrates the built-in plot() function.

Generate Data

import numpy as np
x = np.linspace(0, 4*np.pi, 200)
y = np.sin(x)
print(f'Generated {len(x)} points')

Plot It

plot(x, y, title='Sine Wave', x_label='angle', y_label='sin(x)')