Re: Philosophical Scaling Question [message #51593] |
Mon, 04 December 2006 10:24  |
Brian Larsen
Messages: 270 Registered: June 2006
|
Senior Member |
|
|
> LoadCT, 33
> image = LoadData(7)
> TVLCT, r, g, b, /GET
> data = Scale_Vector(image, 1, 1000) ; Data in log scale.
> pos = [0.1, 0.1, 0.9, 0.7]
> TVImage, LogScl(data), Position=pos, /Keep, /Erase
> index = Bindgen(256)
>
> TVLCT, r[LogScl(index)], g[LogScl(index)], b[LogScl(index)]
> Colorbar, Range=[1,1000], XLOG=1, Divisions=3, $
> Position=[pos[0], 0.87, pos[2], 0.93], Minor=5
>
Ah ha, this exactly what I wanted colorbar to do!! The reason I had
never been able to get it done is that was a lot of work (and work I
didn't know how to do), it seems like a flag to colorbar or tvlct or
something that was /logscl would do the trick. Really the issue was my
unfamiliarity with logscl, tvlct, and tvimage and how to put it all
together.
Cheers,
Brian
|
|
|