Question about coord_transform keyword in axis function [message #88808] |
Sun, 22 June 2014 12:55  |
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   |
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  |
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
|
|
|