Re: Add markers or curves to existing xy2 plot array

From: Wenshan Wang <wenshanw_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 16 2014 - 22:36:17 MDT

Hi Karin,

Which one exactly do you mean?
Sorry I didn't see any one that can solve my problem here.

Let me see if I can explain my situation better.
I have several panels on one page. On each panel, the XY plot has two
different y-axes.
I use:
do i = 0, n
    plot(i) = gsn_csm_xy2(...)
end do

Then I want to add markers to each panel on both y-axes.
Basically, I want something like
1 do i = 0, n
2 plot(i) = gsn_csm_xy2(...)
3 dum_left(i) = gsn_add_polymarker(wks, plot(i), x, y1, res1)
4 dum_right(i) = gsn_add_polymarker(wks, *plot(i)@xy2*, x, y2, res2)
5 end do

but of course, line 4 is not right in syntax.
I was wondering whether there is a way to do so.

Thank you very much for your time!

Best,
Wenshan
------------------------------------------------------------------------------
Graduate Student Researcher
Earth System Science
University of California, Irvine


On Wed, Jul 16, 2014 at 2:19 PM, Karin Meier-Fleischer <
meier-fleischer@dkrz.de> wrote:

> Hi Wenshan,
>
> take a look at the examples of the gsn_add_polymarker page:
>
>
> https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml
>
> Bye,
> Karin
>
> Am 16.07.2014 um 22:51 schrieb Wenshan Wang <wenshanw@uci.edu>:
>
> Hi NCL users,
>
> I was wondering how to add markers or curves to an existing XY plot with
> two different y/x axes.
> I find how to do it with scaler plot from xy_25.ncl and xy_26.ncl:
>
> dum1 = gsn_add_polyline(wks,plot@xy2,time,p1,lnres)
>
> What if my plot is an array?
> I tried plot(i)@xy2 or plot@xy2(i); but they didn't work, actually as I
> expected.
> So it there a way to complete this?
>
> Thank you!
>
> Best,
> Wenshan
>
> ------------------------------------------------------------------------------
> Graduate Student Researcher
> Earth System Science
> University of California, Irvine
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>

Received on Thu Jul 17 04:36:45 2014

This archive was generated by hypermail 2.1.8 : Fri Aug 01 2014 - 15:10:55 MDT