3

I have one plot in the format:

df.plot()

The other one is in the format:

fig,ax=plt.subplots()
ax.plot_date(t,y,'b-')

I cannot convert the first plot into the standard matplotlib plot because it is resampled from a pandas timeseries.

How do I overlay the two plots?

1 Answer 1

4

Try df.plot(ax=ax). This causes the dataframe object to be plotted in the supplied axis.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.