Select multiple curves simultaneously?
Moderator: DPlotAdmin
Select multiple curves simultaneously?
Is there a way to use SelectCurve(...) macro function to select multiple curves simultaneously, but not all of curves in a plot?
Something like this SelectCurve(1,3,5) to select curves 1, 3, and 5 for further operation.
Something like this SelectCurve(1,3,5) to select curves 1, 3, and 5 for further operation.
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
SelectCurve(...) macro problem
OK. Now here's another prolem.
I use SelectCurve(LegendHas(...)) macro to select a specific curve based on the legend for further operation. But it's always the first cuvre in my plot being selected no matter what string I put in the LegendHas(...). Any trick to make this work?
I found SelectCurve(3) also selects the first curve only!? Any idea?
I use SelectCurve(LegendHas(...)) macro to select a specific curve based on the legend for further operation. But it's always the first cuvre in my plot being selected no matter what string I put in the LegendHas(...). Any trick to make this work?
I found SelectCurve(3) also selects the first curve only!? Any idea?
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
No, on either. Please save your graph as a DPlot file and send it to me. Also let me know what command you're trying to use after SelectCurve. It may be that SelectCurve works correctly, but the subsequent command is ignoring that setting.
Visualize Your Data
support@dplot.com
support@dplot.com
SelectCurve(...) macro problem
This is what I did:
[SelectCurve(1)]
[EditOperateY("Y/17*9.1")]
[SelectCurve(3)]
[EditOperateY("Y/17*9.1")]
The two operations on Y both changed the value of curve-1, not on curve-3. I will send you the plot soon.
[SelectCurve(1)]
[EditOperateY("Y/17*9.1")]
[SelectCurve(3)]
[EditOperateY("Y/17*9.1")]
The two operations on Y both changed the value of curve-1, not on curve-3. I will send you the plot soon.
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Thanks for the file. I'll take a look and address this as soon as possible.
Visualize Your Data
support@dplot.com
support@dplot.com
SelectCurve(...) macro problem
Just found out that the two macro commands (SelectCurve, EditOperateY) cannot be sent separately for what I wanted to do. Everything works fine now when I concatenate them and send as a whole command string together.
[SelectCurve(LegendHas("abc"))][EditOperateY("Y/17")] <-- works on one curve w/ lengend "abc"
[SelectCurve(LegendHas("xyz"))][EditOperateY("Y/10")] <-- works on the other curve w/ lengend "xyz"
The macro command [EditOperateY(...)] along always changes the first curve in the plot.
Is it how this command was designed to operate? If not, could you please fix it in the coming release? Thanks!
[SelectCurve(LegendHas("abc"))][EditOperateY("Y/17")] <-- works on one curve w/ lengend "abc"
[SelectCurve(LegendHas("xyz"))][EditOperateY("Y/10")] <-- works on the other curve w/ lengend "xyz"
The macro command [EditOperateY(...)] along always changes the first curve in the plot.
Is it how this command was designed to operate? If not, could you please fix it in the coming release? Thanks!
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
That's by design. I assumed you were running a DPlot macro rather than sending commands from some other program. When running a macro, the DDE conversation is left open until the macro terminates, and nothing gets reset. On the other hand, DPlot_Command starts a conversation, sends the command, and terminates the conversation. Every new conversation results in a lot of things (curve selection in particular) being initialized. It's a bit inconvenient but it prevents multiple programs (or even the same program) from running over each other.
Visualize Your Data
support@dplot.com
support@dplot.com
SelectCurve(...) macro problem
OK. Please add a notice in the manual or help info in the next release to prevent this issue.
However, I did send the commands from another program (C), not just running the macros.
However, I did send the commands from another program (C), not just running the macros.
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Will do. I know it's in there somewhere but notably is not there in the description of the SelectCurve command. That's a whoops.
Visualize Your Data
support@dplot.com
support@dplot.com