Closed GWeindel closed 2 years ago
hsmm.plot_LOOCV(loocv)
Yields
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-14-afb38d636416> in <module> 3 #plt.xlabel('Number of bumps'); 4 ----> 5 hsmm.plot_LOOCV(loocv_covert) D:\Documents\School\FYRP\eeg_analysis\pyhsmm_mvpa.py in plot_LOOCV(loocv_estimates, pval, figsize) 313 ax[0].text(x=n_bump-.5, y=np.mean(loocv_estimates.sel(n_bump=n_bump).data), s=str(np.sum(diff_bin[-1]))+'/'+str(len(diffs[-1]))+':'+str(np.around(pvals[-1][-1],2))) 314 ax[1].plot(diffs,'.-', alpha=.3) --> 315 ax[1].set_xticks(ticks=np.arange(0,loocv_estimates.n_bump.max()-1), labels=labels) 316 ax[1].hlines(0,0,len(np.arange(2,loocv_estimates.n_bump.max())),color='k') 317 ax[1].set_ylabel('Change in likelihood') D:\Anaconda\lib\site-packages\matplotlib\axes\_base.py in wrapper(self, *args, **kwargs) 61 62 def wrapper(self, *args, **kwargs): ---> 63 return get_method(self)(*args, **kwargs) 64 65 wrapper.__module__ = owner.__module__ D:\Anaconda\lib\site-packages\matplotlib\cbook\deprecation.py in wrapper(*args, **kwargs) 449 "parameter will become keyword-only %(removal)s.", 450 name=name, obj_type=f"parameter of {func.__name__}()") --> 451 return func(*args, **kwargs) 452 453 return wrapper TypeError: set_ticks() got an unexpected keyword argument 'labels'
Problem only with matplotlib < 3.5
Yields