You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data buffer is a rolling buffer. So, to draw lines and smooth (interpolate) the drawing, it must be done in two halves. I suggested a mod down on this same page.
arduino-plotter/listener/Graph.java
Line 186 in 6da8d1b
Hi, just an quick&dirty idea, I don't know if there are any caveats using this. For me it worked:
`for ( int j = 0; j < this.currPoints; j++ )
{
float x1 = (float)(this.posX + (this.data[j][i][0]*xScale - xOffset));
float y1 = (float)(this.posY + yOffset - data[j][i][1]*yScale);
}`
This makes the graph rendering smoother if you wish rendering interpolation between the data points.
This is just some kind of contribution. Thank you for this outstanding library and for making it free for all of us! :)
The text was updated successfully, but these errors were encountered: