How to use multiple Axis

Beta releases, announcements and anything else that doesn't fit below. Please read the <B>Welcome</B> topic.

Moderator: DPlotAdmin

Post Reply
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

How to use multiple Axis

Post 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:
________
Last edited by simply on Mon Sep 12, 2011 1:57 pm, edited 2 times in total.
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post 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.
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

Post by simply »

when i call
[SelectCurve(2)] [MultipleYAxes(2,2,0)]
i got the message "missing open parenthesis!
________
Last edited by simply on Mon Sep 12, 2011 1:57 pm, edited 2 times in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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?
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

I swear I tried that, but it works now!
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

Post 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
________
Last edited by simply on Mon Sep 12, 2011 1:57 pm, edited 2 times in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Thanks for the reminder - I've been meaning to fix that behavior for a while.
Visualize Your Data
support@dplot.com
Post Reply