dunovank / jupyter-themes

Custom Jupyter Notebook Themes
MIT License
9.74k stars 1.06k forks source link

all jtplot styles do not visualize outliers in boxplots #414

Open velikod opened 3 years ago

velikod commented 3 years ago

Dear community,

I am trying to make a matplotlib boxplots and there are issues mostly with the visualization of outliers with all jtplot styles - they are not visible.

import pandas as pd
import numpy as np
from jupyterthemes import jtplot
jtplot.style('chesterish')

np.random.seed(1)
df = pd.DataFrame(np.random.randn(1000, 2),
                  columns=['Col1', 'Col2'])
df['X'] = pd.Series(['A', 'A', 'A', 'A', 'A',
                     'B', 'B', 'B', 'B', 'B'])
boxplot = df.boxplot(by='X')

изображение

After resetting the plot looks like this:

изображение

Notice the outliers on the right plot!