Hello
I found a bug with FXY when some breakpoints are outside the window, the shape is distorted.
Please find attached an example code drawing a diamond shape that you can move out of bounds and see the problem.
I will try to fix this issue.
Bests
Cedric
One solution is to remove the piece of code in charge of plotting only visible segments: lines 650 to 688 of mathplot.cpp@rev102 and just keep dc.DrawLine(x0, c0, x1, c1); and UpdateViewBoundary.
The drawback of this solution is that it will plot all segments even if they are not visible.
I wonder if detecting the intersection between each segment and one of the window borders is very interesting because it requires a lot of computations as well.
Which solution is the best?
Here is a possible patch to fix this issue.
Any segment is dropped if both end points are on the same side either of the top, the bottom, the left or the right.