#include "ui.h"
#include "math.h"


extern struct ui_widget hist_plot;

typedef struct plot{
        int16_t* d;      // pointer on data array
        uint16_t d_size; // data array size
        uint8_t x_size;  // X plot size (pixel)
        uint8_t y_size;  // Y plot size (pixel)
        char* title;     // pointer on plot title string
        uint8_t frame;   // draw frame around plot
        uint8_t line;    // draw lines between data points
        uint8_t zero;    // draw a line showing data zero value
}plot;
