Page 1 of 1

How to use multiple Axis

Posted: Thu Jun 16, 2011 3:52 pm
by simply
Having 4 curves, i want to associate 1 curve with the second x Axis, and 2 curves with the second y Axis.
I tried to use
[SelectCurve(2)] [MultipleYAxes(2,2,0)]
[SelectCurve(1)] [MultipleYAxes(2,2,0)]
nothing happen, probably i misunderstood something :roll:
________

Posted: Thu Jun 16, 2011 4:15 pm
by jsc
Curve 1 can't be assigned to the 2nd axis, so that may be stopping the macro/command. (That's what it looks like you are trying to do...)

If you really want the data in curve 1 to be on the 2nd Y, you are going to have to re-order the curves, so that it is curve 2 or higher.

Posted: Thu Jun 16, 2011 4:25 pm
by simply
when i call
[SelectCurve(2)] [MultipleYAxes(2,2,0)]
i got the message "missing open parenthesis!
________

Posted: Thu Jun 16, 2011 6:10 pm
by DPlotAdmin
I'm confused. Since you included the [brackets] I assume you're talking about sending commands to DPlot via DPLOTLIB.DLL, rather than running a macro. But the "missing open parenthesis" error is only produced by the macro facility and occurs nowhere in DPLOTLIB.DLL or DPLOT.EXE.

What exactly are you doing and what exactly is the error message?

Posted: Thu Jun 16, 2011 6:38 pm
by jsc
I'm getting the same thing on a 2 curve plot where I asked DPlot to put the 2nd curve on an independent Y axis.

[SelectCurve(2)][MultipleYAxes(2,2,0)]

That's the only line in the macro. Error message is the "missing open parenthesis". Tried lots of variations, but none worked (different error messages depending on what I tried).

version 2.3.1.3

Posted: Thu Jun 16, 2011 7:07 pm
by DPlotAdmin
The brackets are not required (and not accepted) in macros, and there can be only one command per line in macros.

Instead the macro should be something like:
SelectCurve(2)
MultipleYAxes(2,2,0)

Admittedly, the error message in this case (if that is indeed how simply is getting that error) could be much better.

Posted: Thu Jun 16, 2011 7:50 pm
by jsc
I swear I tried that, but it works now!

Posted: Fri Jun 17, 2011 9:34 am
by simply
If you use a bad syntax (putting 2 command in the same line for example), and after that use the correct one, nothing happen, you have to close the file or the macro, and then open it. after that it works

Thanks
________

Posted: Fri Jun 17, 2011 12:30 pm
by DPlotAdmin
Thanks for the reminder - I've been meaning to fix that behavior for a while.