X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Jul 2008 02:15 PM by  anon
Buffered Postscript Output
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Jul 2008 02:15 PM
    Im using idl v6.2 on Win Xp. I frequently need to produce PostScript graphics. The problem i am having is that IDL seems to be buffering many of the Postscript output commands, and so doesn't finish writing these commands to the device before the program ends. The result of this is that unless i close IDL, the Postscript output will remain 'unfinished'. Sometimes its is just that it doesn't finish writing a word (like an axis title). I have tried using the EMPTY command, but this doesn't solve the problem. It is more of an annoyance than anything, but i was just wondering if anyone else had encountered this problem. Cheers, Callum

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Jul 2008 02:15 PM
    Dear Callum, Are you using the command: DEVICE, /CLOSE_FILE At the end of the .pro file?. In this way the file will be closed and read to be used by other softwares. The following is an example of the code: pro color_ps SET_PLOT, 'PS' DEVICE, FILENAME='C:\Documents and Settings\fsantoro\Desktop\myplot.ps', /color ; Blk Blu Brn Cyan Gray Grn Pnk Ora Pur Red Yel Wht r = [000, 000, 143, 000, 128, 000, 255, 255, 255, 255, 255, 255] g = [000, 000, 069, 255, 128, 255, 200, 175, 000, 000, 255, 255] b = [000, 255, 001, 255, 128, 000, 200, 000, 255, 000, 000, 255] tvlct, r, g, b Black = 0 Blue = 1 Brown = 2 Cyan = 3 Gray = 4 Green = 5 Pink = 6 Orange = 7 Magenta= 8 Red = 9 Yellow =10 White =11 x = findgen(100)/100.*2*!pi PLOT, x,sin(x) oplot,x,cos(x), COLOR=Blue oplot,x,sin(x)*cos(x), COLOR=Orange DEVICE, /CLOSE_FILE end
    You are not authorized to post a reply.