I’m building a streamlit app, and am trying to make use of Seaborn plots in the application. One of my issues is that when I try and render a scatter plot using
st.pyplot I get the following error message:
AttributeError: 'AxesSubplot' object has no attribute 'savefig'
Importantly, I do not get these messages with other types of seaborn charts such as
sns.catplot. I’m guessing because these charts access different parts of the matplotlib api in different ways. I know seaborn’s catplots are
FacetGrid chart objects, while it looks like the scatter plots have the type
I’ve noticed when I try and render the same scatter plot from a pandas dataframe I get the same error message.
Does anyone know how to get around this?