[ncl-talk] trymax set to first y max values

Karin Meier-Fleischer meier-fleischer at dkrz.de
Fri Dec 17 05:17:59 MST 2021


Hi Jason,

you can use the *where* function to select the highest max value of y0 
or GCD0.

   trymin  =  0.
   trymax  =  where(max(y0) .gt. max(GCD0), max(y0), max(GCD0))
   trymin2 =  trymin
   trymax2 =  trymax


-Karin

Am 16.12.21 um 23:42 schrieb Herb, Jason via ncl-talk:
> Hello All,
>
> I have a gsn_csm_xy2 plotting script where trymin set to "0" for both 
> right and left axis, so that will start off the same. Given each file 
> has a different maximum for each data column, how do I get both the 
> right and left axises to match for the highest value of the two data 
> columns? script is attached
>
> Thanks,
> Jason
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20211217/c38c2170/attachment.html>


More information about the ncl-talk mailing list