You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dataset with the weight and fuel type of cars. I would like to (so the total area of 2004 is the same as 2005, as 2006, etc.).
This way, you should be able to observe both the increase in weight (shift upwards over the years) and the move to electric cars (shift from blue to orange). I got quite far with:
However, my dataset is a bit biased, since not all data is available for cars in older years. So I would like to normalize the area of each violin plot, so that the total area of each plot is the same.
I can't seem to get that to work. I tried most combinations, already, the closest two are here:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a dataset with the weight and fuel type of cars. I would like to (so the total area of 2004 is the same as 2005, as 2006, etc.).
This way, you should be able to observe both the increase in weight (shift upwards over the years) and the move to electric cars (shift from blue to orange). I got quite far with:
However, my dataset is a bit biased, since not all data is available for cars in older years. So I would like to normalize the area of each violin plot, so that the total area of each plot is the same.
I can't seem to get that to work. I tried most combinations, already, the closest two are here:
density_norm="count", common_norm=True
:density_norm="count", common_norm=False
:density_norm="area", common_norm=True
:density_norm="area", common_norm=False
:Beta Was this translation helpful? Give feedback.
All reactions