View previous topic :: View next topic |
Author |
Message |
jsc
Joined: 02 Dec 2005 Posts: 222
|
Posted: Wed Nov 02, 2011 7:29 pm Post subject: FunctionOfXY1Y2 Syntax |
|
|
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 |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Wed Nov 02, 2011 7:53 pm Post subject: |
|
|
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
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 |
|
|
jsc
Joined: 02 Dec 2005 Posts: 222
|
Posted: Wed Nov 02, 2011 8:49 pm Post subject: |
|
|
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 |
|
|
jsc
Joined: 02 Dec 2005 Posts: 222
|
Posted: Thu Nov 03, 2011 8:21 pm Post subject: |
|
|
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 |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Thu Nov 03, 2011 9:19 pm Post subject: |
|
|
Thanks. I need to add "+-" to the preprocessing and replace with, of course, "-". _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
|
|
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
|