<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Ioana,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I know Guido already answered your question, but I wanted to address the issue of the getvalues error.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I didn't see your full code, but if you were calling something like "gsn_csm_contour_map", then in order to retrieve the contour levels, you need to do this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">plot = gsn_csm_contour_map(....)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">;---Retrieve contour levels and colors</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">getvalues plot@contour</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> "cnLevels" : levels</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> "cnFillColors" : colors</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">end getvalues</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is because "gsn_csm_contour_map" actually returns a map object, with the contour object attached as an attribute called "contour".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 6, 2016 at 5:53 AM, Ioana Colfescu <span dir="ltr"><<a href="mailto:ioana.colfescu@ed.ac.uk" target="_blank">ioana.colfescu@ed.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'd like to use exactly the same colors as in a first plot in a second one.<br>
<br>
I set the colors for plot 1 manually :<br>
<br>
tres@cnFillPalette = "BlWhRe"<br>
tres@cnLevelSelectionMode = "ManualLevels"<br>
tres@cnMinLevelValF = -0.03<br>
tres@cnMaxLevelValF = 0.03<br>
tres@cnLevelSpacingF = 0.005<br>
<br>
Does anyone know how can I get the exact colors ( name/index) used so<br>
that I can pass them on to the second one ? getvalue doesn't work and I<br>
get an error that says the cn levels are not defined.<br>
<br>
Thanks,<br>
Ioana<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</font></span></blockquote></div><br></div>