I am using seaborn to create a boxplot. When I specify a column by which to group/color the boxes, the width of the boxes becomes so narrow that they are hard to see. The only change I am making is specifying an argument for hue, which points to a column in the dataframe passed. I have tried using the 'width' parameter (as mentioned here), which does increase the width of the boxplots, but also the distance at which they are spread apart.
Help: How can I maintain the width of the boxes while specifying a hue parameter?
I will show my code and results below:
My dataframe:
Out[3]:
timestamp room_number floor floor_room temperature
0 2016-01-19 09:00:00-05:00 11a06 11 11_11a06 23.0
1 2016-01-19 09:00:00-05:00 east-inner 11 11_east-inner 22.8
2 2016-01-19 09:00:00-05:00 east-window 11 11_east-window 22.9
Use of seaborn with odd boxplot widths, using a grouping factor:
sns.boxplot(x=xunit, y=var, data=df, order=order, hue='floor')
Use of seaborn that has reasonable boxplot widths, but no grouping factor:
sns.boxplot(x=xunit, y=var, data=df)