I am trying to plot 3 lines in matplotlib but whenever I add the xlim([]) the line disappears.
Without xlim:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
df.iloc[3:6,5:].T.plot()
with xlim:
df.iloc[3:6,5:].T.plot()
plt.xlim([410,1004])
I have made sure that the column I plot are astype float, so what could be the reason for this?