Skip to content

logscale interface for HistogramBase, logscale support for Histo1d

What

This MR adds setLogScale and getLogScale methods to libYarr/HistogramBase. At the moment, it keeps track of whether or not the user has specified that the x, y, or z axes should be log (Base 10) scale or not.

The MR currently only applies x and y log scale shifting to the Histo1d class. It shifts the y axis minimum bound from 0 to * if log scale is activated. For the x axis, it only applies log scale if both xlow and xhigh are positive. If xlow is exactly 0 it shifts it to 1e-1.

I did not implement the log scale plotting for the Histo2d and Histo3d plotting because I don't think we have any use cases for this. But for plotting 1D distributions over the whole pixel matrix, it is sometimes useful in order to see tails of distributions that may not otherwise be visible unless plotting logaritmically.

Merge request reports