|
Pearse, You'll have to use the form: yes? DEFINE AXIS[/qualifiers] axis_name = expr ---- cf: ../../documentation/users-guide/commands-reference/DEFINE In your case it would be something like: def ax/y/unit=meter
AXNAME = y_metres (cf. script attached) However our variable is not monotonic... Since it seems symetric around the middle values, you're probably willing to have a series of negative values followed by the positive ones... Regards, P. On 08/03/2017 10:53 AM, Pearse Buchanan
wrote:
|
let y_metres = {1.74779531E+05, 1.74779531E+05, 1.76507196E+05, 1.76507196E+05, 1.76854059E+05, 1.76854059E+05, 1.76975907E+05, 1.76975907E+05, 1.77031836E+05, 1.77031836E+05, 1.77061916E+05, 1.77061916E+05, 1.77079884E+05, 1.77079884E+05, 1.77091447E+05, 1.77091447E+05, 1.77099312E+05, 1.77099312E+05, 1.77104895E+05, 1.77104895E+05, 1.77108994E+05, 1.77108994E+05, 1.77112087E+05, 1.77112087E+05, 1.77114473E+05, 1.77114473E+05, 1.77116347E+05, 1.77116347E+05, 1.77117841E+05, 1.77117841E+05, 1.77119046E+05, 1.77119046E+05, 1.77120027E+05, 1.77120027E+05, 1.77120831E+05, 1.77120831E+05, 1.77121494E+05, 1.77121494E+05, 1.77122040E+05, 1.77122040E+05, 1.77122491E+05, 1.77122491E+05, 1.77122859E+05, 1.77122859E+05, 1.77123158E+05, 1.77123158E+05, 1.77123396E+05, 1.77123396E+05, 1.77123579E+05, 1.77123579E+05, 1.77123712E+05, 1.77123712E+05, 1.77123799E+05, 1.77123799E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123799E+05, 1.77123799E+05, 1.77123712E+05, 1.77123712E+05, 1.77123579E+05, 1.77123579E+05, 1.77123396E+05, 1.77123396E+05, 1.77123158E+05, 1.77123158E+05, 1.77122859E+05, 1.77122859E+05, 1.77122491E+05, 1.77122491E+05, 1.77122040E+05, 1.77122040E+05, 1.77121494E+05, 1.77121494E+05, 1.77120831E+05, 1.77120831E+05, 1.77120027E+05, 1.77120027E+05, 1.77119046E+05, 1.77119046E+05, 1.77117841E+05, 1.77117841E+05, 1.77116347E+05, 1.77116347E+05, 1.77114473E+05, 1.77114473E+05, 1.77112087E+05, 1.77112087E+05, 1.77108994E+05, 1.77108994E+05, 1.77104895E+05, 1.77104895E+05, 1.77099312E+05, 1.77099312E+05, 1.77091447E+05, 1.77091447E+05, 1.77079884E+05, 1.77079884E+05, 1.77061916E+05, 1.77061916E+05, 1.77031836E+05, 1.77031836E+05, 1.76975907E+05, 1.76975907E+05, 1.76854059E+05, 1.76854059E+05, 1.76507196E+05, 1.76507196E+05, 1.74779531E+05, 1.74779531E+05}
def ax/y/unit=meter ym = y_metres !--- error: not monotonic, check with plot
plot y_metres
def ax/y/unit=meter ym = y_metres[i=1:58] !-- ok, but with repeated values
plot y[gy=ym]