I am trying to make 2D plots with a custom Z-axis. I would like to be able to define custom ranges. I've found a nice example to get started on https://root.cern.ch/doc/master/classTPaletteAxis.html.
However I do not obtain the same result as what's on the documentation by running the example. Instead I get a linear scale on the palette on the right (see attached plot). Do you know if something should be adapted for this to work? For example through the gStyle pointer?