Re: background fill in XY plot

From: Mary Haley (haley AT
Date: Tue Oct 18 2005 - 19:29:47 MDT

  • Next message: Todd Ringler: "problems with cell fill"

    Hi Hauss,

    You've asked an excellent question and I'm surprised it hasn't come up
    before. As far as I know, there is no way to do this except as you
    suggested using a polygon fill.

    What you need is something like a "vpBackgroundFillColor" resource
    that would effectively fill in the background that is encompassed by
    your viewport (the area defined by the vpXF, vpYF, vpWidthF, and
    vpHeightF resources).

    Unfortunately, this kind of thing requires that you know your viewport
    size ahead of time, so that you can fill it before you do any other
    plotting. Let me think about this some, and maybe meanwhile, somebody
    else has a better solution.


    On Tue, 18 Oct 2005, Hauss Reinbold wrote:

    > Hi everyone. Are there any resources for filling the background of an XY
    > plot? Really all I want to do is add a nice grey background to some line
    > plots (leaving the area outside the plot area white). I can think of a
    > couple ways to do it with polygon fills, but I would rather use a resource if
    > there is one. I've checked the resources and searched the help files. What
    > did I miss? Or do I just have to create my own polygon fill underneath the
    > plot somehow? I have the feeling this should be obvious so forgive me if it
    > is. Thanks.
    > Hauss Reinbold
    > _______________________________________________
    > ncl-talk mailing list
    ncl-talk mailing list

    This archive was generated by hypermail 2b29 : Tue Oct 18 2005 - 21:42:03 MDT