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
Filling the frame of a NG plot [message #89781] Wed, 03 December 2014 08:43 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
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
[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: Fri Oct 10 10:40:45 PDT 2025

Total time taken to generate the page: 0.15852 seconds