I have two numpy-lists (from the same pandas df) where x is the reference number (identical for both datasets) and y is the variable to compare . I now want to examine two data sets for their difference in the y variable. They should be displayed in different colors in the same diagram. The seaborn library was used to add a regression line.
sns.lmplot(x="common_ln_code",
y="dif_jac_erl_ev11",
data=ethnologue_common,
height=10)
sns.lmplot(x="common_ln_code",
y="dif_jac_erm_ev22",
data=ethnologue_common,
height=10)
plt.xlabel("language code")
plt.ylabel("Differenz Jaccardindex")
plt.title("Large vs. Medium_river")
plt.legend()
plt.show()
I tried this. but now I have two seperate plots. One for y="dif_jac_erl_ev11", and one for y="dif_jac_erm_ev22". I d like to have one figure to compare them