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

Home » Public Forums » archive » Re: tvimage with log axis?
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: tvimage with log axis? [message #65593 is a reply to message #65592] Wed, 11 March 2009 22:11 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"David Fanning" <news@dfanning.com> wrote in message
news:MPG.2422456de6f483898a658@news.giganews.com...
> R.G. Stockwell writes:
>
>> anyone have a good image display function that can handle
>> log axis?
>>
>> I have a huge image to display, so other routines just don't work
>> (contour takes several thousand years to plot for instance), so it
>> has to be an image. But I need to plot the y-axis as a log function.
>>
>> Of course, I could roll my own - probably transform the image
>> before calling a display routinem, but i was hoping for a /ylog keyword
>> in a function.
>
> Didn't Ben figure this out some time ago?

thanks, googled and found a thread that looks like it discusses it.
BTW, I had websearched and found an ancient tvimage, with a stretch keyword
for log plots, but that just turned out to be scaling the image (not the
axis).


I did figure out how to resample the y axis in the interpolation() call

newsry =
max(sry)-reverse(alog10(findgen(max(sry))+1)/alog10(max(sry) )*max(sry))
RETURN, INTERPOLATE(arr, srx, newsry, /GRID, CUBIC=cub)

which gives me the scaling i want in the y direction,
but I didn't have it lined up to the plot routine axis correctly.

Thanks for the tip.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: view/model questions
Next Topic: Re: possible to write screen capture of widget program to tiff?

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

Current Time: Sat Oct 11 13:49:46 PDT 2025

Total time taken to generate the page: 1.03894 seconds