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

Home » Public Forums » archive » Question about coord_transform keyword in axis function
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
Question about coord_transform keyword in axis function [message #88808] Sun, 22 June 2014 12:55 Go to next message
zbjiang803109 is currently offline  zbjiang803109
Messages: 5
Registered: January 2014
Junior Member
Hi,

When I tried to plot a figure in which one axis starts from larger to smaller, using the coord_transform keyword, a problem happens.

For example, first generate a plot:
ip=plot(findgen(10))
then add the y-axis:
yax=axis('Y',coord_transform=[0,-1],title='Y_axis',target=ip ,location=[0,0,0])
The tick numbers and the title are flipped entirely (as if seeing from a mirror).

How come? And how to correct this?

Thanks. --Zhibo
Re: Question about coord_transform keyword in axis function [message #88809 is a reply to message #88808] Sun, 22 June 2014 13:18 Go to previous messageGo to next message
zbjiang803109 is currently offline  zbjiang803109
Messages: 5
Registered: January 2014
Junior Member
在 2014年6月22日星期日UTC-4下午3时55分58秒,江治 写道:
> Hi,
>
>
>
> When I tried to plot a figure in which one axis starts from larger to smaller, using the coord_transform keyword, a problem happens.
>
>
>
> For example, first generate a plot:
>
> ip=plot(findgen(10))
>
> then add the y-axis:
>
> yax=axis('Y',coord_transform=[0,-1],title='Y_axis',target=ip ,location=[0,0,0])
>
> The tick numbers and the title are flipped entirely (as if seeing from a mirror).
>
>
>
> How come? And how to correct this?
>
>
>
> Thanks. --Zhibo

This a partially solved by adding the keyword: text_orientation=1, but the title is still flipped.
Re: Question about coord_transform keyword in axis function [message #88911 is a reply to message #88809] Thu, 03 July 2014 02:28 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, June 23, 2014 5:18:04 AM UTC+9, 江治波 wrote:
> 在 2014年6月22日星期日UTC-4下午3时55分58秒,江治 写道:
>
>> Hi,
>
>>
>
>>
>
>>
>
>> When I tried to plot a figure in which one axis starts from larger to smaller, using the coord_transform keyword, a problem happens.
>
>>
>
>>
>
>>
>
>> For example, first generate a plot:
>
>>
>
>> ip=plot(findgen(10))
>
>>
>
>> then add the y-axis:
>
>>
>
>> yax=axis('Y',coord_transform=[0,-1],title='Y_axis',target=ip ,location=[0,0,0])
>
>>
>
>> The tick numbers and the title are flipped entirely (as if seeing from a mirror).
>
>>
>
>>
>
>>
>
>> How come? And how to correct this?
>
>>
>
>>
>
>>
>
>> Thanks. --Zhibo
>
>
>
> This a partially solved by adding the keyword: text_orientation=1, but the title is still flipped.


This was a bug. It is fixed in IDL 8.3 (for sure). I can't remember if it is fixed in IDL 8.2.3. Maybe someone else can confirm when it was fixed?

-Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Label dots in a Ternary plot
Next Topic: make_array function bug

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

Current Time: Wed Oct 08 15:07:20 PDT 2025

Total time taken to generate the page: 0.00446 seconds