Jul-13-2019, 11:17 PM

Hi Python users,

I'm a beginner and wondering if anyone can help with advice on how to plot multiple scatterplots using a loop

Thanks

I'm a beginner and wondering if anyone can help with advice on how to plot multiple scatterplots using a loop

import pandas as pd import matplotlib as plt import seaborn as sns, numpy as np import matplotlib.pyplot as plt data = pd.read_stata('theta_se_matrix.dta') sns.pairplot(data, kind="scatter", diag_kind="kde", vars=["theta1", "theta2", "theta3", "theta4", "theta5", "theta6"], hue="method") plt.show()I want to plot separate graphs for each category of "method'

Thanks