Skip to content

plotter: introduce a special Histogram for Log-y plots

Sebastien Binet requested to merge sbinet-gonum:issue-377 into master

Plotting a histogram with a Y-log scale needs to carefully take into account the low bar of a histogram bin. The bottom of a histogram bin is usually 0, a problematic value for a log-y scale.

This CL introduces plotter.LogHistogram, a light specialization of plotter.Histogram.

Fixes #377 (closed).

Please take a look.

Merge request reports