Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Seaborn boxplots shifted incorrectly along x-axis

# set dodge = False to shift correctly

import matplotlib.pyplot as plt
import seaborn as sns

tips = sns.load_dataset("tips")
ax = sns.boxplot(x="day", y="total_bill", hue="time",
                  dodge=False, data=tips, linewidth=2.5)

plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Seaborn #boxplots #shifted #incorrectly
ADD COMMENT
Topic
Name
3+9 =