Changeset 929 for trunk/lib/Graph.cc


Ignore:
Timestamp:
Dec 2, 2009, 9:02:12 AM (14 years ago)
Author:
Jari Häkkinen
Message:

Changed Colour to Color for consistency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r918 r929  
    3939  {
    4040    legend_.reserve(20);
    41     // we use colour map 0 position 0 for background colour
     41    // we use color map 0 position 0 for background color
    4242    pls_.scolbga(255,255,255,0);
    4343    pls_.init();
     
    6262
    6363
    64   void Graph::current_colour(const legend_data& legend)
     64  void Graph::current_color(const legend_data& legend)
    6565  {
    66     // we use colour map 0 position 1 for current colour
     66    // we use color map 0 position 1 for current color
    6767#ifdef HAVE_PLPLOT
    6868    pls_.scol0a(1,legend.r,legend.g,legend.b,1.0);
     
    7171
    7272
    73   void Graph::current_colour(unsigned char r, unsigned char g, unsigned char b)
     73  void Graph::current_color(unsigned char r, unsigned char g, unsigned char b)
    7474  {
    75     // we use colour map 0 position 1 for current colour
     75    // we use color map 0 position 1 for current color
    7676#ifdef HAVE_PLPLOT
    7777    pls_.scol0a(1,r,g,b,1.0);
     
    143143         i!=legend_.end(); i++, ++row) {
    144144      PLFLT y=(0.95-0.04*row)*yrange_;
    145       current_colour(*i);
     145      current_color(*i);
    146146      pls_.col0(1);
    147147      pls_.join(x-line_length, y-dy, x, y-dy);
Note: See TracChangeset for help on using the changeset viewer.