Re: How to get the nontransparent effect of gsn_add_annotation?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 26 Aug 2008 10:16:41 -0600

It would help if you could send an image, and a description of which
part of the image is plotA and which is plotB.

You can email it to me directly.

--Mary

On Aug 25, 2008, at 10:08 PM, hjb wrote:

>
> Thank you very much for your suggestion. I am sorry I did not make
> myself clearly.
>
> I made the PlotA to overlay the PlotB with the function
> gsn_add_annotation(plotA,plotB,res).
> my question is: what can I do to let the basemap of PlotB cover
> that of PlotA in the overlayed region?
> I don't want to see the PlotA's basemap in plotB.
>
> Thanks again!
> hjb
> 2008-08-26
> 发件人: Mary Haley
> 发送时间: 2008-08-26 05:23:08
> 收件人: hjb
> 抄送: ncl-talk_at_ucar.edu
> 主题: Re: [ncl-talk] How to get the nontransparent effect
> ofgsn_add_annotation?
>
> On Mon, 25 Aug 2008, hjb wrote:
>
> > Hi, everyone:
> >
> > The function of gsn_add_annotation(plotA,PlotB,res) makes the
> plotB to overllay the plotA transparently. That means that it can
> be still seen the contour of the plotA in the overlaid region. what
> can i do to stop this? That means how to make the overlaying to be
> nontransparent.
>
> I'm not exactly sure what you are asking. plotA is your base plot,
> and plotB
> is your overlay plot, so you should be seeing plotB's elements on
> top of
> plotA's elements. It depends on how you set up these two plots,
> whether
> or not you'll be able to see them both. For example, if plotA were
> a line
> contour plot, and plotB were a filled contour plot, then you won't
> be able to
> see plotA, because the filled contours cover the line contours. If
> it's the
> other way around, however, you will see the line contours on top of
> the
> filled contours, because the areas between the line contours are
> not filled
> with anything, and hence they won't cover what's underneath.
>
> Maybe you need to make the data for plotB be in your base plot, and
> make the data for plotA be your overlay plot?
>
> For example, if you have:
>
> plotA = gsn_csm_contour_map(wks,data1,res1)
> plotB = gsn_csm_contour(wks,data2,res2)
>
> Maybe what you want is:
>
> plotA = gsn_csm_contour_map(wks,data2,res2)
> plotB = gsn_csm_contour(wks,data1,res1)
>
> Or, perhaps instead of using gsn_add_annotation, what you want
> is just "overlay":
>
> overlay(plotA,plotB)
> draw(plotA)
> frame(wks)
>
>
> > One more question, can other languages except English,such as
> Chinese, be displayed in the plot with NCL?
>
> I'm afraid not. Only characters represented by the font tables at:
>
> http://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml
>
> can be used.
>
> --Mary
>
>
> > Thanks a lot!
> >
> > hjb
> >
>
> hjb
> 2008-08-26
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 26 2008 - 10:16:41 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 27 2008 - 10:22:44 MDT