I have a dictionary which has clusters and each cluster contains different labels
Dictonary look like this
demo_dict = {0: [b'3.0',b'3.0', b'3.0', b'5.0',b'5.0',b'5.0', b'6.0', b'6.0'],
1: [b'2.0', b'2.0', b'3.0', b'7.0',b'7.0'],
2: [b'1.0', b'4.0', b'8.0', b'7.0',b'7.0']}
To draw a required plot, am using the following code
comp = demo_dict
df = pd.DataFrame.from_dict(comp, orient='index')
df.index.rename('Clusters', inplace=True)
stacked = df.stack().reset_index()
stacked.rename(columns={'level_1': 'Lable', 0: 'Labels'}, inplace=True)
sns.scatterplot(data=stacked, x='Clusters', y='Labels')
plt.show()
But the thing is, the above code is not drawing all the points, it just mentioned which clusters contains which labels,but i want to have all the points of every cluster on visual.
Is, there something am missing in this code to generate all the points Note: I have also tried with stripplot and swarmplot





