Re: Vertical Y-Axis Manual Plotting

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed May 08 2013 - 12:46:09 MDT

Hi Brian,
I think you're almost there. See example #4 here:
http://www.ncl.ucar.edu/Applications/barb.shtml#ex4

The trick to extending the Y-axis range way beyond your data's vertical
range is to overlay your existing plot on a loglin plot. Following the
example's code, your coding could look something like this:

windlayer = gsn_csm_vector_scalar(wks,ukt_ht_time,vkt_ht_time,wnd_ht_time,res2D)

getvalues windlayer ; get the X/Y axis min/max for use in the loglin plot
"trXMinF" : trxmin
"trXMaxF" : trxmax
"trYMinF" : trymin
"trYMaxF" : trymax
end getvalues

loglin = create "logling" logLinPlotClass wks ; draw a loglin plot, with expanded X/Y axis
"trXMinF" : trxmin-1
"trXMaxF" : trxmax+1
"trYMinF" : trymin
"trYMaxF" : 3.0
; the next 4 resource settings may not be needed
"vpXF" : .15 ; set the X-axis NDC starting point
"vpYF" : .8 ; set the Y-axis NDC starting point
"vpWidthF" : .7 ; set the width of the plot in NDC units
"vpHeightF" : .45 ; set the height of the plot in NDC units
end create
overlay(loglin,windlayer) ; overlay plot with the loglin plot
draw(loglin) ; draw the plot
frame(wks) ; advance the frame

If the above doesn't help or if you have further questions please let
ncl-talk know..

On 05/08/2013 11:48 AM, brianjs @iastate.edu wrote:
> Good Afternoon,
>
> I have plotted my Lamont data with some success, however, I am
> attempting to implement a rigid boundary setup for my top y-axis value
> as 3.0 km.
>
> I have had some success at manually and explicitly labeling the axis,
> but I need to get the Y-axis to start from 0-3.0 km with the tick mark
> string labeling at 0.5 km intervals (with tick marks every .10 km).
>
> Given that the wind profile data does not fit at exact levels (i.e.
> 2.42 km is the location of a point for winds in a dataset for the
> top/y-axis), it is difficult to use the current manual or explicit
> settings in the vcLevelSelectionMode resource and all of the resources
> that go with this one. Would anyone happen to know another resource
> that could be used? I tried a transformation trYMaxF, but this was not
> successful either. Any help would be greatly appreciated.
>
> The first attachment is the code, with the second attachment being one
> of my best outputs, and the 3rd attachment showing what I need the
> Y-axis to look like in all of my profiler plots.
>
> Again, I apologize for all the questions. I am rather new at NCL and I
> am trying to learn the language and utilize the resources as quickly
> as I can.
>
> Brian Squitieri
> Iowa State University
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

```--
______________________________________________________________