create a graph in matplotlib code example Example: import pyplot python import matplotlib.pyplot as plt