Skip to content
Advertisement

Tag: pandas-datareader

Shading between two lines with Matplotlib

I want to use axvspan() function to visualize a DataFrame that I obtained using Pandas DataReader.But when I use the the following codes, I saw an error and there is no shading in subplots. What should I do? Thank you. Answer Try looping over all Subplots and adding axvspan to the specific AxesSubplot instead: Some slight code reduction using the

Advertisement