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

Home » Public Forums » archive » Copying contents of a function graphics window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Copying contents of a function graphics window [message #90870] Thu, 30 April 2015 11:28
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
If I create a function graphics plot
p = plot(/test)
and separately open a window
w = window(dimension=[600,600])

is there a way to display the plot p in the new window?

I can use the copy window() method to get the contents of the plot, and display it in the new window

im = a.copywindow()
w.setcurrent
p2 = image(im,/current)

but this "bitmap copy" gives a poor reproduction.

My original problem was resizing a function graphics plot in a WIDGET_WINDOW. I was hoping not to have to redraw the plot (as required in direct graphics), because a PLOT() window resizes automatically, and so the information to reconstruct the plot is present in the plot object. I was hoping for a "REFRESH" method, that would simply reconstruct the plot in the resized WIDGET_WINDOW.

Thanks, --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How multiply two arrays in IDL?
Next Topic: help with - count in where() function

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

Current Time: Wed Oct 08 07:24:00 PDT 2025

Total time taken to generate the page: 0.00519 seconds