I have the following code where I plot different dataframes:
plt.scatter(df1['phys_red'],df1['lost_frac_damage'], s = 10, c='DarkBlue')
plt.scatter(df2.phys_red,df2.lost_frac_damage, s = 10, c='Red')
plt.scatter(df3.phys_red,df3.lost_frac_damage, s = 10, c='Green')
plt.scatter(df4.phys_red,df4.lost_frac_damage, s = 10, c='Black')
plt.scatter(df5.phys_red,df5.lost_frac_damage, s = 10, c='LightBlue')
this continues for another 10 dataframes. So in essence, one for loop, which can loop through the different df's would do the trick and reduce the code to one line, as the colors c can be looped through too by:
colors = ['DarkBlue','Red','Green','Black','LightBlue']
and using colors[i]. I was thinking of something like
for i in range(1,6,1):
df+str(i) = ...
but I could not yet find out how to exactly do it. Is there a way to do this? Thanks.
