Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Copying contents of a function graphics window
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