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

Home » Public Forums » archive » Re: Using Postscript & Colours in IDL
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 Postscript & Colours in IDL [message #58329 is a reply to message #58328] Mon, 28 January 2008 06:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
chloesharrocks@gmail.com writes:

> This is probably an incredibly stupid question (but I'm a complete
> programming novice!), but how do I actually use your program? I
> presume I have to copy the fsc_color.pro into IDLDE and save that as a
> program, but then how do I load that program within my code?
>
> Sorry for the basic questions, but I don't have a clue what I'm doing
> and really need a simple step-by-step guide!

Oh, well, then you need the book, too. ;-)

You just copy these programs into a directory (I've named
mine "coyote") that is located somewhere IDL can find them.
This means somewhere on your IDL path (!PATH). Usually,
you just copy them into a directory, and add the directory
to your path. (Somewhere under Preferences, depending upon
what version of IDL you are using.)

You use the programs like you use any other command in IDL.

thisDevice = !D.Name
keywords = PSCONFIG(Cancel=cancelled)
IF cancelled THEN RETURN
Set_Plot, 'PS'
Device, _EXTRA=keywords
Plot, findgen(11), Color=FSC_COLOR('navy', /NODATA, $
BACKGROUND=FSC_COLOR('ivory')
Oplot, findgen(11), Color=FSC_COLOR('indian red')

etc....

Device, /CLOSE
Set_Plot, thisDevice

There will be directions and examples in the headers of all
the files. Ask if you don't understand something.

You will find a book helpful. If you don't know anything at
all about programming, I would recommend Ken Bowman's book.
If you know a little, but don't know anything at all about
IDL, I would recommend either Liam Gumley's book or mine.
You can learn more about them here:

http://www.dfanning.com/documents/books.html
http://www.dfanning.com/documents/book_recommendations.html

My book is available in a PDF format. And I always give
students big discounts on the hardcopy if they ask. :-)

Cheers,

David
--
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl 7.0 eclipse plugins and updates
Next Topic: Europe/Africa province boundaries

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

Current Time: Fri Oct 10 17:54:26 PDT 2025

Total time taken to generate the page: 1.59528 seconds