I'm not sure whether to consider this a bug or not.
The issue is that NCL wants to pick "nice" values for your axes by
default. So, for [273,323], it's using [270,330].
To fix it so that your axes are exactly what your min and max values
are, use the trX/YMin/MaxF resources.
For example:
res1@trXMinF = 0
res1@trXMaxF = 50
res2@trXMinF = 273
res2@trXMaxF = 323
plot = gsn_csm_x2y2(wks,x1,x2,y1,y2,res1,res2)
I will make sure this gets documented.
--Mary
On Jan 23, 2010, at 6:56 PM, H.Dang wrote:
> Hello,
>
> I'm trying to plot two curves on one graph, the x1 for curve1 spans
> [0,50], x2 for curve 2 spans [273, 323]. I also want the top axes
> and bottom axes strictly follow these x1 and x2 spans, so the two
> curves will look like coincide each other. But the top axes in the
> plot I got changes from 270 to 330, the bottom one is 0 to 50. Now
> the two curves look quite different since one of them is "squeezed".
> Anybody please tell me how to fix this problem? Thank you!
>
> --
> Cordially,
> Hongyan
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Jan 24 15:09:24 2010
This archive was generated by hypermail 2.1.8 : Mon Feb 01 2010 - 08:05:34 MST