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

Home » Public Forums » archive » Re: An IDL cron job, true color plots, Xvfb, Z-buffer, and all sorts of troubles
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: An IDL cron job, true color plots, Xvfb, Z-buffer, and all sorts of troubles [message #58667 is a reply to message #58592] Fri, 08 February 2008 08:06 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kathryn writes:

> For example, if I use the modified version of my stupid plotting
> procedure that was in David's reply (running interactively, using X
> windows), I have a couple of additional problems. First, I downloaded
> FSC_COLOR so that I could use the annotatecolor option to colorbar.
> However, the call as it stands in colorbar (which I also just re-
> downloaded, to make sure I had the current version) leaves me with a
> syntax error in FSC_COLOR, supposedly to do with the filename argument
> in the call:
> theColor = PickColorName(Filename=filename, _Extra=extra,
> Cancel=cancelled)

More likely that PickColorName is not in your path. Maybe
you didn't download it. I use the Library to build programs
in the Library, so...

http://www.dfanning.com/programs/coyoteprograms.zip

>
> Furthermore, if I try to use the Z buffer and TVREAD to solve my
> problem, for example:
> set_plot, 'Z'
> plot_test, [0,2],[0.3,2.5]
> tvread(/png, filename='plot_test',/nodialog)
>
> My plot comes out with a blue background, invisible axes, and red
> annotation on the colorbar. So clearly I'm still missing something
> with respect to specifying the colors.

Well, I think you forgot to specify them. This would be what
I would expect for that color table 33 you were using the other
day and this code.

Something like this should work better:

set_plot, 'Z'
tvlct, 255, 255, 255, 1 ; White
tvlct, 0, 0, 128, 2 ; Navy Blue
tvlct, 205, 92, 92, 3, ; Indian Red
Plot, [0,2],[0.3,2.5], Background=1, Color=2, /NoData
OPlot, [0,2],[0.3,2.5], Color=3
void = tvread(/png, filename='plot_test',/nodialog)

> To be sure I wasn't screwing something up with calls in my
> startup file, I commented out all graphics-related things prior to
> testing the above snippet.

There's your problem! ;-)

> Thanks to everyone on this newsgroup for always being so generous with
> suggestions,

I thought I might have been too harsh yesterday in my assessment
of your program, but you seem to be bucking up. Hang in there,
you are just an Ah-ha moment away! :-)

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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Multi bands mean
Next Topic: Singing New Tune

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

Current Time: Sun Oct 12 00:54:46 PDT 2025

Total time taken to generate the page: 0.24142 seconds