Contour Plot w/ Colorbar [message #74725] |
Tue, 01 February 2011 07:11  |
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 #74848 is a reply to message #74725] |
Wed, 02 February 2011 14:49  |
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  |
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!
|
|
|