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 #89796 is a reply to message #89785] Wed, 03 December 2014 14:11 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Wednesday, December 3, 2014 1:19:26 PM UTC-5, Chris Torrence wrote:
> I think it always tries to keep "annotations" (like Polygons, Text, etc.) on top of the "visualizations" (like Plots, etc). One possibility is to use POLYGON with the /DATA keyword, so it throws it into the Visualization space instead of Annotation space.
>
> However, a better way might be to do a fake plot with FILL_BACKGROUND:
>
> pos = [0.2,0.2,0.8,0.8]
> win = window(dimensions = [512, 512])
> im = image(randomu(seed, [512, 512]), position = [0, 0, 1, 1], current = win)
> pl = plot([0, 0, 1, 1], [0, 1, 1, 0], position=pos, current=win, $
> /fill_background, fill_color = 'yellow', fill_level=0, $
> axis_style=0, linestyle='none')
> p2 = plot([0, 1], position = pos, current = win)
>
> -Chris

Victory! Many thanks, Chris.
Even so, fixing the background_color property might be easier.

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: Tue Apr 14 00:48:01 PDT 2026

Total time taken to generate the page: 2.00886 seconds