Automatically setting tick positions
Setting the behavior of tick auto-placement.
By default, Matplotlib will choose the number of ticks and tick positions so that there is a reasonable number of ticks on the axis and they are located at "round" numbers.
As a result, there may be no ticks on the edges of the plot.
import matplotlib.pyplot as plt
import numpy as np
np.random.seed(19680801)


