Thanks Jacob. In the meantime, what's the exact meaning of the discrete 
colormap:

--colormap "#0:#0000c0,.25:#404080,.5:#808080,.75:#804040,1:#c00000"

Does it take five intervals (bins?) of input values and interpolate the colors 
among them? Is it possible as a workaround to have the same pattern but as 
discrete interval colors (e.g. green, yellow, orange, red, purple), without 
interpolation?

Thanks a lot.

Fabio

--
“Our sweetest songs are those that tell of saddest thought“ (Shelley)
Il 24 feb 2023, 10:59 +0100, Jakob Erdmann <[email protected]> ha scritto:
> You can use option --colormap to pick among a large range of predfined maps: 
> https://matplotlib.org/stable/gallery/color/colormap_reference.html
> User-defined colormaps are not supported but pull-requests are welcome.
>
> > Am Fr., 24. Feb. 2023 um 09:57 Uhr schrieb Fabio Lamanna 
> > <[email protected]>:
> > > Hi all,
> > > is it possible to pass to plot_net_dump.py and other scripts a custom 
> > > colormap?
> > > This might be created within matplotlib with ListedColormap(), like:
> > >
> > > https://matplotlib.org/stable/tutorials/colors/colormap-manipulation.html#creating-listed-colormaps
> > >
> > > Thanks.
> > >
> > > --
> > > “Our sweetest songs are those that tell of saddest thought“ (Shelley)
> > > _______________________________________________
> > > sumo-user mailing list
> > > [email protected]
> > > To unsubscribe from this list, visit 
> > > https://www.eclipse.org/mailman/listinfo/sumo-user
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to