Re: Histogram % Scale

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 20 2012 - 10:47:59 MDT

Hi Jonathan,
Ah, you want to alter the X-axis. The best way to do that is to set
gsnHistogramClassIntervals exactly the same for each of your panel
plots. See example 5 here where that resource is used:
http://www.ncl.ucar.edu/Applications/histo.shtml#ex5
Adam

On 04/19/2012 05:11 PM, jbuzan wrote:
> Thanks for the reply.
> When I try trYMaxF, it changes the 'frequency'. However, I want to change percentage, because not all of the frequency numbers are the same between comparisons. Is there a way to change the percentage?
>
> -Jonathan
>
>
> On Apr 19, 2012, at 4:20 PM, Adam Phillips wrote:
>
>> Hi Jonathan,
>> So you want to limit the range of the Y-axis? If so, simply set trYMaxF
>> = 14.
>> http://www.ncl.ucar.edu/Document/Graphics/Resources/tr.shtml#trYMaxF
>> http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex1
>>
>> If that is not what you are after please let ncl-talk know..
>> Adam
>>
>> On 04/19/2012 01:51 PM, jbuzan wrote:
>>> Hello NCL Users,
>>> I may have missed the reply. Did someone look at this issue?
>>>
>>> -Jonathan
>>>
>>>
>>> On Apr 18, 2012, at 3:13 PM, jbuzan wrote:
>>>
>>>> Hello NCL users,
>>>>
>>>> I am attempting to make histograms of my data, and I want to make the percent scale the same for all plots for easy comparisons.
>>>>
>>>> My data fields cap at ~14% percent, so I want to set the bar lengths from 0-14% for all the plots.
>>>>
>>>> Does anyone know what resource I would use to do this?
>>>>
>>>> Thanks,
>>>> -Jonathan
>>>>
>>>> These are my current resource settings:
>>>>
>>>> res = True
>>>> ; res@gsnHistogramSelectNiceIntervals = False ; intervals now float
>>>> res@gsnHistogramComputePercentages = True ; change left axis to %
>>>> res@gsnHistogramClassIntervals = (/2,6,10,14,18,22,26,30,34,38,42,46,50/)
>>>> res@gsnHistogramComputePercentagesNoMissing = True
>>>> res@gsnHistogramPercentSign = True
>>>> res@tmXBLabelAngleF = 315. ; change label angle
>>>>
>>>>
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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 Fri Apr 20 10:48:11 2012

This archive was generated by hypermail 2.1.8 : Fri Apr 20 2012 - 16:21:18 MDT