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
logarithmic colorbar [message #87435] Mon, 03 February 2014 07:43 Go to previous message
simona bellavista is currently offline  simona bellavista
Messages: 56
Registered: December 2009
Member
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.
[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 15:16:09 PDT 2025

Total time taken to generate the page: 0.00357 seconds