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 #58324 is a reply to message #58323] Mon, 28 January 2008 07:10 Go to previous messageGo to previous message
chloesharrocks is currently offline  chloesharrocks
Messages: 16
Registered: January 2008
Junior Member
Hi David

Sorry, I know I'm being really slow/annoying, but I'm still completely
lost! I have tried using Liam Gumley's book (I have it in front of me
as I type), but am still completely lost with using colours in
postscript output (I can't follow his examples because I don't
understand the basics - I don't know the difference between an 8-bit
mode or 24-bit display etc.

So I've copied fsc_color.pro and all of the contents of the
fsc_psconfigure.zip into a directory called "color" and have used
preferences to add that folder to the IDL path. I'm now trying to
just do a very basic linear plot in which the line is 'indian red':

=====
PRO COLOR_PLOT

x=[0,1,2,3,4]
y=[0,2,4,6,8]

entry_device=!d.name
keywords = PSCONFIG(Cancel=cancelled)
IF cancelled THEN RETURN
set_plot, 'PS'
device, /color, filename='colorplot/ps'
plot, x, y, color=FSC_COLOR('indian red')

device, /close
set_plot, entry_device

END
======

However, I keep getting an error message when I try to compile - it
says there's a syntax error on the line beginning "keywords". I'm so
confused! Is this trying to configure the postscript device! Sorry
again for asking questions that must seem very naive, but to someone
who doesn't have a clue what they're doing they're just questions
desperately trying to understand something very simple!

Thanks
ChloƩ
[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 07:43:28 PDT 2025

Total time taken to generate the page: 0.79879 seconds