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

Home » Public Forums » archive » Re: IDL New Graphics Axis function: bug or feature?
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: IDL New Graphics Axis function: bug or feature? [message #81751] Tue, 23 October 2012 10:32 Go to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Monday, October 22, 2012 6:33:00 PM UTC-6, Manodeep Sinha wrote:
>
> I was trying to add an alternate X-axis to a new graphics plot when I could not place this new X-axis on the plot no matter how I tried. It turns out that the original data co-ordinate was established with /YLOG and the AXIS function wanted the location to be set in alog10(yrange[1]).
>

Hi Manodeep,

I think this is a bug. Your statement:

a0 = axis('X',location=[0.0,ymax],tickdir=1)

should place an x-axis at y=100. I'll write it up.

mp
Re: IDL New Graphics Axis function: bug or feature? [message #81839 is a reply to message #81751] Wed, 24 October 2012 00:11 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mardi 23 octobre 2012 19:32:22 UTC+2, Mark Piper a écrit :
> On Monday, October 22, 2012 6:33:00 PM UTC-6, Manodeep Sinha wrote:
>
>>
>
>> I was trying to add an alternate X-axis to a new graphics plot when I could not place this new X-axis on the plot no matter how I tried. It turns out that the original data co-ordinate was established with /YLOG and the AXIS function wanted the location to be set in alog10(yrange[1]).
>
>>
>
>
>
> Hi Manodeep,
>
>
>
> I think this is a bug. Your statement:
>
>
>
> a0 = axis('X',location=[0.0,ymax],tickdir=1)
>
>
>
> should place an x-axis at y=100. I'll write it up.
>
>
>
> mp

I had the feeling, by looking at the AXIS documentation ("When drawing an X axis, the x coordinate is ignored, etc..."), that the coordinate had to be ignored too in the statement. So that:
a0 = axis('X',location=[ymax],tickdir=1)
seems to work, as well as:
a1 = axis('Y',location=[xmax],tickdir=1)
in case of Y being log-scaled.
If true, that is definitely a bug, since the starting coordinate of the new axis remains constrained along a direction.

alain.
Re: IDL New Graphics Axis function: bug or feature? [message #81844 is a reply to message #81751] Tue, 23 October 2012 13:21 Go to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Tuesday, October 23, 2012 12:32:22 PM UTC-5, Mark Piper wrote:
> On Monday, October 22, 2012 6:33:00 PM UTC-6, Manodeep Sinha wrote:
>
>>
>
>> I was trying to add an alternate X-axis to a new graphics plot when I could not place this new X-axis on the plot no matter how I tried. It turns out that the original data co-ordinate was established with /YLOG and the AXIS function wanted the location to be set in alog10(yrange[1]).
>
>>
>
>
>
> Hi Manodeep,
>
>
>
> I think this is a bug. Your statement:
>
>
>
> a0 = axis('X',location=[0.0,ymax],tickdir=1)
>
>
>
> should place an x-axis at y=100. I'll write it up.
>
>
>
> mp

Thanks Mark. I figured this was an unintended side-effect.

Cheers,
Manodeep
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Semi-Transparent Images
Next Topic: Re: XDR format files

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

Current Time: Thu Oct 09 02:51:52 PDT 2025

Total time taken to generate the page: 0.32260 seconds