matplotlib - Seaborn box plot broken after update to 0.6.0 -
i have updated seaborn 0.5.1 new 0.6.0 version. had been using seaborn make box plots , violinplots in python notebookand can't seem make code work anymore. matplotlib plt.boxplot
still works data. particularly, problem seems happen when have group of lists or arrays in subsets different in size.
e.g.:
import numpy np import matplotlib.pyplot plt import seaborn sns x = np.array([1,3,4]), ([1,2]) plt.boxplot(x) #this works import numpy np import matplotlib.pyplot plt import seaborn sns x = np.array([1,3,4]), ([1,2]) sns.boxplot(x) #doesn't work
this error when try seaborn box plot
valueerror: list of boxplot statistics , `positions` values must have same length
in new seaborn tutorial, says sns.boxplot
should take plt.boxplot
does. has had same problem update? there way of making work? if not, there way of installing both 0.6.0 version , 0.5.1 version , calling specific version in notebooks?
as discussed in release notes there have been changes api categorical plots.
in case, need explicitly pass list (tuple, technically) of arrays data
parameter:
sns.boxplot(data=x)
Comments
Post a Comment