[ncl-talk] axis labeling problem

Mary Haley haley at ucar.edu
Thu Nov 12 10:17:53 MST 2015


When you set XBValues, these have to match the actual values on your X
axis.

Your X axis values are log(spec17 at frq), but you are specifying spec17 at frq
as X axis values.

Try:

res at tmXBValues = log(spec17 at frq)

--Mary


On Thu, Nov 12, 2015 at 9:43 AM, Ioana Colfescu <ioana.colfescu at ed.ac.uk>
wrote:

> Hi,
> I'm trying to make a plot and put on the x axis my own labels ( which are
> different from the original ones).
> For some reason I don't get any labeling and if I get the labeling I don't
> get the plot ( the original values are negative while I want to put
> positive values on the axis).
> This is my code with some random values I try to give but doesn't work
> with this either. Could someone tell me what I do wrong ? ( the plot I get
> is attached and I'd need the values I want on the x axis).
>
>  res = True
>   res at txFontHeightF  = 0.04
>   res at gsnDraw            = False
>   res at gsnFrame           = False
>   res at tmXBOn       = True
>   res at tmXBLabelsOn = True
>   res at tmXBMode   = "Explicit"
>   res at tmXBValues = spec17 at frq
>   res at tmXBLabels = fspan(0,0.5,0.1)
>   bot_plot(0)  = gsn_csm_xy(wks,log(spec17 at frq),splt17,res)
>
>
> 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/20151112/959d2fec/attachment.html 


More information about the ncl-talk mailing list