Hi Vivian,
Unfortunately, there does not exist a way to automatically alter the
formatting of the label bar labels before the plot is created.
See example #7 here:
http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex7
The most straightforward thing to do is to explicitly set the label bar
labels yourself by using function codes to enable superscripting:
res1@lbLabelStrings = (/"1 x 10~S~-4~N~","2 x 10~S~-4~N~",.....
(Note that I'm assuming you've changed your function code from a : to a
~. If you haven't, and/or you do not have a .hluresfile in your home
directory, see here:
http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml )
I looked into using sprintf to automatically do this for you:
http://www.ncl.ucar.edu/Document/Functions/Built-in/sprintf.shtml
But it seems that it will not print things out exactly as you want them:
"1.0 x 10~S~-4"
Anyway, hope that helps. If not, please respond to ncl-talk..
Adam
On 02/27/2012 04:52 AM, Yi Huang wrote:
> Dear ncl help,
>
> Sorry to bother you by this email. It is regarding the plotting for
> CALIOP 532nm attenuated backscatter. Attachment 1 is the image on the
> CALIPSO website, attachment 2 is the plot I created myself. I have one
> question here, how can I make the label information into scientific
> notation (as shown by the official image)? I have tried something like
> res@cnInfoLabelFormat = "*+^g", but it made no change to my figure.
> What could be the right way to do that? (I've also provided my script
> as attachment 3)
>
> Thanks very much for your help!
>
> Cheers,
> Vivian
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ______________________________________________________________ Adam Phillips asphilli@ucar.edu NCAR/Climate and Global Dynamics Division (303) 497-1726 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 27 11:34:13 2012
This archive was generated by hypermail 2.1.8 : Mon Mar 05 2012 - 14:12:07 MST