biosustain / shu

Multi-dimensional, trans-omics metabolic maps.
https://biosustain.github.io/shu
Apache License 2.0
44 stars 1 forks source link

fix: plot a spike when only one point per histogram/KDE #30

Closed carrascomj closed 1 year ago

carrascomj commented 1 year ago

Close #29

Problem

The plotting functions panic when supplying only one point to compute a histogram or a density. The intended behavior is to plot a spike at that x position.

Solution

Now a 2-width spike is plotted at the (given point, 1) point in the interval.

carrascomj commented 1 year ago

@NicholasCowie should the spikes be wider or thinner?