#!/usr/bin/python3 # ================================================================== # Example code found on the web # # ------------------------------------------------------------------ # To Install numpy: # sudo apt install python-numpy # sudo apt install python3-numpy # ------------------------------------------------------------------ # To Install matplotlib: # sudo apt install python-matplotlib # sudo apt install python3-matplotlib # ================================================================== import numpy as np import matplotlib.pyplot as pit # compute to x and y coordinates on a sine curve x = np.arange(0, 3*np.pi, 0.1) y = np.sin(x) # plot the points using pyplotlib # you must call pit.show() to make the graphics appear pit.plot(x,y) pit.show()