r/IPython • u/largelcd • Feb 13 '20
Question about the plot function
Hi, supposing that we have:
fig = plt.figure()
ax = fig.add_figures(1,1,1)
and data is a pandas.core.series.Series. Could you please tell me what is the meaning of ax=ax in data.plot(ax=ax, style= 'k-') ?
2
Upvotes
View all comments
Show parent comment
3
u/[deleted] Feb 14 '20
It's a
matplotlibaxis object. You can ask at r/matplotlib for more details how it interacts withpandas. Excerpt is frompandasdocumentation.