Hi


When using cdstoolbox.map.plot(...) to produce a Magics map, you can specify a colour palette, e.g. 'contour': 'eccharts_grey_red_20'


Is it possible to reverse this palette? For example, when using the palette "eccharts_green_blue_12" small values get a light (yellow) colour, while large values become dark (blue). Can I reverse this so that small values become dark and large values light? 


I'm hoping for a trick like in matplotlib, where you can add '_r' to get the reverse version of a colormap. 


Thanks!

Rutger

1 Comment

  1. Hi Rutger,

    I am not aware of an easy trick to invert a Magics palette but I will ask around.

    All the existing palettes available in Magics are documented here if that can help:

    Predefined palettes in Magics

    Regards.

    Vivien