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

Home » Public Forums » archive » Re: "broken" scale in IDL plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: "broken" scale in IDL plot [message #34564] Sat, 22 March 2003 07:30 Go to next message
David Fanning is currently offline  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 Go to previous message
aszazeroth is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: external routines from MacOSX and how to get at 'em
Next Topic: IDL 6.0

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

Current Time: Wed Oct 08 13:47:32 PDT 2025

Total time taken to generate the page: 0.00629 seconds