Re: changing the color of a plot [message #71218] |
Fri, 04 June 2010 12:47 |
Hassan
Messages: 48 Registered: October 2009
|
Member |
|
|
On Jun 4, 6:53 pm, David Fanning <n...@dfanning.com> wrote:
> pp writes:
>> You should say what the errors are, not just where they happen.
>> Especially when they are inside a well tested routine, which everybody
>> knows that normally works.
>
>> Though in this case I would guess the problem is you did not download
>> error_message(), decomposedcolor() and pickcolorname(), which
>> fsc_color uses (as informed in its documentation).
>
> I'm going to guess (since it will solve all of the problems
> you have mentioned so far) you might want the entire
> library:
>
> http://www.dfanning.com/code_tips/installcoyote.html
>
> 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.")
Thanks all of you guys, it works fine now :)
|
|
|
Re: changing the color of a plot [message #71220 is a reply to message #71218] |
Fri, 04 June 2010 10:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
pp writes:
> You should say what the errors are, not just where they happen.
> Especially when they are inside a well tested routine, which everybody
> knows that normally works.
>
> Though in this case I would guess the problem is you did not download
> error_message(), decomposedcolor() and pickcolorname(), which
> fsc_color uses (as informed in its documentation).
I'm going to guess (since it will solve all of the problems
you have mentioned so far) you might want the entire
library:
http://www.dfanning.com/code_tips/installcoyote.html
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.")
|
|
|
Re: changing the color of a plot [message #71221 is a reply to message #71220] |
Fri, 04 June 2010 10:35  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Jun 4, 2:19 pm, Hassan <hkhav...@gmail.com> wrote:
> Thanks, it should be the right thing I need but I couldn't run it, it
> comes with the following errors:
> Line 496: ok = Error_Message(/Traceback)
> Line 538: decomposedState = DecomposedColor(DEPTH=theDepth)
> Line 827: theColor = PickColorName(Filename=filename, _Extra=extra,
> Cancel=cancelled, BREWER=brewer)
> Line 843: theColor = PickColorName(theColor, Filename=filename,
> _Extra=extra, Cancel=cancelled, BREWER=brewer)
> Line 847: theColor = PickColorName(theColor, Filename=filename,
> _Extra=extra, Cancel=cancelled, BREWER=brewer)
You should say what the errors are, not just where they happen.
Especially when they are inside a well tested routine, which everybody
knows that normally works.
Though in this case I would guess the problem is you did not download
error_message(), decomposedcolor() and pickcolorname(), which
fsc_color uses (as informed in its documentation).
|
|
|
Re: changing the color of a plot [message #71222 is a reply to message #71221] |
Fri, 04 June 2010 10:19  |
Hassan
Messages: 48 Registered: October 2009
|
Member |
|
|
On Jun 4, 5:26 pm, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
> On Jun 4, 5:25 am, Hassan <hkhav...@gmail.com> wrote:
>
>> Hi,
>
>> I wonder how I can change the background color of the plot to white
>> color and the plot itself to the balck color? I used Background
>> keyword in Plot procedure but I dont know which value I shoud use to
>> convert it to white.
>
>> Thanks
>
> Not only has David been "supplying color information to the
> IDL community for nearly 25 years", but he's also written FSC_COLOR,
> it's like sliced bread only better. And that's a fact!
>
> plot, indgen(9), background=fsc_color('white'),
> color=fsc_color('black')
>
> Get it herehttp://www.dfanning.com/documents/programs.html#FSC_COLO R
>
> --G
Thanks, it should be the right thing I need but I couldn't run it, it
comes with the following errors:
Line 496: ok = Error_Message(/Traceback)
Line 538: decomposedState = DecomposedColor(DEPTH=theDepth)
Line 827: theColor = PickColorName(Filename=filename, _Extra=extra,
Cancel=cancelled, BREWER=brewer)
Line 843: theColor = PickColorName(theColor, Filename=filename,
_Extra=extra, Cancel=cancelled, BREWER=brewer)
Line 847: theColor = PickColorName(theColor, Filename=filename,
_Extra=extra, Cancel=cancelled, BREWER=brewer)
|
|
|
Re: changing the color of a plot [message #71225 is a reply to message #71222] |
Fri, 04 June 2010 09:26  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
On Jun 4, 5:25 am, Hassan <hkhav...@gmail.com> wrote:
> Hi,
>
> I wonder how I can change the background color of the plot to white
> color and the plot itself to the balck color? I used Background
> keyword in Plot procedure but I dont know which value I shoud use to
> convert it to white.
>
> Thanks
Not only has David been "supplying color information to the
IDL community for nearly 25 years", but he's also written FSC_COLOR,
it's like sliced bread only better. And that's a fact!
plot, indgen(9), background=fsc_color('white'),
color=fsc_color('black')
Get it here http://www.dfanning.com/documents/programs.html#FSC_COLOR
--G
|
|
|
Re: changing the color of a plot [message #71232 is a reply to message #71225] |
Fri, 04 June 2010 07:09  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Hassan writes:
> I wonder how I can change the background color of the plot to white
> color and the plot itself to the balck color? I used Background
> keyword in Plot procedure but I dont know which value I shoud use to
> convert it to white.
Do you suppose we have reached the point where there is,
like, *too* much information on the Internet?
As someone who has supplied color information to the
IDL community for nearly 25 years, I'm just, well, going
back to bed. :-(
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.")
|
|
|