Skip to content

v0.0.4

Latest
Compare
Choose a tag to compare
@cyberbit cyberbit released this 17 Mar 05:12

This release adds four new functions:

  • Bounded lines: draws lines that are clipped to a bounding box within the plot area.
  • Scaled lines: draws lines using scaled coordinates (source min/max to plot area min/max). A bounded variant is also available.
Plotter:drawLineBounded(x1, y1, x2, y2, color, boxminx, boxmaxx, boxminy, boxmaxy)
Plotter:drawLineSometimesBounded(x1, y1, x2, y2, color, onrate, offrate, oncount, offcount, boxminx, boxmaxx, boxminy, boxmaxy)
Plotter:scaleLine(x1, y1, x2, y2, minx, maxx, miny, maxy, color)
Plotter:scaleLineBounded(x1, y1, x2, y2, minx, maxx, miny, maxy, boxminx, boxmaxx, boxminy, boxmaxy, color)