I'm simply asking how I would go about changing my x axis. I've been having trouble finding an answer online that worked with my current setup.
This is my plotting code:
import scipy.io as spio
import numpy as np
import csv
import pandas as pd
import matplotlib as plt
onfile='file'
s=spio.readsav(onfile,python_dict=True,verbose=True)
a=np.asarray(s['a'])
b=np.asarray(s['b'])
c=np.asarray(s['c'])
d=np.asarray(s['d'])
df = pd.DataFrame({'a':a,'b':b,'c':c,'d':d})
df.plot(x='a',y=['b','c','d'],kind='line')
I'm trying to plot within the "x" axis of 50-60
ax=df.plot...thenax.set_xlim(50,60).