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

Home » Public Forums » archive » logarithmic 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: logarithmic colorbar [message #87441 is a reply to message #87436] Mon, 03 February 2014 09:43 Go to previous messageGo to previous message
simona bellavista is currently offline  simona bellavista
Messages: 56
Registered: December 2009
Member
Dear David,

your answer are always resolutive.

I just want to point out to hypothetical future readers that in order to fit the color bar I changed the margins with with xmargin.

On Monday, 3 February 2014 16:54:43 UTC+1, David Fanning wrote:
> simona bellavista writes:
>
>
>
>>
>
>> I am trying to make a logarithmic colobar. I am not entirely sure this is correct.
>
>> The variable a that I am plotting as a shade of color is actually a log10(a). In the colorbar I would like to have a logarithmic axis. I do the following:
>
>>
>
>> colors = bytscl(alog10(a))
>
>>
>
>> plot, x, y, /nodata
>
>> for i = 0, n_elements(x) plots, x[i], y[i], color=colors[i], psym=4
>
>> vtick = alog10(2e3*dindgen(5)+1e3)
>
>> colorbar, range = [min(alog10(a)),max(alog10(a))], orientation=1, tickvalues=vtick, tickname=string(tickvalues,format='(I6)')
>
>>
>
>> and the ticks are created as usually equi-spaced and they are actually 7.
>
>>
>
>> And also the option orientation does have any effect and I can't get the bar on the side, but instead it is on the top inside my plot, how do I get it to stay on the side? I think the problem is that when plot is called it fills the whole window and no space is left.
>
>
>
> This article might help:
>
>
>
> http://www.idlcoyote.com/graphics_tips/logcb.html
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: extra lines in colorbar
Next Topic: h5_parse without READ_DATA

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

Current Time: Wed Oct 08 17:32:44 PDT 2025

Total time taken to generate the page: 0.00473 seconds