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 
Return to the default flat view Create a new topic Submit Reply
Contour Plot w/ Colorbar [message #74725] Tue, 01 February 2011 07:11 Go to previous 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to loop through data?
Next Topic: new graphics legend

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

Current Time: Fri Oct 10 21:07:27 PDT 2025

Total time taken to generate the page: 0.96144 seconds