So I have a huge amount of data on a dataframe and I want to visualize it. This is the code I use to create the plot, extracted from here
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(6, 6))
colors = {'Sunny':'tab:blue', 'Hurricane':'tab:orange', 'Cloudy':'tab:green', 'Rain':'tab:red', 'Foggy':'tab:purple', 'Storm':'tab:brown'}
grouped = df.groupby('Climate')
for key, group in grouped:
group.plot(ax=ax, kind='scatter', x='month', y='eta/km*100', label=key, color=colors[key])
plt.xticks(range(1, 13))
plt.show()
The issue is that it looks like this:
As you can see, cloudy, foggy and rain cant be seen because there is some data in front of them. I could try to force them to show in front but then other climate wont be seen.
What's the best solution to this? I dont know if it's possible to move each type of weather some pixels on the X axys to be able to see all of the data but still have them on the same month or something like that, thanks!