Skip to content

v0.0.3

Choose a tag to compare

@cyberbit cyberbit released this 23 Dec 20:27
· 2 commits to main since this release

This release adds functions to plot XY points and grids scaled to the plot area. See src/examples/grid.lua for a demo script.

At the moment, chartGrid can accurately represent the relative movement of X and Y for chartLine and chartGrid and their variants. The Y spacing can scale automatically with the minimum and maximum data range, while the X spacing is at a fixed data interval.

Plotter:chartXY(data, minx, maxx, miny, maxy, color)
Plotter:chartGrid(dataw, miny, maxy, xOffset, color, styles)

Plotting sum of math.random(-90,100):
2023-12-23_14 05 54

Plotting math.tan:
2023-12-23_14 13 56