I managed to combine two different functions in one plot in Javaplot with:
JavaPlot p1 = new JavaPlot(); p1.getAxis("x").setBoundaries(0, 2); String fun1 = a1 +"*x+"+ b1; String fun2 = a2 +"*x+"+ b2; p1.addPlot(fun1); p1.addPlot(fun2); p1.plot();
But I need fun1 to be drawn from x=0 to x=1, and fun2 to be drawn from x=1 to x=2, and have no idea how to do it.
1.4m articles
1.4m replys
5 comments
56.9k users