how to use matplotlib with python code example Example: import pyplot python import matplotlib.pyplot as plt