![]() This isn't utterly important though, and I'm just trying to learn using python, and the actual work has been done in excel. ucl'upper','center','lower'lcr'left','center','right'fig,axplt.subplots(figsize(6,4),layout'constrained',facecolor'0.7')ax.plot(1,2,1,2,label'TEST') Place a legend to the right of this smaller subplot. ![]() I have come across a few other posts related to this issue, but not seen one that specifically addresses the renaming of individual labels. This is the error I get when using the above code.ĪttributeError: 'Series' object has no attribute 'set_ylabel' I have tried to rename the x-axis labels using the code below. Pd.set_option('display.mpl_style', 'default')įixed_data = pd.read_csv('audit-rep.csv',sep=',',encoding='latin1',index_col='Index', parse_dates=,dayfirst=False) This is the code I have used, and except for the label names, I am happy with the result. Instead of having these verbose reasons though, I would like to rename the X-Axis labels to just numbers or alphabets so that the graph reads somewhat like this:
0 Comments
Leave a Reply. |