| Re: xwindow question [message #16165 is a reply to message #16164] |
Thu, 01 July 1999 00:00   |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Nando Iavarone wrote:
>
> Hi all,
> I'm using the david fanning's "xwindow" procedure.
> I used it with the keyword "wid" to make other oeparations
> on the display window.
> I need to have the PS output of currently display and not
> of the starting display.
>
> Has anyone just modified the procedure to do that?
>
> Thank you.
>
>
Seems like the author isn't aware of his genius? ;-) Although I
still haven't XWINDOW embedded in all my programs (I know, I should),
it seems to me that you can specify any routine to be executed
upon a "redraw" event, i.e. also when you create a postscript
file. So, if you write a simple procedure like
pro extplot,x,y,_EXTRA=e
; do the plot
plot,x,y,_EXTRA=e
; do something else
xyouts,0.5,0.98,'Grand title',/NORM,align=0.5
return
end
Then you pass 'extplot' instead of 'plot' to xwindow, and you should
be able to create a postscript file as you like.
Hope this helps,
Martin
--
|||||||||||||||\\\\\\\\\\\\\-------------------///////////// //|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/
********* ADDRESS CHANGE : AFTER JULY 15, 1999 ***************
Max-Planck-Institut fuer Meteorologie >>> N E W <<<
Bundesallee 55 >>> N E W <<<
20147 Hamburg >>> N E W <<<
Germany >>> N E W <<<
phone (+49 40) 41173 - 0 >>> N E W <<<
email martin.schultz@dkrz.de >>> N E W <<<
(email to mgs@io.harvard.edu will be forwarded)
************************************************************ *******
|
|
|
|