Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

void plotline_set_colors ( Plot plot,
PlotLine plotline,
gint  i 

Set the start and end colours of a data set.

plot The Plot for which colours are being chosen.
plotline The plotline whose colours are set.
i The index of the data set which is being coloured.

Definition at line 141 of file color.c.

References base_color_set(), _Plot::colormap, _PlotLine::end_color, and _PlotLine::start_color.

Referenced by plot_line_create().

  plotline->start_color = base_color_set(plot->colormap, i%NCOLORS);
  plotline->end_color = base_color_set(plot->colormap, (i+NCOLORS/2)%NCOLORS);

Generated by  Doxygen 1.6.0   Back to index