Re: 3rd Y Axis over 2nd

From: Paula Doubrawa Moreira <pmoreira_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 07 2011 - 19:14:39 MDT

Thanks, David!! How silly of me.
I had completely disregarded gsnMaximize when I was using tiYAxisOffsetXF
because they don't work together. It works dandy now!!!

On Wed, Sep 7, 2011 at 2:34 PM, David Brown <dbrown@ucar.edu> wrote:

> Perhaps try setting gsnMaximize to True.
> -dave
>
> On Sep 7, 2011, at 3:22 PM, Paula Doubrawa Moreira wrote:
>
> Thanks, Mary!
>
> However, even in your dummy script, if I change vpWidthF to 0.7 it goes off
> the paper. How can I fix that?
>
> Thanks again,
> Paula
>
> On Wed, Sep 7, 2011 at 12:39 PM, Mary Haley <haley@ucar.edu> wrote:
>
>> Thanks for the script. I was able to create some dummy data and generate a
>> similar plot with the small labels on the righmost Y axis.
>>
>> The issue, which is a bug in gsn_csm_xy3, is that it wasn't taking into
>> account that you might resize the plot, and it wasn't correctly setting the
>> font sizes for these labels.
>>
>> I believe the fix is to simply add:
>>
>> res3@tmEqualizeXYSizes = True
>>
>> Which will tell NCL to fix the font sizes.
>>
>> I don't think you need to set the tmXXLabelFontHeightF resources, unless
>> you really want these fonts to be larger.
>>
>> Also, I don't think you should have to set vpXF, as internally, this plot
>> should get resized to fit on the page.
>>
>> Finally, if you want to get rid of those trailing 0's in the middle Y
>> axis, set:
>>
>> res2@tmYRFormat = "f"
>>
>>
>> I've attached the dummy script I created so you can compare.
>>
>> --Mary
>>
>>
>> On Sep 7, 2011, at 1:37 PM, Paula Doubrawa Moreira wrote:
>>
>> Thanks, Mary!
>>
>> The *amOrthogonalPosF* resource did work for that. The axis labels font
>> size is however, was still different from the other ones so I just used *
>> tmYRLabelFontHeightF*.
>>
>> Now if I want to make the plot wider (vpWidthF = 0.7 and vpHeightF = 0.4)
>> then it just goes off the page and the third axis disappears completely.
>> I've tried setting wkOrientation, as well as wkPaperHeightF and
>> wkPaperWidthF but can't fix that. What am I missing there?
>>
>> The script is attached. The plots illustrate different vpWidthF values.
>> I'm not sending the files, because I open 120 files to generate that plot!
>>
>> Paula
>>
>>
>> On Wed, Sep 7, 2011 at 11:16 AM, Mary Haley <haley@ucar.edu> wrote:
>>
>>> Hi Paula,
>>>
>>> For future reference, if you are having problems with a particular
>>> routine (in this case, gsn_csm_xy3), then one thing you might try is to go
>>> to:
>>>
>>> http://www.ncl.ucar.edu/Applications/
>>>
>>> and click on the "functions/procedures" link near the very top.
>>>
>>> This will give you a list of all the functions and procedures that are
>>> called by a particular example.
>>>
>>> You can search for "gsn_csm_xy3" on that page, and you'll see that
>>> examples xy_19.ncl and xy_27.ncl use this function. Click on the part in
>>> parentheses ("XY plots") and you can then look at the description for these
>>> examples.
>>>
>>> Long story short: example xy_19.ncl talks about the same issue that I
>>> think you're having, and recommends using the "amOrthogonalPosF" resource to
>>> scoot that rightmost axis over.
>>>
>>> However, the gsn_csm_xy3 routine should have been able to figure this
>>> out. If you can provide your full script and data, I can take look.
>>>
>>> As for the second issue, I'm not sure. It would help to see your script.
>>> It looks like a case of the "plot manager" trying to make the font smaller
>>> because it thinks they are too large for some reason. I'm hoping that if
>>> you are able to move that axis over, then the fonts will readjust
>>> themselves.
>>>
>>> --Mary
>>>
>>>
>>> On Sep 7, 2011, at 1:01 PM, Paula Doubrawa Moreira wrote:
>>>
>>> Hi, all-
>>>
>>> can anyone help me fix this plot? I've looked all over the place for a
>>> resource that would offset the third Y axis, I don't know why it's being
>>> drawn over the second one.
>>> As you can see, I have used tiYAxisOffsetXF to offset the title
>>> (v-component of wind) but the axis itself is on top of the title of the
>>> second axis (Temperature).
>>>
>>> The only resources I'm setting for both the second and third axes are
>>> trYMaxF, trYMinF, xyDashPatterns and xyLineColor. Why are they so different?
>>>
>>> I'm using *gsn_csm_xy3. *
>>> *
>>> *
>>> Thank you!!!
>>> *
>>> *
>>> *
>>> *
>>> --
>>> *Paula Doubrawa Moreira**
>>> *Graduate Student - Research Assistant
>>> International Arctic Research Center
>>> University of Alaska Fairbanks
>>> <lines_PRMSL_GDS5_MSL_10_TMP_GDS5_HTGL_10_V_GRD_GDS5_HTGL_10.tiff>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>>
>>
>>
>> --
>> *Paula Doubrawa Moreira**
>> *Graduate Student - Research Assistant
>> International Arctic Research Center
>> University of Alaska Fairbanks
>> <lines_3vars_prob.ncl><vpWidth_0.5.tiff><vpWidth_0.7.tiff>
>>
>>
>>
>>
>
>
> --
> *Paula Doubrawa Moreira**
> *Graduate Student - Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>

-- 
*Paula Doubrawa Moreira**
*Graduate Student - Research Assistant
International Arctic Research Center
University of Alaska Fairbanks

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 7 19:14:54 2011

This archive was generated by hypermail 2.1.8 : Mon Sep 12 2011 - 13:37:01 MDT