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

Home » Public Forums » archive » Contour Plot w/ Colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Contour Plot w/ Colorbar [message #74725] Tue, 01 February 2011 07:11 Go to next message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
Here's a picture I have: http://i.imgur.com/9tmJ2.png. It's of a
contour with the color on the side vertically. The problem I'm having
is that the numbers are not showing up on the colorbar and they cut
off when I pull up the postscript file to excel. Here are the relevant
calls that I'm making in IDL.

SET_PLOT, 'PS'

Device, BITS_PER_PIXEL=8, COLOR=1, /ENCAPSULATED, FILENAME =
results_folder + 'weighted_temp1' + time + '.eps', xsize = 4, ysize =
4.5712, /INCHES

contour, data, x, y, max_value = max_bright, min_value = min_bright, $
/Fill, C_Colors = indgen(levels), background = 1, xstyle = 4, $
ystyle = 4, levels = userLevels, /normal, color = black, $
Position = [0.02, 0.1, 0.82, 0.80]

colorBar, NColors=levels, divisions=6, Range = [min_data, max_data], $
format='(I5)', Position = [0.88, 0.10, 0.95, 0.90], Color = black,
$
/vertical, /right

So my question is what can I do to make the numbers on the colorbar
appear?

I tried changing xsize and ysize and I saw more of the numbers but it
didn't help much. It made the image bigger than I wanted it. Also
don't worry about the black stuff in the contour image. I did that on
purpose. Thanks!

- Ammar
Re: Contour Plot w/ Colorbar [message #74791 is a reply to message #74725] Tue, 01 February 2011 21:30 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> Yea you're probably right. I do have another coyote library in my path
> so I'll take that out.
> I'll check again some time tomorrow and let you know for sure but
> you're probably right.
> I just want to make sure and hope that's the problem and not a bug
> because I know you're
> about to come out with a new release of coyote graphics right?

I'm not claiming the code is bug free, but
I've got over 30 people reading chapters and
typing code. I'm pretty sure the code is working
reasonably well.

Throw *all* your Coyote Library routines away,
and start with a fresh download. I'm *sure* my example
will run. :-)

I'm holding off on a new distribution until I have
a chance to get my web pages back into business with
all the new names of routines, etc. It may be some
time.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Contour Plot w/ Colorbar [message #74792 is a reply to message #74725] Tue, 01 February 2011 21:19 Go to previous messageGo to next message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
> I think it is more likely that you have several versions
> of the Library on your machine and you are not running
> the version you think you are running. You can try compiling
> something from the library, maybe the routine that is giving
> you the problems, and then type this:
>
>    IDL> Help, /Source
>
> I'm pretty sure you are not running the latest version.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Yea you're probably right. I do have another coyote library in my path
so I'll take that out.
I'll check again some time tomorrow and let you know for sure but
you're probably right.
I just want to make sure and hope that's the problem and not a bug
because I know you're
about to come out with a new release of coyote graphics right?
Thanks!
Re: Contour Plot w/ Colorbar [message #74793 is a reply to message #74725] Tue, 01 February 2011 21:21 Go to previous messageGo to next message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Feb 1, 8:41 pm, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> Hmm weird. So I just downloaded the library from:
>> http://www.idlcoyote.com/programs/coyoteprograms.zip.
>> I'm getting that same error:http://i.imgur.com/QofMt.png. I'm using
>> the stuff you just gave me but
>> I don't know I'm doing that wrong or not. Thanks!
>
> I think it is more likely that you have several versions
> of the Library on your machine and you are not running
> the version you think you are running. You can try compiling
> something from the library, maybe the routine that is giving
> you the problems, and then type this:
>
>    IDL> Help, /Source
>
> I'm pretty sure you are not running the latest version.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")


Yea you're probably right. I do have another coyote library in my path
so I'll take that out.
I'll check again some time tomorrow and let you know for sure but
you're probably right.
I just want to make sure and hope that's the problem and not a bug
because I know you're
about to come out with a new release of coyote graphics right? Thanks!
Re: Contour Plot w/ Colorbar [message #74796 is a reply to message #74725] Tue, 01 February 2011 17:41 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> Hmm weird. So I just downloaded the library from:
> http://www.idlcoyote.com/programs/coyoteprograms.zip.
> I'm getting that same error: http://i.imgur.com/QofMt.png. I'm using
> the stuff you just gave me but
> I don't know I'm doing that wrong or not. Thanks!

I think it is more likely that you have several versions
of the Library on your machine and you are not running
the version you think you are running. You can try compiling
something from the library, maybe the routine that is giving
you the problems, and then type this:

IDL> Help, /Source

I'm pretty sure you are not running the latest version.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Contour Plot w/ Colorbar [message #74797 is a reply to message #74725] Tue, 01 February 2011 17:29 Go to previous messageGo to next message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Feb 1, 7:52 pm, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> I did that but I got this error:http://i.imgur.com/6R6Mr.png.
>> Then what happened after I clicked okay was it started opening up
>> windows continuously on taskbar and it would not stop.
>> It just kept going and I had to hit stop through IDL but even that
>> took a while and made my computer go very slow.
>> I was just wondering if this is a bug that I encountered. I did
>> download your library 2 days ago but I know you're making
>> updates.
>
> Yes, you need the VERY latest library. I saw that on my
> display once, too. I learned that my estimate of how many
> graphics windows could appear on the display at once
> was WAY too low! :-)
>
> Get it quickly, though. I am just about to do the really
> big name-change update and goodness *that* might take a
> couple of days to settle down.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hmm weird. So I just downloaded the library from:
http://www.idlcoyote.com/programs/coyoteprograms.zip.
I'm getting that same error: http://i.imgur.com/QofMt.png. I'm using
the stuff you just gave me but
I don't know I'm doing that wrong or not. Thanks!
Re: Contour Plot w/ Colorbar [message #74798 is a reply to message #74725] Tue, 01 February 2011 16:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> I did that but I got this error: http://i.imgur.com/6R6Mr.png.
> Then what happened after I clicked okay was it started opening up
> windows continuously on taskbar and it would not stop.
> It just kept going and I had to hit stop through IDL but even that
> took a while and made my computer go very slow.
> I was just wondering if this is a bug that I encountered. I did
> download your library 2 days ago but I know you're making
> updates.

Yes, you need the VERY latest library. I saw that on my
display once, too. I learned that my estimate of how many
graphics windows could appear on the display at once
was WAY too low! :-)

Get it quickly, though. I am just about to do the really
big name-change update and goodness *that* might take a
couple of days to settle down.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Contour Plot w/ Colorbar [message #74848 is a reply to message #74725] Wed, 02 February 2011 14:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> Hi David, I just wanted to let you know that I took out the old
> library files and replaced it
> with the new ones and it worked so it was a problem on my end. I was
> playing around with it
> and the only thing was that the color bar came out half in the color
> from the table and the
> top half was gray. Just wondering if you know why off the top of your
> head. If not it's fine
> because I probably made a mistake on my part but didn't dig further
> because I didn't need anymore.
> Just for future reference.

I'd guess, off hand, because those were the colors
you had loaded in the color table. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Contour Plot w/ Colorbar [message #74850 is a reply to message #74791] Wed, 02 February 2011 14:38 Go to previous message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Feb 2, 12:30 am, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> Yea you're probably right. I do have another coyote library in my path
>> so I'll take that out.
>> I'll check again some time tomorrow and let you know for sure but
>> you're probably right.
>> I just want to make sure and hope that's the problem and not a bug
>> because I know you're
>> about to come out with a new release of coyote graphics right?
>
> I'm not claiming the code is bug free, but
> I've got over 30 people reading chapters and
> typing code. I'm pretty sure the code is working
> reasonably well.
>
> Throw *all* your Coyote Library routines away,
> and start with a fresh download. I'm *sure* my example
> will run. :-)
>
> I'm holding off on a new distribution until I have
> a chance to get my web pages back into business with
> all the new names of routines, etc. It may be some
> time.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David, I just wanted to let you know that I took out the old
library files and replaced it
with the new ones and it worked so it was a problem on my end. I was
playing around with it
and the only thing was that the color bar came out half in the color
from the table and the
top half was gray. Just wondering if you know why off the top of your
head. If not it's fine
because I probably made a mistake on my part but didn't dig further
because I didn't need anymore.
Just for future reference.

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to loop through data?
Next Topic: new graphics legend

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

Current Time: Wed Oct 08 15:16:47 PDT 2025

Total time taken to generate the page: 0.11016 seconds