How can I add a bunch of points to a grafica layer and have it cut off at certain point, but then have it start drawing lines again later. This all has the be on the same plot layer. To help visualize my question look at this simple code:
import grafica.*;
GPlot plot;
GPointsArray myArray = new GPointsArray(0);
void setup() {
size(500, 500);
plot = new GPlot(this, 0, 0, 500, 500);
myArray.add(0, 0);
myArray.add(1, 1);
myArray.add(2, 2);
myArray.add(3, 3);
myArray.add(4, 4);
myArray.add(5, 5);
plot.setPoints(myArray);
plot.defaultDraw();
}
It creates this graph:

I need it to appear like this by "ending" the line at (2,2) and then start drawing again at (3,3):

I'm sure there's an easy way to pull this off that i'm not seeing...I imported a large data set and manually creating new layers for each cut off point seems unrealistic.