Re: adding polymarkers to hdf4sds_5.ncl?

From: <lsmith_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 15 2014 - 16:53:30 MST

Jatin Kala and Adam Phillips ROCK!!!!!
They both suggested gsn_add_polymarker and this worked!!!! W00t!!
I guess the moral of the story is: gsn_add_polymarker is better than
gsn_polymarker. (I'm going to write myself a note and hang it above my
computer)
THanks a lot!
-Lesley

Quoting Adam Phillips <asphilli@ucar.edu>:

> Correct, plot2 is overlaid on plot, then plot3 is overlaid on plot.
> But I just noticed something: You're using gsn_polymarker, and I
> think whenever you do paneling and/or overlaying you'll want to use
> gsn_add_polymarker to make sure the polymarkers get attached to the
> correct plot.
>
> (As gsn_add_polymarker is more versatile than gsn_polymarker I
> always use the former no matter the situation.)
>
> Try using gsn_add_polymaker and attach the polymarkers to plot,
> leave the tfPolyDrawOrder resource in there, and see if that works.
> Adam
>
> On 01/15/2014 04:28 PM, lsmith@ucar.edu wrote:
>> Hi Adam,
>> Thanks for suggestion.
>> I tried it and as far as I can tell, it had no effect.
>> I think this is because the polymarker statement is:
>> gsn_polymarker(wks,plot,lon_new,lat_new,gsres)
>> so it has to put the polymarkers on "plot," right?
>> And the overlays mean "plot" is overlaid, right?
>> Cheers,
>> -Lesley
>>
>>
>> Quoting Adam Phillips <asphilli@ucar.edu>:
>>
>>> Hi Lesley,
>>> I don't know why attaching the polymarkers to the final 3 plots
>>> would not work. Someone else will have to speak to that. In the
>>> meantime you can try setting: tfPolyDrawOrder = "PostDraw" in your
>>> polymarker resource list to see if you can get the polymarkers drawn
>>> last. If that doesn't work let everyone know..
>>> Adam
>>>
>>> On 01/15/2014 04:03 PM, lsmith@ucar.edu wrote:
>>>> Hi gang,
>>>> I'm running the awesome program hdf4sds_5.ncl
>>>> (see http://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_5.ncl)
>>>> and I want to add some polymarkers at the end via gsn_polymarker.
>>>> For some reason it only plots successfully if I add the polymarkers to
>>>> the first plot, called "plot".
>>>> Unfortunately, this doesn't work because the successive overlays
>>>> overwrite the polymarkers and you can't see them.
>>>> If I add the polymarkers to one of the other plots, "plot2", "plot3",
>>>> or "plot4" they seem to be placed totally randomly on the page.
>>>> I've been working on this awhile and finally decided to give up and
>>>> ask the experts.
>>>> So, any suggestions out there?
>>>> Thanks a lot!
>>>> -Lesley
>>>>
>>>>
>>>> ----------------------------------------------------------------
>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>
>>>> _______________________________________________
>>>> 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/staff/asphilli
>>>
>>>
>>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> 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/staff/asphilli
>
>
>

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jan 15 16:53:44 2014

This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST