KDE smoothing of RMSD/TFD
vtlim opened this issue · 3 comments
vtlim commented
These metrics have a minimum of zero, but with smoothing, the curves go below zero. Other than plotting histograms, a potential solution is to (1) mirror data to negative side, (2) apply KDE, (3) take the distribution for x>=0 only.
vtlim commented
vtlim commented
vtlim commented
messing with xlim is not helping either. the kde/facetgrid extends beyond the given limits.
'''
pos_only : Boolean
affects how output after KDE is displayed, only show x-axis >= 0
'''
if pos_only:
g.set_axis_labels(x_label, "").set(xlim=(0.05, df[x_label].max()))
for ax in g.axes.flat:
#ax.margins(0.05,0.15)
ax.set_xlim(0.05,)