Plotter
The ControlPlotter plugin is a real-time plotting widget derived from ControlBase. It renders dynamic float values on a 2D canvas and supports custom axis ranges, tick steps, line width, and colors for the plot background, data line, and axes. The plotter can be seamlessly embedded into custom UI layouts and is ideal for live data monitoring or performance visualization.
#include <interface/plotter/include/TellusimControlPlotter.h>
Example
// create plotter
ControlPlotter plotter(&grid, device, 256);
plotter.setAlign(Control::AlignCenter | Control::AlignExpand | Control::AlignAspect);
plotter.setMargin(0.0f, 0.0f, 0.0f, 4.0f);
plotter.setRangeX(10.0f, 190.0f, 20.0f);
plotter.setRangeY(0.0f, 100.0f, 20.0f);
plotter.setLineColor(Color(0.4f, 1.2f, 0.2f));
plotter.setSize(256.0f, 128.0f);