0
a = [1,2,1.1,2,3,4,2,1,2,3,4]
b = [4,2,3,4,1,2,3,4,1,2,1,1.3]

fig, ax = plt.subplots(figsize=(12,8))
ax = sns.distplot(a, label = "a")
ax = sns.distplot(b, label = "b")
ax.legend()

This is done similar in R here: How can calculate and plot difference between two density plots with different length of data?

How to do this in Python?

Yogesh
  • 1
  • 2

0 Answers0