Re: "broken" scale in IDL plot [message #34564] |
Sat, 22 March 2003 07:30  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
aszazeroth (aszazeroth@yahoo.com) writes:
> I was wondering if anyone have any experience in "breaking" the
> scaling in IDL plot mode.
>
> I would like to plot a 10% of the y-axis in a linear scale and then
> change to logarithmic (base 10) scale for the rest of the 90%... the
> x-scale is all linear.
I think you will have to do something like this:
data = Findgen(1000) + 1
plot, data, Position=[0.15, 0.15, 0.9, 0.35], XStyle=8, $
YRange=[1,99], YStyle=1
plot, data, Position=[0.15, 0.35, 0.9, 0.9], XStyle=4, $
YRange=[101,1000], /YLog, /NoErase
axis, xaxis=1, xtickformat='(A1)'
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: "broken" scale in IDL plot [message #34592 is a reply to message #34564] |
Mon, 31 March 2003 04:21  |
aszazeroth
Messages: 2 Registered: March 2003
|
Junior Member |
|
|
David Fanning <david@dfanning.com> wrote in message news:<MPG.18e62f81808da424989b28@news.frii.com>...
> aszazeroth (aszazeroth@yahoo.com) writes:
>
>> I was wondering if anyone have any experience in "breaking" the
>> scaling in IDL plot mode.
>>
>> I would like to plot a 10% of the y-axis in a linear scale and then
>> change to logarithmic (base 10) scale for the rest of the 90%... the
>> x-scale is all linear.
>
> I think you will have to do something like this:
>
> data = Findgen(1000) + 1
> plot, data, Position=[0.15, 0.15, 0.9, 0.35], XStyle=8, $
> YRange=[1,99], YStyle=1
> plot, data, Position=[0.15, 0.35, 0.9, 0.9], XStyle=4, $
> YRange=[101,1000], /YLog, /NoErase
> axis, xaxis=1, xtickformat='(A1)'
>
>
> Cheers,
>
> David
THANX, that made the trick... EXACTLY what I needed to do my plot. Thank you again.
//Aszazeroth
|
|
|