In this example, we take a sine curve plot and add more features to it; namely the title, axis labels, title, axis ticks, grid and legend.
# Plotting tutorials in Python
# Enhancing a plot
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2.0*np.pi, 101)
y = np.sin(x)
...