root icon indicating copy to clipboard operation
root copied to clipboard

[ROOT-11018] Set 'symmetric' axis

Open vepadulano opened this issue 1 year ago • 2 comments

Feature description

From https://its.cern.ch/jira/browse/ROOT-11018

It's currently possible to set symmetric axis by calling SetRangeUser with appropriate bounds. It would be nice to be able to require the axis to be always drawn symmetrically so it gets calculated automatically (so whatever data is drawn/added the automatic axis is symmetric). I think most of the time it would be around 0 (for example when doing a residual plot), but that could be a configurable number. This could be a canvas (like the Log axis) or an axis (like SetRangeUser) property, not sure what would be easier. PS: One of the use cases where I do this often is when I have a COLZ TH2D plot with a palette like kTemperatureMap and want to make sure the 0 is at the "white" region.

symmetric_v2.patch symmetric.patch

Alternatives considered

No response

Additional context

No response

vepadulano avatar Feb 04 '24 17:02 vepadulano

I sent an email to the author of this patch.

couet avatar Feb 14 '24 15:02 couet

This seems an easy one to follow up, am I missing something?

dpiparo avatar Apr 27 '24 06:04 dpiparo