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 

FunctionOfXY1Y2 Syntax

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



Joined: 02 Dec 2005
Posts: 222

PostPosted: Wed Nov 02, 2011 7:29 pm    Post subject: FunctionOfXY1Y2 Syntax Reply with quote

David,
Can I do this with the "$XMAX"?:

FunctionOfXY1Y2("sum(Y4)",0,$XMAX,0.5)

The $XMAX seems to be ignored, as well as the "0", but the command runs, but from the full extents of the data.

I have a feeling I can't use the text placeholders here...
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Wed Nov 02, 2011 7:53 pm    Post subject: Reply with quote

There's a bug here but I haven't isolated it yet. It has something to do with the fairly recent edition of allowing you to specify that the output should use the X values from a specified curve rather than specified start/stop/interval values.

No, no, no, wait... I'm wrong. There's no bug. Of course there isn't Very Happy

You need to preface the FunctionOfXY1Y2 command with

FXY1Y2_XFrom(0,0)

... and your $XMAX should actually be =$XMAX (note the leading equals sign).

I definitely need to add more verbiage to the FunctionOfXY1Y2 command Help, so... thanks, as usual.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jsc



Joined: 02 Dec 2005
Posts: 222

PostPosted: Wed Nov 02, 2011 8:49 pm    Post subject: Reply with quote

I was hoping you were watching!

0,0 is state and index I just read. With state=0, then index is ignored and Function of XY1Y2 does what I want, you're saying...

FXY1Y2_XFrom(0,0)
FunctionOfXY1Y2("function",0,=$XMAX,dX)

Thanks. Worked great! (but I did miss that FXY1Y2_XFrom entirely...)
Back to top
View user's profile Send private message
jsc



Joined: 02 Dec 2005
Posts: 222

PostPosted: Thu Nov 03, 2011 8:21 pm    Post subject: Reply with quote

FunctionOfXY1Y2("if(Y1>10,0,(-17.18195+0.322074*Y2+-4.439167e-005*Y2^2)/120)",0,=$XMAX,0.5)

You see that "+-" after the first Y2? Crashed DPlot immediately. Window dropped out so fast it was amazing!

I guess you can't do that!
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Thu Nov 03, 2011 9:19 pm    Post subject: Reply with quote

Thanks. I need to add "+-" to the preprocessing and replace with, of course, "-".
_________________
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