DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Select multiple curves simultaneously?

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Wed Aug 14, 2013 1:03 pm    Post subject: Select multiple curves simultaneously? Reply with quote

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.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Aug 14, 2013 1:17 pm    Post subject: Reply with quote

No, but that's a good idea, thanks.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Wed Aug 14, 2013 1:42 pm    Post subject: SelectCurve(...) macro problem Reply with quote

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?
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Aug 14, 2013 4:12 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Wed Aug 14, 2013 4:28 pm    Post subject: SelectCurve(...) macro problem Reply with quote

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.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Aug 14, 2013 10:33 pm    Post subject: Reply with quote

Thanks for the file. I'll take a look and address this as soon as possible.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Thu Aug 15, 2013 12:40 pm    Post subject: SelectCurve(...) macro problem Reply with quote

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!
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Thu Aug 15, 2013 1:08 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Tue Aug 20, 2013 12:58 pm    Post subject: SelectCurve(...) macro problem Reply with quote

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.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Aug 20, 2013 1:16 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group