- matplotlib - numpy
Hey, welcome. Thank you for looking at my phishing article.

As you are here, you can run python directly in your browser using PyScript.

You can run a cell and create a new one by pressing Shift and Enter or clicking the play button while hovering over the cell. Numpy and Matplotlib are available.
- matplotlib - numpy import matplotlib.pyplot as plt import numpy as np def wave(frequency, amplitude=1, phase=0): def _wave(time): return amplitude * np.sin(2 * np.pi * frequency * time + phase) return _wave import matplotlib.pyplot as plt import numpy as np def wave(frequency, amplitude=1, phase=0): def _wave(time): return amplitude * np.sin(2 * np.pi * frequency * time + phase) return _wave fig, ax = plt.subplots() plt.plot(wave(440)(np.linspace(0, 0.005, 1000))) fig