comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Filling the frame of a NG plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Filling the frame of a NG plot [message #89782 is a reply to message #89781] Wed, 03 December 2014 09:40 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, December 3, 2014 9:43:57 AM UTC-7, David Grier wrote:
> Dear Folks,
>
> I'd like to fill the plot area of a New Graphics plot with a solid color.
> So far, I haven't found a way to do this that does not blank out the plot
> itself. Here's a stripped-down example that is supposed to plot a diagonal
> line over a yellow background. The yellow polygon, however, covers up the
> diagonal line.
>
> win = window(dimensions = [512, 512])
> pos = [0.2, 0.2, 0.8, 0.8]
> ndx = [[0, 1], [2, 1], [2, 3], [0, 3], [0, 1]]
> verts = pos[ndx]
> poly = polygon(verts, /fill_background, fill_color = 'yellow', $
> fill_transparency = 0, target = win)
> pl = plot([0, 1], position = pos, current = win)
>
> I tried moving the polygon to the back with
> poly.order, /send_to_back
> and moving the plot to the front with
> pl.order, /bring_to_front
> Neither works.
>
>> print,!version
> { x86_64 darwin unix Mac OS X 8.4 Sep 27 2014 64 64}
>
> What's the right way to do what I want?
>
> All the best,
>
> David

Hi David,

Have you tried the BACKGROUND_COLOR property?

p = PLOT(/TEST, BACKGROUND_COLOR='yellow')

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Turning Axis Labelling Off
Next Topic: 3D matrix

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu May 21 15:01:20 PDT 2026

Total time taken to generate the page: 1.44471 seconds