[ncl-talk] get color names/values

Guido Cioni guidocioni at gmail.com
Wed Jan 6 06:06:06 MST 2016


Did you try simply by copying the oldest rresources over the new ones? Like
tres2=tres and then replacing the other resources the you don't want to be
the same. In this way the contour resources should be copied to the second
plot.

Cheers
Il 06 gen 2016 1:53 PM, "Ioana Colfescu" <ioana.colfescu at ed.ac.uk> ha
scritto:

> Hi,
>
> I'd like to use exactly the same colors as in a first plot in a second one.
>
> I set the colors for plot 1 manually :
>
>    tres at cnFillPalette         = "BlWhRe"
>    tres at cnLevelSelectionMode  = "ManualLevels"
>    tres at cnMinLevelValF       = -0.03
>    tres at cnMaxLevelValF       =  0.03
>    tres at cnLevelSpacingF      =  0.005
>
> Does anyone know how can I get the exact colors ( name/index) used so
> that I can pass them on to the second one ? getvalue doesn't work and I
> get an error that says the cn levels are not defined.
>
> Thanks,
> Ioana
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160106/eb2d3dac/attachment.html 


More information about the ncl-talk mailing list