# HG changeset patch # User Daniele Nicolodi # Date 1399041170 -7200 # Node ID a3494d2806eed3898c3075ca46b472a60c651fd0 # Parent fefe921a9784b36e169b6f211f7a999043b76343 Change plot lines color to red diff -r fefe921a9784 -r a3494d2806ee Plot.c --- a/Plot.c Tue Apr 15 13:35:07 2014 +0200 +++ b/Plot.c Fri May 02 16:32:50 2014 +0200 @@ -5,6 +5,8 @@ #include "FXPlot.h" #include "Plot.h" +#define PLOT_LINE_COLOR VAL_RED + void Plot_InitPanel(Plot_Data *Instance, const char *title, double ymin, double ymax, int parent, int control) { if ((Instance->PlotPanel = LoadPanel (0, "FXPlot.uir", PLOTPANEL)) < 0) @@ -91,7 +93,7 @@ DeleteGraphPlot(Instance->PlotPanel, PLOTPANEL_FREQPLOT, -1, VAL_IMMEDIATE_DRAW); PlotY(Instance->PlotPanel, PLOTPANEL_FREQPLOT, Instance->Frequencies, Instance->IndexPoint, - VAL_DOUBLE, VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_BLUE); + VAL_DOUBLE, VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, PLOT_LINE_COLOR); int autoscale; GetCtrlVal(Instance->PlotPanel, PLOTPANEL_CHECKBOX_AUTOSCALE, &autoscale);