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

Home » Public Forums » archive » Re: using plot() function in a batch file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: using plot() function in a batch file [message #74399 is a reply to message #74398] Tue, 11 January 2011 12:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Galloy writes:

> Use the /BUFFER keyword to send the output to a buffer. It can then be
> saved with the save method:
>
> p = plot(x, y, /buffer)
> p->save, 'test.png'

Wow! This just gave me an idea for my Coyote Graphics
routines. I realized I could add an OUTPUT keyword to
my routines, which in about 10 lines of code will give
me the ability to create PostScript, PNG, JPEG, TIFF, etc.
output files from my routines without drawing anything
on the display.

I just tried it with FSC_Plot and got a terrific PNG
file, with beautiful PostScript fonts (not ugly Hershey
fonts) by typing this command. OUTPUT=2 selects PNG files.

IDL> fsc_plot, loaddata(1), color='red', axiscolor='blue', output=2

Man, you have GOT to like that! :-)

Cheers,

David

P.S. I have *really* got to do something else this afternoon,
but check back tomorrow. This is outstanding! Goodness!
Maybe I will sell a couple of copies of this new book. ;-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using plot() function in a batch file
Next Topic: IDLdoc 3.3.1 bug fix release

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

Current Time: Fri Oct 10 18:48:54 PDT 2025

Total time taken to generate the page: 1.98607 seconds