support multiple plot per xy_plot

This commit is contained in:
Cedric Roux
2016-05-09 12:13:18 +02:00
parent 277ddb139d
commit 32b2264fbd
4 changed files with 67 additions and 29 deletions
+8 -2
View File
@@ -95,11 +95,15 @@ struct textlist_widget {
int background_color;
};
struct xy_plot_widget {
struct widget common;
struct xy_plot_plot {
float *x;
float *y;
int npoints;
int color;
};
struct xy_plot_widget {
struct widget common;
char *label;
int label_width;
int label_height;
@@ -109,6 +113,8 @@ struct xy_plot_widget {
float ymin, ymax;
int wanted_width;
int wanted_height;
struct xy_plot_plot *plots;
int nplots;
};
struct button_widget {