Skip to content

[ROOT-11018] Set 'symmetric' axis #14543

Open
@vepadulano

Description

@vepadulano

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions