hist icon indicating copy to clipboard operation
hist copied to clipboard

[FEATURE] allow different plotting styles for `plot_ratio`

Open jonas-eschle opened this issue 2 years ago • 2 comments

Describe the problem, if any, that your feature request is related to

plot_ratio currently uses the default histplot from mplhep, see https://github.com/scikit-hep/hist/blob/41e1effc09fc345168094d5a2222dfce3d72d0a5/src/hist/plot.py#L654

Currently, there is no possibility to customize this plot, i.e. to change the plot style (errorbars, filled, etc), activate yerr etc.

Describe the feature you'd like

Being able to customize it would mean to be able to pass through arguments (and I think there is technically no reason not to allow this). I would suggest an argument histplotkwargs or something similar that is dict-like, passed in and expanded in histplot.

I can gladly make the PR if that's inline with the design.

Alternative

Of course, the refactoring as proposed here https://github.com/scikit-hep/hist/issues/192 would very well solve this problem too

jonas-eschle avatar Nov 08 '23 19:11 jonas-eschle

Hi,

Just checking: is there any chance of this issue getting addressed? Being able to style this kind of plot to match the style of others would be awesome.

AlbertoPdRF avatar May 22 '24 15:05 AlbertoPdRF