[ncl-talk] question about gsn_histogram

Mary Haley haley at ucar.edu
Thu Oct 26 09:49:19 MDT 2017


Xiaoyan,

You sent your email to ncl-talk at ucar.edu, but apparently you are not
subscribed and the message bounced.

You must subscribe to ncl-talk before you can send email to it.  For
details, please see:

http://www.ncl.ucar.edu/Support/email_lists.shtml

Meanwhile, to get your X axes to match, you can explicitly set the
intervals using gsnHistogramClassIntervals.

For an example, see:

http://www.ncl.ucar.edu/Applications/histo.shtml#ex5

If you have more questions, please subscribe to ncl-talk and send your
question to ncl-talk at ucar.edu.

Thank you,

--Mary


On Wed, Oct 25, 2017 at 1:08 PM, Xiaoyan Zhang - NOAA Affiliate <
xiaoyan.zhang at noaa.gov> wrote:

> Hello,
>
>    I am stuck in to set the same scale for two different histogram plot by
> gsn_histgram. Here is my setting in NCL script:
> res                                     = True                       ;
> plot mods desired
> res at gsnMaximize              = True
> res at tmXBMode                 = "Explicit"
> res at tmXBLabelStride        = 21
> res at tiXAxisString               = "OMB (K)"
> res at tiYAxisString               = " "
> res at gsnHistogramNumberOfBins        = 100
> res at tiMainString      = "VIIRS BT -  NAM T2M"             ; add title
> plot = gsn_histogram(wks,df_tsfc_t2m,res)
> res at tiMainString                = "VIIRS BT -  NAM TSFC"             ;
> add title
> plot = gsn_histogram(wks,df_virs_tsfc,res)
>
> My example plots are attached here. Obviously, these two plots have
> different x-axis which was automatically generated. So my question is if I
> can control to set the minimum and maximum x-axis for those two plots to do
> fair comparison? I tried many options, but did not get successful.
>
> I am looking forward your response. Thanks!
>
> Xiaoyan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171026/0689d541/attachment.html>


More information about the ncl-talk mailing list