Skip to content

Tag: seaborn

How to set amount of hue levels in seaborn?

With the following code, I can use seaborn’s scatterplot to plot data with certain colors assigned to data values. How can I set the amount of colors that get used in this example? (e.g. if I want to have only two colors used or more than the 6 shown in the example) Answer Seaborn’s scatterplot ha…

Multiple boxplots based on conditions

I have a dataframe with two columns. The power column represents the power consumption of the system. And the component_status column divide the data in two, based when the component is OFF or ON. When the values are 153 is when the component is ON and when the values are 150 the component is OFF. The result …