import numpy as np import pandas as pd df = pd.DataFrame({"y" : np.random.rand(20)}) ax = df.iloc[:15,:].plot(ls="-", color="b") ax2 =