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

Home » Public Forums » archive » Re: 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
Re: Contour Plot w/ Colorbar [message #74715 is a reply to message #74713] Tue, 01 February 2011 09:02 Go to previous messageGo to previous message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Feb 1, 10:40 am, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> Yea I tried changing the position but then it's starting to make the
>> colorbar really thin and I still couldn't get all the numbers inside.
>> Is there anyway to increase the box or something that it plots the
>> postscript file to?
>
> Why don't you try moving the contour plot to the left,
> so you have more room for the colorbar? Move *everything*
> to the left!
>
> 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 I'm not sure how I would do that. I'm assuming positioning but not
sure exactly what to position. I have this code now:

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.001, 0.1, 0.75, 0.80]

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

The contour image looks a little distorted and I got the color bar in
the box with numbers but it's really thin.

Also you mentioned something about normalized coordinates in your next
post. Is there another type of positioning?

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 8 NG widget problem
Next Topic: IDL 8 NG widget problem

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

Current Time: Fri Oct 10 04:00:19 PDT 2025

Total time taken to generate the page: 0.40150 seconds