Page 1 of 1

Asymptote in mid-function Position

Posted: Thu Oct 05, 2006 3:39 pm
by mjzoccoli
Question: consider a simple function that has the above condition:

y = 1/(x-2)

If I plot this from (say) x=0 to x=3, and then edit out the y value at x=2, the program still connects the last point on the left branch, with the first point on the right branch. How do I eliminate that erroneous connection?

Notes:
1. Could eliminate the line completely, but then the curves just contain points
2. Could plot just the left branch, then overly just the right branch as a second curve
3. Could use EXCEL XYXY with the left & right branches as an ADD-IN.

But the simplest solution is the one I don't know how to get to - ie drop out the connecting line from the left branch to the right. It's certainly doable in EXCEL....help!

Regards Mike Z

Posted: Thu Oct 05, 2006 4:01 pm
by DPlotAdmin
There's no need to throw out any points. See Options>Amplitude Limits. Check "Enable". Enter the lower and upper limits you want, say +/- 100. Points outside those limits will be ignored, and more importantly in this case there won't be any line segments drawn to or from those points.

Asymptote Question

Posted: Thu Oct 05, 2006 4:13 pm
by mjzoccoli
Thank you David - excellent solution!

Mike Z