Copying contents of a function graphics window [message #90870] |
Thu, 30 April 2015 11:28 |
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
|
|
|