Re: Philosophical Scaling Question [message #51732 is a reply to message #51593] |
Mon, 04 December 2006 12:43   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian Larsen writes:
>> 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.
Don't get too excited about this yet. It looks beautiful.
I'm just not sure it is correct. :-)
I'm trying to write an article about this, and I keep
running into complications. It is a lot more difficult
than I expected it to be.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|