beast-dev / tracer

Posterior summarisation in Bayesian phylogenetics
https://beast.community/tracer
GNU Lesser General Public License v2.1
55 stars 17 forks source link

Continous density has negative axis #111

Closed rambaut closed 3 years ago

rambaut commented 7 years ago

For continuous parameters bounded at zero, still shows negative part of axis.

tmp

walterxie commented 3 years ago

The issue is caused by KDENumericalDensityPlot to create a negative value in x close to 0 for some plots. Now I add a code to check if x < lowerBoundary but raw values are all positive (this will ignore likelihoods), then xData.add(lowerBoundary);, otherwise it will use the previous code.