Here is how I plot the ecdf of my data
d1 = list(np.random.rand(10))
d2 = list(np.random.rand(10))
plt.figure()
sns.displot(d1, label='label1', color="b", kind='ecdf')
sns.displot(d2, label='label2', color="r", kind='ecdf')
plt.legend()
plt.show()
However, my intension was to plot this on 1 figure, for ease of comparison. Similar to the figure below: