Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51658 - in sandbox/SOC/2007/visualization: boost/svg_plot boost/svg_plot/detail libs/svg_plot/example libs/svg_plot/test
From: pbristow_at_[hidden]
Date: 2009-03-09 08:32:17


Author: pbristow
Date: 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
New Revision: 51658
URL: http://svn.boost.org/trac/boost/changeset/51658

Log:
Elimination of tabs (for 2 spaces) in many files.
Text files modified:
   sandbox/SOC/2007/visualization/boost/svg_plot/detail/svg_tag.hpp | 2
   sandbox/SOC/2007/visualization/boost/svg_plot/svg_style.hpp | 10
   sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp | 5
   sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_area_fill.cpp | 102 ++++++------
   sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_boxplot.cpp | 6
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_autoscaling.cpp | 4
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_vector.cpp | 20 +-
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_bars.cpp | 58 +++---
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_histogram.cpp | 42 ++--
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_limits.cpp | 30 +-
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_plot.cpp | 14
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_values.cpp | 14
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_color.cpp | 14
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_point_markers.cpp | 4
   sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg.cpp | 6
   sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_color_consistency.cpp | 336 ++++++++++++++++++++--------------------
   sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_tests.cpp | 336 ++++++++++++++++++++--------------------
   sandbox/SOC/2007/visualization/libs/svg_plot/test/2d_color_consistency.cpp | 180 ++++++++++----------
   18 files changed, 592 insertions(+), 591 deletions(-)

Modified: sandbox/SOC/2007/visualization/boost/svg_plot/detail/svg_tag.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/detail/svg_tag.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/detail/svg_tag.hpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -513,7 +513,7 @@
   // A list of shifts or rotations for several characters is not yet implemented.
   double text_length_; //!< Allows the author to provide exact alignment.
   //! dx_, dy_, and rotate_ can all be omitted, usually meaning no shift or rotation,
- //! but see [@http://www.w3.org/TR/SVG/text.html#TSpanElement] for ancestor rules.
+ //! but see http://www.w3.org/TR/SVG/text.html#TSpanElement for ancestor rules.
   //! but x_, y_, and text_length need a flag.
   bool use_x_; //!> If true then use X absolute position.
   bool use_y_; //!> If true then use Y absolute position.

Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg_style.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_style.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg_style.hpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -386,9 +386,11 @@
       See also browser conformance test at\n
       http://www.croczilla.com/~alex/conformance_suite/svg/text-fonts-01-t.svg\n
       which tests three styles of font, serif, sans-serif and mono-spaced.\n
- <text font-family="Georgia, 'Minion Web', 'Times New Roman', Times, 'MS PMincho', Heisei-Mincho, serif " x="20" y="80">A serifed face</text>\n
- <text font-family="Arial, 'Arial Unicode', 'Myriad Web', Geneva, 'Lucida Sans Unicode', 'MS PGothic', Osaka, sans-serif " x="20" y="160">A sans-serif face</text>\n
- <text font-family="'Lucida Console', 'Courier New', Courier, Monaco, 'MS Gothic', Osaka-Mono, monospace" x="20" y="240">A mono (iW) face</text>
+ \verbatim
+ <text font-family="Georgia, 'Minion Web', 'Times New Roman', Times, 'MS PMincho', Heisei-Mincho, serif " x="20" y="80">A serifed face</text>\n
+ <text font-family="Arial, 'Arial Unicode', 'Myriad Web', Geneva, 'Lucida Sans Unicode', 'MS PGothic', Osaka, sans-serif " x="20" y="160">A sans-serif face</text>\n
+ <text font-family="'Lucida Console', 'Courier New', Courier, Monaco, 'MS Gothic', Osaka-Mono, monospace" x="20" y="240">A mono (iW) face</text>
+ \endverbatim
     */
     font_family_ = s;
     return *this; //! \return reference to text_style to make chainable.
@@ -530,7 +532,7 @@
      \details For example, to output: 5.123 +- 0.01 (19).
      Uncertainty and degrees of freedom estimate.
      Prefix, separator and suffix allow X and Y values to be together on one line, for example\n
- \t[1.23+- 0.01 (3), 4.56 +-0.2 (10)]\n
+ [1.23+- 0.01 (3), 4.56 +-0.2 (10)]\n
      Used in draw_plot_point_values (note plural - not used in draw_plot_point_value)
      where X value_style is used to provide the prefix and separator, and Y value_style to provide the suffix.
      Prefix, separator and suffix are ignored when X or Y are shown separately using draw_plot_point_value.

Modified: sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -13,7 +13,6 @@
 
    \author Paul A. Bristow
    \date Mar 2009
-
 */
 // Copyright Paul A. Bristow 2009
 
@@ -67,8 +66,8 @@
   double value_; //!< Most likely value, typically the mean.
   float uncertainty_; //!< Estimate of uncertainty, typically standard deviation.
   //! Negative values mean that uncertainty is not defined.
- short unsigned deg_free_; //!< Degrees of freedom, usually = number of observations -1;
- //! so for 2 observations, 1 degree of freedom.
+ short unsigned deg_free_; //!< Degrees of freedom, usually = number of observations -1;
+ //! so for 2 observations, 1 degree of freedom.
   //! Range from 0 (1 observation) to 65534 = (std::numeric_limits<unsigned short int>::max)() - 1
   //! Highest value (std::numeric_limits<unsigned short int>::max)() == 0xFFFF == 65535
   //! is used to indicate deg_free_ is NOT meaningful.

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_area_fill.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_area_fill.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_area_fill.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -25,12 +25,12 @@
 
 double my_sin(double x)
 {
- return 50. * sin(x);
+ return 50. * sin(x);
 }
 
 double my_cos(double x)
 {
- return 50. * cos(x);
+ return 50. * cos(x);
 }
 
 double my_tan(double x)
@@ -40,31 +40,31 @@
 
 int main()
 {
- map<double, double> data_sin;
- map<double, double> data_cos;
- map<double, double> data_tan;
-
+ map<double, double> data_sin;
+ map<double, double> data_cos;
+ map<double, double> data_tan;
+
   double inter = 3.14159265 / 8.; // 16 points per cycle of 2 pi.
 
- for(double i = 0; i <= 10.; i+=inter)
- { // Just 10 data points for each function.
- data_sin[i] = my_sin(i);
- data_cos[i] = my_cos(i);
- data_tan[i] = my_tan(i);
- } // for
-
- svg_2d_plot my_plot;
-
- // Size/scale settings.
- my_plot.size(700, 500)
- .x_range(-1, 10)
- .y_range(-75, 75);
-
- // Text settings.
- my_plot.title("Plot of 50 * sin(x), cos(x) and tan(x)")
- .title_font_size(20)
- .x_label("x")
- .y_label("50 * f(x)")
+ for(double i = 0; i <= 10.; i+=inter)
+ { // Just 10 data points for each function.
+ data_sin[i] = my_sin(i);
+ data_cos[i] = my_cos(i);
+ data_tan[i] = my_tan(i);
+ } // for
+
+ svg_2d_plot my_plot;
+
+ // Size/scale settings.
+ my_plot.size(700, 500)
+ .x_range(-1, 10)
+ .y_range(-75, 75);
+
+ // Text settings.
+ my_plot.title("Plot of 50 * sin(x), cos(x) and tan(x)")
+ .title_font_size(20)
+ .x_label("x")
+ .y_label("50 * f(x)")
          .x_major_labels_side(bottom)
          .y_major_labels_side(left)
          .x_major_grid_on(true)
@@ -72,37 +72,37 @@
          .x_major_grid_color(cyan)
          .y_major_grid_color(cyan)
          ;
- // Commands.
- my_plot.plot_window_on(true)
- .x_label_on(true)
+ // Commands.
+ my_plot.plot_window_on(true)
+ .x_label_on(true)
          ;
-
- // Color settings.
- my_plot.background_color(whitesmoke)
- .legend_background_color(lightyellow)
- .legend_border_color(yellow)
- .plot_background_color(ghostwhite)
- .title_color(red)
+
+ // Color settings.
+ my_plot.background_color(whitesmoke)
+ .legend_background_color(lightyellow)
+ .legend_border_color(yellow)
+ .plot_background_color(ghostwhite)
+ .title_color(red)
          ;
- // X axis settings.
- my_plot.x_major_interval(2)
- .x_major_tick_length(14)
- .x_major_tick_width(1)
- .x_minor_tick_length(7)
- .x_minor_tick_width(1)
- .x_num_minor_ticks(3)
-
- // Y axis settings.
- .y_major_interval(25)
- .y_num_minor_ticks(5);
-
- svg_2d_plot_series& s_sin = my_plot.plot(data_sin, "sin(x)").line_on(true).area_fill(red);
+ // X axis settings.
+ my_plot.x_major_interval(2)
+ .x_major_tick_length(14)
+ .x_major_tick_width(1)
+ .x_minor_tick_length(7)
+ .x_minor_tick_width(1)
+ .x_num_minor_ticks(3)
+
+ // Y axis settings.
+ .y_major_interval(25)
+ .y_num_minor_ticks(5);
+
+ svg_2d_plot_series& s_sin = my_plot.plot(data_sin, "sin(x)").line_on(true).area_fill(red);
   std::cout << "s_sin.area_fill() " << s_sin.area_fill() << std::endl; // s_sin.area_fill() RGB(255,0,0)
 
- svg_2d_plot_series& s_cos = my_plot.plot(data_cos, "cos(x)").line_on(true).area_fill(blue).shape(square);
+ svg_2d_plot_series& s_cos = my_plot.plot(data_cos, "cos(x)").line_on(true).area_fill(blue).shape(square);
   std::cout << "s_cos.area_fill() " << s_cos.area_fill() << std::endl; // s_cos.area_fill() RGB(0,0,255)
 
- svg_2d_plot_series& s_tan = my_plot.plot(data_tan, "tan(x)").shape(cone).line_on(true).area_fill(blank);
+ svg_2d_plot_series& s_tan = my_plot.plot(data_tan, "tan(x)").shape(cone).line_on(true).area_fill(blank);
   // Note that svg_color(blank) or svg_color(false) returns a non-color blank, so no fill.
   std::cout << "s_tan.area_fill() " << s_tan.area_fill() << std::endl; // s_tan.area_fill() blank
 
@@ -110,7 +110,7 @@
 
   my_plot.write("./2d_area_fill_1.svg");
 
- my_plot.plot(data_sin, "sin(x)").line_on(true).area_fill(green).shape(square).fill_color(red);
+ my_plot.plot(data_sin, "sin(x)").line_on(true).area_fill(green).shape(square).fill_color(red);
   // Note how this overwrites the previously cos fill and tan line.
   // (It also needs a new title).
 

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_boxplot.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_boxplot.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_boxplot.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -82,8 +82,8 @@
   Autoscaling must inspect the container in order to find axis ranges that will be suitable.
   First we create a container and fill with some fictional data.
   */
- vector<double> my_data;
- // Initialize my_data with some entirely fictional data.
+ vector<double> my_data;
+ // Initialize my_data with some entirely fictional data.
   my_data.push_back(0.2); // [0]
   my_data.push_back(1.1); // [1]
   my_data.push_back(4.2); // [2]
@@ -134,7 +134,7 @@
 
   //] [/auto_boxplot_2]
 
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_autoscaling.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_autoscaling.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_autoscaling.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -108,7 +108,7 @@
   /*`In a second example, we use a different type of container, a set,
   and use autoscale in a more advanced way.*/
   multiset<double> my_set;
- // Initialize my_set with some entirely fictional data.
+ // Initialize my_set with some entirely fictional data.
   my_set.insert(1.2);
   my_set.insert(2.3);
   my_set.insert(3.4);
@@ -174,7 +174,7 @@
 
  //] [/demo_1d_autoscaling_3]
 
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_vector.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_vector.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_vector.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -38,17 +38,17 @@
 and values are inserted using push_back. Since this is a 1-D plot
 the order of data values is not important.
 */
- vector<double> dan_times;
- dan_times.push_back(3.1);
- dan_times.push_back(4.2);
-
- vector<double> elaine_times;
- elaine_times.push_back(2.1);
- elaine_times.push_back(7.8);
+ vector<double> dan_times;
+ dan_times.push_back(3.1);
+ dan_times.push_back(4.2);
+
+ vector<double> elaine_times;
+ elaine_times.push_back(2.1);
+ elaine_times.push_back(7.8);
 
 /*`The constructor initializes a new 1D plot, called `my_plot`, and also sets all the very many defaults for axes, width, colors, etc.
 */
- svg_1d_plot my_plot;
+ svg_1d_plot my_plot;
 
 /*`A few (member) functions that set are fairly self-explanatory:
 
@@ -58,7 +58,7 @@
 * `background_border_color(blue)` sets just one of the very many options.
 */
 
- my_plot.background_border_color(blue)
+ my_plot.background_border_color(blue)
     .legend_on(true)
     .title("Race Times")
     .x_range(-1, 11);
@@ -96,7 +96,7 @@
   my_plot.write("./demo_1d_vector.svg");
 //] [/demo_1d_vector_2]
 
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_bars.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_bars.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_bars.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -18,45 +18,45 @@
 
 int main()
 {
- map<double, double> map1; // Two sample data series.
- map<double, double> map2;
+ map<double, double> map1; // Two sample data series.
+ map<double, double> map2;
 
- // This is random data used purely for example purposes.
- map1[1.] = 3.2; // map[x] = y
- map1[2.] = 5.4;
- map1[7.3] = 9.1;
- map1[8.] = 7.3;
- map1[5.5] = 5.4;
- map1[9.3] = 9.9;
-
- map2[-3.1] = -6.1;
- map2[5.4] = 4.7;
-
- svg_2d_plot my_plot1;
-
- my_plot1.title("X Times")
- .legend_on(true)
- .x_range(-1, 11)
- .background_border_color(black);
+ // This is random data used purely for example purposes.
+ map1[1.] = 3.2; // map[x] = y
+ map1[2.] = 5.4;
+ map1[7.3] = 9.1;
+ map1[8.] = 7.3;
+ map1[5.5] = 5.4;
+ map1[9.3] = 9.9;
+
+ map2[-3.1] = -6.1;
+ map2[5.4] = 4.7;
+
+ svg_2d_plot my_plot1;
+
+ my_plot1.title("X Times")
+ .legend_on(true)
+ .x_range(-1, 11)
+ .background_border_color(black);
 
- my_plot1.plot(map1, "Series 1").fill_color(blue).shape(none).line_on(false).bar_opt(x_stick).bar_width(5).bar_color(red);
+ my_plot1.plot(map1, "Series 1").fill_color(blue).shape(none).line_on(false).bar_opt(x_stick).bar_width(5).bar_color(red);
   my_plot1.write("./demo_2d_bar_x_stick.svg");
- my_plot1.plot(map1, "Series 1").shape(none).line_on(false).bar_opt(x_block).bar_width(10);
+ my_plot1.plot(map1, "Series 1").shape(none).line_on(false).bar_opt(x_block).bar_width(10);
   my_plot1.write("./demo_2d_bar_x_block.svg");
 
- svg_2d_plot my_plot2;
+ svg_2d_plot my_plot2;
 
- my_plot2.title("Y Times")
- .legend_on(true)
- .x_range(-10, 10)
- .background_border_color(blue);
+ my_plot2.title("Y Times")
+ .legend_on(true)
+ .x_range(-10, 10)
+ .background_border_color(blue);
 
- my_plot2.plot(map2, "Series 2").fill_color(green).shape(none).line_on(false).bar_opt(y_stick).bar_width(5).bar_color(cyan);
+ my_plot2.plot(map2, "Series 2").fill_color(green).shape(none).line_on(false).bar_opt(y_stick).bar_width(5).bar_color(cyan);
   my_plot2.write("./demo_2d_bar_y_stick.svg");
- my_plot2.plot(map2, "Series 2").shape(none).line_on(false).bar_opt(y_block).bar_width(10).bar_color(green).bar_area_fill(magenta);
+ my_plot2.plot(map2, "Series 2").shape(none).line_on(false).bar_opt(y_block).bar_width(10).bar_color(green).bar_area_fill(magenta);
   my_plot2.write("./demo_2d_bar_y_block.svg");
 
- return 0;
+ return 0;
 } // int main()
 
 /* Output:

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_histogram.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_histogram.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_histogram.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -35,34 +35,34 @@
   // http://en.wikipedia.org/wiki/Histogram
   // Histogram of travel time (min), US 2000 census.
 
- // Interval(x) Quantity (y) Width Quantity/width bin
+ // Interval(x) Quantity (y) Width Quantity/width bin
   times[0] = 4180.; // 5 836 0 to 5 min
- times[5] = 13687.; // 5 2737 5 to 10 min
- times[10] = 18618.; // 5 3723 10 to 15 min
- times[15] = 19634.; // 5 3926 15 to 20 min
- times[20] = 17981.; // 5 3596 20 to 25 min
+ times[5] = 13687.; // 5 2737 5 to 10 min
+ times[10] = 18618.; // 5 3723 10 to 15 min
+ times[15] = 19634.; // 5 3926 15 to 20 min
+ times[20] = 17981.; // 5 3596 20 to 25 min
   times[25] = 7190.; // 5 1438 25 to 30 min
- times[30] = 16369.; // 5 3273 30 to 35 min
- times[35] = 3212.; // 5 642 35 to 40 min
- times[40] = 4122.; // 5 824 40 to 45 min
- times[45] = 9200.; // 5 613 45 to 60 min
- times[60] = 6461.; // 5 215 60 to 90 min
- times[90] = 3435.; // 5 57 90 to 150 min
+ times[30] = 16369.; // 5 3273 30 to 35 min
+ times[35] = 3212.; // 5 642 35 to 40 min
+ times[40] = 4122.; // 5 824 40 to 45 min
+ times[45] = 9200.; // 5 613 45 to 60 min
+ times[60] = 6461.; // 5 215 60 to 90 min
+ times[90] = 3435.; // 5 57 90 to 150 min
   times[150] = 0.; // Final bin end (15) with zero value.
 
   map<double, double> time2s; // Guess (wild!) at 2050 data series.
   time2s[0] = 2000.; // 5 836 0 to 5 min
- time2s[5] = 5000.; // 5 2737 5 to 10 min
- time2s[10] = 10000.; // 5 3723 10 to 15 min
- time2s[15] = 11000.; // 5 3926 15 to 20 min
- time2s[20] = 12000.; // 5 3596 20 to 25 min
+ time2s[5] = 5000.; // 5 2737 5 to 10 min
+ time2s[10] = 10000.; // 5 3723 10 to 15 min
+ time2s[15] = 11000.; // 5 3926 15 to 20 min
+ time2s[20] = 12000.; // 5 3596 20 to 25 min
   time2s[25] = 13000.; // 5 1438 25 to 30 min
- time2s[30] = 15000.; // 5 3273 30 to 35 min
- time2s[35] = 16000.; // 5 642 35 to 40 min
- time2s[40] = 18000.; // 5 824 40 to 45 min
- time2s[45] = 12000.; // 5 613 45 to 60 min
- time2s[60] = 11000.; // 5 215 60 to 90 min
- time2s[90] = 10000.; // 5 57 90 to 150 min
+ time2s[30] = 15000.; // 5 3273 30 to 35 min
+ time2s[35] = 16000.; // 5 642 35 to 40 min
+ time2s[40] = 18000.; // 5 824 40 to 45 min
+ time2s[45] = 12000.; // 5 613 45 to 60 min
+ time2s[60] = 11000.; // 5 215 60 to 90 min
+ time2s[90] = 10000.; // 5 57 90 to 150 min
   time2s[150] = 0.; // Final bin end (15) with zero value.
 
 

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_limits.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_limits.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_limits.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -52,30 +52,30 @@
 
   /*`Some fictional data is pushed into an STL container, here map:*/
 
- map<double, double> my_data;
+ map<double, double> my_data;
   /*`
   Inserting some fictional values also sorts the data.
   The map index value in [] is the x value, so mydata[x] = y.
 
   First some normal valued points, not 'at limits'.
   */
- my_data[1.1] = 3.2;
- my_data[4.3] = 3.1;
- my_data[0.25] = 1.4;
+ my_data[1.1] = 3.2;
+ my_data[4.3] = 3.1;
+ my_data[0.25] = 1.4;
 /*`
   Now some values including + and - infinity:
 */
- my_data[3] = numeric_limits<double>::quiet_NaN(); // marker at x = 3, y = 0
- my_data[0.] = numeric_limits<double>::quiet_NaN(); // Marker at 0,0
- my_data[1.] = numeric_limits<double>::infinity(); // Marker at 1, top
- my_data[-1] = -numeric_limits<double>::infinity(); // Marker at -1, bottom
- my_data[+numeric_limits<double>::infinity()] = +1.; // Marker at right, 1
- my_data[-numeric_limits<double>::infinity()] = -1.; // Marker at left, -1
- my_data[+numeric_limits<double>::max()] = +2.; // Marker at right, 2
- my_data[-numeric_limits<double>::max()] = +2.; // Marker at left, 2
- my_data[-numeric_limits<double>::max() /2] = +3.; // Value near to max, marker left, 3
- my_data[numeric_limits<double>::infinity()] = numeric_limits<double>::infinity(); // Top right.
- my_data[-numeric_limits<double>::infinity()] = -numeric_limits<double>::infinity(); // Bottom left.
+ my_data[3] = numeric_limits<double>::quiet_NaN(); // marker at x = 3, y = 0
+ my_data[0.] = numeric_limits<double>::quiet_NaN(); // Marker at 0,0
+ my_data[1.] = numeric_limits<double>::infinity(); // Marker at 1, top
+ my_data[-1] = -numeric_limits<double>::infinity(); // Marker at -1, bottom
+ my_data[+numeric_limits<double>::infinity()] = +1.; // Marker at right, 1
+ my_data[-numeric_limits<double>::infinity()] = -1.; // Marker at left, -1
+ my_data[+numeric_limits<double>::max()] = +2.; // Marker at right, 2
+ my_data[-numeric_limits<double>::max()] = +2.; // Marker at left, 2
+ my_data[-numeric_limits<double>::max() /2] = +3.; // Value near to max, marker left, 3
+ my_data[numeric_limits<double>::infinity()] = numeric_limits<double>::infinity(); // Top right.
+ my_data[-numeric_limits<double>::infinity()] = -numeric_limits<double>::infinity(); // Bottom left.
 
 /*`
   [caution using map (rather than multimap that allows duplicates) some assignments values overwrite,

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_plot.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_plot.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_plot.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -138,12 +138,12 @@
           .title_color(red)
           ;
   // Options for x and/or y num_minor_ticks.
- // .y_num_minor_ticks(4) // 0 major, 2,4,6,7,8 minor, 10 major ...
- // .y_num_minor_ticks(1) // 0 major, 5, minor, 10 major ...
+ // .y_num_minor_ticks(4) // 0 major, 2,4,6,7,8 minor, 10 major ...
+ // .y_num_minor_ticks(1) // 0 major, 5, minor, 10 major ...
   // .y_num_minor_ticks(2) // show half points.
   // .y_num_minor_ticks(3) // show half and quarter points.
- // .y_num_minor_ticks(4) // 0 major, 2,4,6,7,8 minor, 10 major ...
- // .y_num_minor_ticks(9) // 0 major, 1,2,3,4,5,6,7,8,9 minor, 10 major ...
+ // .y_num_minor_ticks(4) // 0 major, 2,4,6,7,8 minor, 10 major ...
+ // .y_num_minor_ticks(9) // 0 major, 1,2,3,4,5,6,7,8,9 minor, 10 major ...
 
   // X axis settings.
   my_plot.x_range(xmin, xmax)
@@ -220,9 +220,9 @@
   my_plot.x_value_ioflags(ios::dec | ios::scientific).x_value_precision(2);
   // my_plot.x_value_ioflags(ios::dec).x_value_precision(2);
 
- my_plot.plot(data1, "Sqrt(x)").fill_color(red);
- my_plot.plot(data2, "-2 + x^2").fill_color(orange).size(5).bezier_on(true);
- my_plot.plot(data3, "-1 + 2x").fill_color(yellow).line_color(blue).line_width(3).shape(square);
+ my_plot.plot(data1, "Sqrt(x)").fill_color(red);
+ my_plot.plot(data2, "-2 + x^2").fill_color(orange).size(5).bezier_on(true);
+ my_plot.plot(data3, "-1 + 2x").fill_color(yellow).line_color(blue).line_width(3).shape(square);
 
   cout << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " << file << endl;
   my_plot.write(file);

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_values.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_values.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_values.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -52,19 +52,19 @@
 /*`This example uses a single map to demonstrate autoscaling.
   We create a map to hold our data series.
 */
- map<const double, double> my_data;
+ map<const double, double> my_data;
   /*`
   Inserting some fictional values also sorts the data.
   The index value in [] is the x value.
   */
- //my_data[1.1] = 3.2;
- //my_data[7.3] = 9.1;
- my_data[2.12] = 2.4394;
- my_data[5.47] = 5.3861;
+ //my_data[1.1] = 3.2;
+ //my_data[7.3] = 9.1;
+ my_data[2.12] = 2.4394;
+ my_data[5.47] = 5.3861;
 
   try
   { // try'n'catch clocks are needed to ensure error messages from any exceptions are shown.
- svg_2d_plot my_2d_plot; // Construct a plot with all the default constructor values.
+ svg_2d_plot my_2d_plot; // Construct a plot with all the default constructor values.
 
     my_2d_plot.title("Default 2d Values Demo") // Add a string title of the plot.
       .x_range(-5, 10) // Add a range for the X-axis.
@@ -177,7 +177,7 @@
     std::cout <<
       "\n""Message from thrown exception was:\n " << e.what() << std::endl;
   }
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_color.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_color.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_color.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -41,17 +41,17 @@
 int main()
 {
 
- svg_1d_plot my_colors;
+ svg_1d_plot my_colors;
 
- my_colors.title("Demo SVG colors")
- .legend_on(true)
- .legend_title("Legend title")
+ my_colors.title("Demo SVG colors")
+ .legend_on(true)
+ .legend_title("Legend title")
     .x_label_on(true)
     .x_label("axis") // This doesn't show unless .x_label_on() == true!
     // x_label is far too far below the axis.
     .x_axis_color(blue)
     .x_label_color(magenta)
- .x_range(0., 7.);
+ .x_range(0., 7.);
 
   vector<double> my_data;
   my_data.push_back(1.);
@@ -135,9 +135,9 @@
   svg_color my_blank2(true);
   cout << "(my_blank == my_blank2) is "<< (my_blank == my_blank2) << endl;
 
- my_colors.write("demo_color.svg");
+ my_colors.write("demo_color.svg");
 
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_point_markers.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_point_markers.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_point_markers.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -55,7 +55,7 @@
 
   try
   { // try'n'catch clocks are needed to ensure error messages from any exceptions are shown.
- svg_1d_plot my_1d_plot; // Construct a plot with all the default constructor values.
+ svg_1d_plot my_1d_plot; // Construct a plot with all the default constructor values.
 
     my_1d_plot.title("Demo point markers Demo") // Add a string title of the plot.
       .x_label("length (m)"); // Add a label for the X-axis.
@@ -105,7 +105,7 @@
     std::cout <<
       "\n""Message from thrown exception was:\n " << e.what() << std::endl;
   }
- return 0;
+ return 0;
 } // int main()
 
 /*

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -73,7 +73,7 @@
 
 int main()
 {
- svg my_svg;
+ svg my_svg;
   // Check default and change image size.
   cout << "my_svg.x_size() = " << my_svg.x_size() << ", my_svg.y_size() = " << my_svg.y_size() << endl;
   // my_svg.x_size() = 400, my_svg.y_size() = 400
@@ -280,12 +280,12 @@
 
   my_svg.write("demo_svg.svg");
 
- return 0;
+ return 0;
 } // int main()
 
 /*
 
- svg my_svg;
+ svg my_svg;
   my_svg .write("demo_svg.svg");
 
 ?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/graphics/svg/1.1/dtd/svg11.dtd">

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_color_consistency.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_color_consistency.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_color_consistency.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -125,22 +125,22 @@
 
   // Test the svg_element class.
 
- svg_1d_plot my_plot;
+ svg_1d_plot my_plot;
   // Check the default image sizes:
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
- BOOST_CHECK_EQUAL(my_plot.image_y_size(), 200U);
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
+ BOOST_CHECK_EQUAL(my_plot.image_y_size(), 200U);
 
   my_plot.size(200U, 100U);
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 200U);
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 200U);
   my_plot.size(500U, 100U); // update x
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U); // & check
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U); // & check
   my_plot.size(500U, 300U); // update y
- BOOST_CHECK_EQUAL(my_plot.image_y_size(), 300U); // & check
+ BOOST_CHECK_EQUAL(my_plot.image_y_size(), 300U); // & check
 
  // // cout << my_plot.image_x_size() << endl; // 500
- //BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
+ //BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
  // // Check that test really works by checking the wrong answer!
- ////BOOST_CHECK_EQUAL(my_plot.image_x_size(), 400U);
+ ////BOOST_CHECK_EQUAL(my_plot.image_x_size(), 400U);
  // // check my_plot.image_x_size() == 400U failed [500 != 400]
 
  // BOOST_CHECK_EQUAL(my_plot.legend_top_left(), std::pair(-1., -1.); // default position unassigned = -1..
@@ -173,225 +173,225 @@
 
  // // Plot Title & font.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_family(), "Lucida Sans Console");// Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_family(), "Lucida Sans Console");// Check default.
  // my_plot.title_font_family("Times New Roman"); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_family(),"Times New Roman"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_family(),"Times New Roman"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_style(), ""); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_style(), ""); // Check default.
  // my_plot.title_font_style("bold"); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_style(), "bold"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_style(), "bold"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_weight(), ""); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_weight(), ""); // Check default.
  // my_plot.title_font_weight("400"); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_weight(), "400"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_weight(), "400"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), ""); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), ""); // Check default.
  // my_plot.title_font_stretch("wider"); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), "wider"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), "wider"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), ""); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), ""); // Check default.
  // my_plot.title_font_decoration("underline"); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), "underline"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), "underline"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 0);// Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 0);// Check default.
  // my_plot.title_font_rotation(180); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 180); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 180); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), center_align);// Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), center_align);// Check default.
  // my_plot.title_font_alignment(left_align); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), left_align); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), left_align); // & check.
 
  // // legend title & font
 
- // BOOST_CHECK_EQUAL(my_plot.legend_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.legend_on(), false); // Check default.
  // my_plot.legend_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.legend_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.legend_on(), true); // & check.
 
  // BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 16U);// Check default.
  // my_plot.legend_title_font_size(15); // Set
- // BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 15U); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 15U); // & check.
 
 
- // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), false); // Check default.
  // my_plot.plot_window_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // & check.
- // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // & check.
 
  // BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // Check default.
  // my_plot.x_ticks_up_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), true); // & check.
 
  // BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), true); // Check default.
  // my_plot.x_ticks_down_on(false); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_label_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_on(), false); // Check default.
  // my_plot.x_label_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_label_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_on(), true); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), false); // Check default.
  // my_plot.x_label_units_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), true); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), true); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), true); // Check default.
  // my_plot.x_major_labels_side(false); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), false); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.title_on(), true); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.title_on(), true); // Check default.
  // my_plot.title_on(false); // Set
- // BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
- // BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), false); // Check default.
  // my_plot.x_major_grid_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), true); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), false); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), false); // Check default.
  // my_plot.x_minor_grid_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), true); // & check.
 
  // BOOST_CHECK_EQUAL(my_plot.axes_on(), false); // Check default (both axes on).
  // my_plot.axes_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // & check.
  // my_plot.axes_on(false); // Set false revert to default (both axes on).
 
- // BOOST_CHECK_EQUAL(my_plot.x_axis_on(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_on(), false); // & check.
  // my_plot.x_axis_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.x_axis_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_on(), true); // & check.
 
  // BOOST_CHECK_EQUAL(my_plot.y_axis_on(), true); // Check default.
  // my_plot.y_axis_on(false); // But leave false - as always should be for 1D?
- // BOOST_CHECK_EQUAL(my_plot.y_axis_on(), false); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.y_axis_on(), false); // & check.
  // my_plot.y_axis_on(true); // Set
- // BOOST_CHECK_EQUAL(my_plot.y_axis_on(), true); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.y_axis_on(), true); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
+ // BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
  // my_plot.axes_on(true); //
- // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // Only x axis on
+ // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // Only x axis on
  // my_plot.axes_on(true); // Both on
- // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); //
+ // BOOST_CHECK_EQUAL(my_plot.axes_on(), true); //
 
  // // ticks left and right only for 2-D
 
 
  // my_plot.y_axis_on(false); // But leave false - as always should be for 1D?
 
- // BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(0, 0, 0)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(0, 0, 0)); // Check default color.
  // my_plot.title_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(255, 255, 255)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(255, 255, 255)); // Check default color.
  // my_plot.background_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(255, 255, 255)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(255, 255, 255)); // Check default color.
  // my_plot.legend_background_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(0, 0, 0)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(0, 0, 0)); // Check default color.
  // my_plot.legend_border_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(0, 0, 0)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(0, 0, 0)); // Check default color.
  // my_plot.background_border_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(255, 255, 255)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(255, 255, 255)); // Check default color.
  // my_plot.plot_background_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(black)); // Check default color.
  // my_plot.x_axis_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(black)); // Check default color.
  // my_plot.y_axis_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(black)); // Check default color.
  // my_plot.x_label_color( svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(black)); // Check default color.
  // my_plot.y_label_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(black)); // Check default color.
  // my_plot.x_major_tick_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(black)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(black)); // Check default color.
  // my_plot.x_minor_tick_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(blue)); // Check default color.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(blue)); // Check default color.
  // my_plot.x_major_grid_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 3U); // Check default width.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 3U); // Check default width.
  // my_plot.x_major_grid_width(10U); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 10U); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 10U); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 1U); // Check default width.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 1U); // Check default width.
  // my_plot.x_minor_grid_width(10U); //
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 10U); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 10U); // & check.
 
  // my_plot.x_minor_grid_color(svg_color(red)); //
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
- // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // Check default width.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // Check default width.
  // my_plot.x_axis_width(0); //
- // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // & check.
- // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 0U); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_label(), "X Axis"); // Check default label.
+ // BOOST_CHECK_EQUAL(my_plot.x_label(), "X Axis"); // Check default label.
  // my_plot.x_label("X"); //
- // BOOST_CHECK_EQUAL(my_plot.x_label(), "X"); // & check.
- // BOOST_CHECK_EQUAL(my_plot.x_label(), "X"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label(), "X"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label(), "X"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_label_units(), "(units)"); // Check default label.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_units(), "(units)"); // Check default label.
  // my_plot.x_label_units("(meter)"); //
- // BOOST_CHECK_EQUAL(my_plot.x_label_units(),"(meter)"); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_label_units(),"(meter)"); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.); // Check default.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.); // Check default.
  // my_plot.x_major_interval(1.); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.); // & check.
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 10U);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 10U);
  // my_plot.x_major_tick_length(5U); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 5U);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 5U);
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 3U);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 3U);
  // my_plot.x_major_tick_width(5U); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 5U);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 5U);
 
- // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 1U);
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 1U);
  // my_plot.x_minor_tick_width(5U); //
- // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 5U);
+ // BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 5U);
 
- // BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 2U);
+ // BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 2U);
  // my_plot.x_num_minor_ticks(9U); //
- // BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 9U);
+ // BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 9U);
 
- // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.);
  // my_plot.x_major_interval(2.); //
- // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.);
+ // BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.);
 
- // BOOST_CHECK_EQUAL(my_plot.x_minimum(), -10.); // Check default xmin.
- // BOOST_CHECK_EQUAL(my_plot.x_maximum(), +10.); // Check default xmax.
+ // BOOST_CHECK_EQUAL(my_plot.x_minimum(), -10.); // Check default xmin.
+ // BOOST_CHECK_EQUAL(my_plot.x_maximum(), +10.); // Check default xmax.
  // my_plot.x_range(-1., +1.); //
- // BOOST_CHECK_EQUAL(my_plot.x_minimum(), -1.); // & check.
- // BOOST_CHECK_EQUAL(my_plot.x_maximum(), +1.); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_minimum(), -1.); // & check.
+ // BOOST_CHECK_EQUAL(my_plot.x_maximum(), +1.); // & check.
 
  // std::pair<double, double> r = my_plot.x_range();
- // BOOST_CHECK_EQUAL(r.first, -1.); // & check.
- // BOOST_CHECK_EQUAL(r.second, +1.); // & check.
+ // BOOST_CHECK_EQUAL(r.first, -1.); // & check.
+ // BOOST_CHECK_EQUAL(r.second, +1.); // & check.
 
  // std::pair<double, double> xr = my_plot.x_range();
- // BOOST_CHECK_EQUAL(xr.first, -1.); // & check.
- // BOOST_CHECK_EQUAL(xr.second, +1.); // & check.
+ // BOOST_CHECK_EQUAL(xr.first, -1.); // & check.
+ // BOOST_CHECK_EQUAL(xr.second, +1.); // & check.
 
  // const string style = "test_style.css";
  // //my_plot.load_stylesheet(style); // TODO - Error opening file test_style.css
@@ -399,72 +399,72 @@
  //
 
  // my_plot
- //.background_border_color(svg_color(0, 0, 1))
- //.background_color(svg_color(0, 0, 2))
- //.legend_background_color(svg_color(0, 0, 3))
- //.legend_border_color(svg_color(0, 0, 4))
- //.plot_background_color(svg_color(0, 0, 5))
- //.title_color(svg_color(0, 0, 6))
- //.x_axis_color(svg_color(0, 0, 7))
- //.x_label_color(svg_color(0, 0, 8))
- //.x_major_grid_color(svg_color(0, 0, 9))
- //.x_major_tick_color(svg_color(0, 0, 10))
- //.x_minor_grid_color(svg_color(0, 0, 11))
- //.x_minor_tick_color(svg_color(0, 0, 12));
-
- //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
- //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- ////BOOST_CHECK_EQUAL(svg_color(1, 1, 1), svg_color(0, 0, 0));
+ //.background_border_color(svg_color(0, 0, 1))
+ //.background_color(svg_color(0, 0, 2))
+ //.legend_background_color(svg_color(0, 0, 3))
+ //.legend_border_color(svg_color(0, 0, 4))
+ //.plot_background_color(svg_color(0, 0, 5))
+ //.title_color(svg_color(0, 0, 6))
+ //.x_axis_color(svg_color(0, 0, 7))
+ //.x_label_color(svg_color(0, 0, 8))
+ //.x_major_grid_color(svg_color(0, 0, 9))
+ //.x_major_tick_color(svg_color(0, 0, 10))
+ //.x_minor_grid_color(svg_color(0, 0, 11))
+ //.x_minor_tick_color(svg_color(0, 0, 12));
+
+ //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ ////BOOST_CHECK_EQUAL(svg_color(1, 1, 1), svg_color(0, 0, 0));
  // // check svg_color(1, 1, 1) == svg_color(0, 0, 0) failed [RGB(1,1,1) != RGB(0,0,0)]
 
- //BOOST_CHECK_EQUAL(red, red); // OK
- //// BOOST_CHECK_EQUAL(white, black);
+ //BOOST_CHECK_EQUAL(red, red); // OK
+ //// BOOST_CHECK_EQUAL(white, black);
  // // check white == black failed [143 != 7]
  // // Note that named colors are enums!
 
- //BOOST_CHECK_EQUAL(svg_color(0, 0, 8), svg_color(0, 0, 8));
- //BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(0, 0, 8));
+ //BOOST_CHECK_EQUAL(svg_color(0, 0, 8), svg_color(0, 0, 8));
+ //BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(0, 0, 8));
  // // using BOOST_CHECK_EQUAL is more convenient because it shows the difference!
  // // provided operator== and operator >> is provided.
 
- //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
 
  // // Repeat - intentional? - would different values be a better test?
- //my_plot
- //.x_minor_tick_color(svg_color(0, 0, 12))
- //.x_minor_grid_color(svg_color(0, 0, 11))
- //.x_major_tick_color(svg_color(0, 0, 10))
- //.x_major_grid_color(svg_color(0, 0, 9))
- //.x_label_color(svg_color(0, 0, 8))
- //.x_axis_color(svg_color(0, 0, 7))
- //.title_color(svg_color(0, 0, 6))
- //.plot_background_color(svg_color(0, 0, 5))
- //.legend_border_color(svg_color(0, 0, 4))
- //.legend_background_color(svg_color(0, 0, 3))
- //.background_color(svg_color(0, 0, 2))
- //.background_border_color(svg_color(0, 0, 1));
-
- //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
- //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ //my_plot
+ //.x_minor_tick_color(svg_color(0, 0, 12))
+ //.x_minor_grid_color(svg_color(0, 0, 11))
+ //.x_major_tick_color(svg_color(0, 0, 10))
+ //.x_major_grid_color(svg_color(0, 0, 9))
+ //.x_label_color(svg_color(0, 0, 8))
+ //.x_axis_color(svg_color(0, 0, 7))
+ //.title_color(svg_color(0, 0, 6))
+ //.plot_background_color(svg_color(0, 0, 5))
+ //.legend_border_color(svg_color(0, 0, 4))
+ //.legend_background_color(svg_color(0, 0, 3))
+ //.background_color(svg_color(0, 0, 2))
+ //.background_border_color(svg_color(0, 0, 1));
+
+ //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
 
 } // BOOST_AUTO_TEST_CASE( test1 )
 

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_tests.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_tests.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_tests.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -136,22 +136,22 @@
 
   // Test the svg_element class.
 
- svg_1d_plot my_plot;
+ svg_1d_plot my_plot;
   // Check the default image sizes:
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
- BOOST_CHECK_EQUAL(my_plot.image_y_size(), 200U);
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
+ BOOST_CHECK_EQUAL(my_plot.image_y_size(), 200U);
 
   my_plot.size(200U, 100U);
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 200U);
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 200U);
   my_plot.size(500U, 100U); // update x
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U); // & check
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U); // & check
   my_plot.size(500U, 300U); // update y
- BOOST_CHECK_EQUAL(my_plot.image_y_size(), 300U); // & check
+ BOOST_CHECK_EQUAL(my_plot.image_y_size(), 300U); // & check
 
   // cout << my_plot.image_x_size() << endl; // 500
- BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
+ BOOST_CHECK_EQUAL(my_plot.image_x_size(), 500U);
  // Check that test really works by checking the wrong answer!
-// BOOST_CHECK_EQUAL(my_plot.image_x_size(), 400U);
+// BOOST_CHECK_EQUAL(my_plot.image_x_size(), 400U);
  // // check my_plot.image_x_size() == 400U failed [500 != 400]
 
   std::pair<double, double> const def(-1., -1.); // needs operator<<
@@ -190,229 +190,229 @@
 
   // Plot Title & font.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_family(), "Verdana");// Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_family(), "Verdana");// Check default.
   my_plot.title_font_family("Times New Roman"); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_family(),"Times New Roman"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_family(),"Times New Roman"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_style(), ""); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_style(), ""); // Check default.
   my_plot.title_font_style("bold"); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_style(), "bold"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_style(), "bold"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_weight(), ""); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_weight(), ""); // Check default.
   my_plot.title_font_weight("400"); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_weight(), "400"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_weight(), "400"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), ""); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), ""); // Check default.
   my_plot.title_font_stretch("wider"); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), "wider"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_stretch(), "wider"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), ""); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), ""); // Check default.
   my_plot.title_font_decoration("underline"); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), "underline"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_decoration(), "underline"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 0);// Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), 0);// Check default.
   my_plot.title_font_rotation(uphill); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), uphill); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_rotation(), uphill); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), center_align);// Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), center_align);// Check default.
   my_plot.title_font_alignment(left_align); // Set
- BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), left_align); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_font_alignment(), left_align); // & check.
 
   // legend title & font
 
- BOOST_CHECK_EQUAL(my_plot.legend_on(), false); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.legend_on(), false); // Check default.
   my_plot.legend_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.legend_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.legend_on(), true); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 14U);// Check default.
   my_plot.legend_title_font_size(15); // Set
- BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 15U); // & check.
+ BOOST_CHECK_EQUAL(my_plot.legend_title_font_size(), 15U); // & check.
 
 
- BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.plot_window_on(), true); // Check default.
   my_plot.plot_window_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.plot_window_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.plot_window_on(), false); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // Check default.
   my_plot.x_ticks_up_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), true); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), true); // Check default.
   my_plot.x_ticks_down_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_label_on(), true); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_label_on(), true); // Check default.
   my_plot.x_label_on(false); // Set false // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), false); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), false); // Check default.
   my_plot.x_label_units_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_label_units_on(), true); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), left_side); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), left_side); // Check default.
   my_plot.x_major_labels_side(0); // Set
- BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), none); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), none); // & check.
   my_plot.x_major_labels_side(+1); // Set
- BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), right_side); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_labels_side(), right_side); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.title_on(), true); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.title_on(), true); // Check default.
   my_plot.title_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
- BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_on(), false); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), false); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), false); // Check default.
   my_plot.x_major_grid_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_on(), true); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), false); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), false); // Check default.
   my_plot.x_minor_grid_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_on(), true); // & check.
 
   // Varies for 1D and 2D
   BOOST_CHECK_EQUAL(my_plot.axes_on(), false); // Check default (only x for 1d).
   my_plot.axes_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // & check.
   my_plot.axes_on(false); // Set false revert to default.
 
- BOOST_CHECK_EQUAL(my_plot.x_axis_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_on(), false); // & check.
   my_plot.x_axis_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.x_axis_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_on(), true); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.y_axis_on(), false); // Check default.
   my_plot.y_axis_on(true); // But leave false - as always should be for 1D?
- BOOST_CHECK_EQUAL(my_plot.y_axis_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_axis_on(), true); // & check.
   my_plot.y_axis_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.y_axis_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_axis_on(), false); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
+ BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
   my_plot.axes_on(true); //
- BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // Only x axis on
+ BOOST_CHECK_EQUAL(my_plot.axes_on(), true); // Only x axis on
   my_plot.axes_on(false); // Both on
- BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
+ BOOST_CHECK_EQUAL(my_plot.axes_on(), false); //
 
   // ticks left and right only for 2-D
 
   my_plot.y_axis_on(false); // But leave false - as always should be for 1D?
 
- BOOST_CHECK_EQUAL(svg_color(red), svg_color(red)); // OK
+ BOOST_CHECK_EQUAL(svg_color(red), svg_color(red)); // OK
   // But problem when try to check that svg_color is blank!
- //BOOST_CHECK_EQUAL(svg_color(blank), false); // check svg_color(blank) == false failed [blank != false]
- BOOST_CHECK_EQUAL(svg_color(blank), svg_color(255, 255, 255)); // but this is OK.
+ //BOOST_CHECK_EQUAL(svg_color(blank), false); // check svg_color(blank) == false failed [blank != false]
+ BOOST_CHECK_EQUAL(svg_color(blank), svg_color(255, 255, 255)); // but this is OK.
 
- //BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(blank)); // Check default color is blank.
+ //BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(blank)); // Check default color is blank.
   // check my_plot.title_color() == svg_color(blank) failed [blank != blank]
- BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(255, 255, 255)); // Check default color is blank.
+ BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(255, 255, 255)); // Check default color is blank.
   my_plot.title_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.title_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(255, 255, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(255, 255, 255)); // Check default color.
   my_plot.background_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.background_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(255, 255, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(255, 255, 255)); // Check default color.
   my_plot.legend_background_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.legend_background_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(255, 255, 0)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(255, 255, 0)); // Check default color.
   my_plot.legend_border_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.legend_border_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(255,255,0)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(255,255,0)); // Check default color.
   my_plot.background_border_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.background_border_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(255, 255, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(255, 255, 255)); // Check default color.
   my_plot.plot_background_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.plot_background_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(black)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(black)); // Check default color.
   my_plot.x_axis_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(black)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(black)); // Check default color.
   my_plot.y_axis_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_axis_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(255, 255, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(255, 255, 255)); // Check default color.
   my_plot.x_label_color( svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(255, 255, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(255, 255, 255)); // Check default color.
   my_plot.y_label_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(black)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(black)); // Check default color.
   my_plot.x_major_tick_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(black)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(black)); // Check default color.
   my_plot.x_minor_tick_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_tick_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(200, 220, 255)); // Check default color.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(200, 220, 255)); // Check default color.
   my_plot.x_major_grid_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 1U); // Check default width.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 1U); // Check default width.
   my_plot.x_major_grid_width(10U); //
- BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 10U); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_grid_width(), 10U); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 0.5); // Check default width.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 0.5); // Check default width.
   my_plot.x_minor_grid_width(10); //
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 10); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_width(), 10); // & check.
 
   my_plot.x_minor_grid_color(svg_color(red)); //
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
- BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_minor_grid_color(), svg_color(red)); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 1); // Check default width.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 1); // Check default width.
   my_plot.x_axis_width(2); // change
- BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 2); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_axis_width(), 2); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_label(), ""); // Check NO default label.
+ BOOST_CHECK_EQUAL(my_plot.x_label(), ""); // Check NO default label.
   my_plot.x_label("X Axis"); //
- BOOST_CHECK_EQUAL(my_plot.x_label(), "X Axis"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_label(), "X Axis"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_label_units(), ""); // Check NO default label.
+ BOOST_CHECK_EQUAL(my_plot.x_label_units(), ""); // Check NO default label.
   my_plot.x_label_units(" (meter)"); //
- BOOST_CHECK_EQUAL(my_plot.x_label_units()," (meter)"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_label_units()," (meter)"); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.); // Check default.
+ BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.); // Check default.
   my_plot.x_major_interval(1.); //
- BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.); // & check.
 
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 5);
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 5);
   my_plot.x_major_tick_length(10); //
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 10);
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_length(), 10);
 
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 2);
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 2);
   my_plot.x_major_tick_width(5); //
- BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 5);
+ BOOST_CHECK_EQUAL(my_plot.x_major_tick_width(), 5);
 
- BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 1);
+ BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 1);
   my_plot.x_minor_tick_width(5); //
- BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 5);
+ BOOST_CHECK_EQUAL(my_plot.x_minor_tick_width(), 5);
 
- BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 4U);
+ BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 4U);
   my_plot.x_num_minor_ticks(9U); //
- BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 9U);
+ BOOST_CHECK_EQUAL(my_plot.x_num_minor_ticks(), 9U);
 
- BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.);
+ BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 1.);
   my_plot.x_major_interval(2.); //
- BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.);
+ BOOST_CHECK_EQUAL(my_plot.x_major_interval(), 2.);
 
- BOOST_CHECK_EQUAL(my_plot.x_min(), -10.); // Check default xmin.
- BOOST_CHECK_EQUAL(my_plot.x_max(), +10.); // Check default xmax.
+ BOOST_CHECK_EQUAL(my_plot.x_min(), -10.); // Check default xmin.
+ BOOST_CHECK_EQUAL(my_plot.x_max(), +10.); // Check default xmax.
   my_plot.x_range(-1., +1.); //
- BOOST_CHECK_EQUAL(my_plot.x_min(), -1.); // & check.
- BOOST_CHECK_EQUAL(my_plot.x_max(), +1.); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_min(), -1.); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_max(), +1.); // & check.
 
   std::pair<double, double> r = my_plot.x_range();
- BOOST_CHECK_EQUAL(r.first, -1.); // & check.
- BOOST_CHECK_EQUAL(r.second, +1.); // & check.
+ BOOST_CHECK_EQUAL(r.first, -1.); // & check.
+ BOOST_CHECK_EQUAL(r.second, +1.); // & check.
 
   std::pair<double, double> xr = my_plot.x_range();
- BOOST_CHECK_EQUAL(xr.first, -1.); // & check.
- BOOST_CHECK_EQUAL(xr.second, +1.); // & check.
+ BOOST_CHECK_EQUAL(xr.first, -1.); // & check.
+ BOOST_CHECK_EQUAL(xr.second, +1.); // & check.
 
   const string style = "test_style.css";
   //my_plot.load_stylesheet(style); // TODO - Error opening file test_style.css
@@ -420,72 +420,72 @@
  
 
  // my_plot
- //.background_border_color(svg_color(0, 0, 1))
- //.background_color(svg_color(0, 0, 2))
- //.legend_background_color(svg_color(0, 0, 3))
- //.legend_border_color(svg_color(0, 0, 4))
- //.plot_background_color(svg_color(0, 0, 5))
- //.title_color(svg_color(0, 0, 6))
- //.x_axis_color(svg_color(0, 0, 7))
- //.x_label_color(svg_color(0, 0, 8))
- //.x_major_grid_color(svg_color(0, 0, 9))
- //.x_major_tick_color(svg_color(0, 0, 10))
- //.x_minor_grid_color(svg_color(0, 0, 11))
- //.x_minor_tick_color(svg_color(0, 0, 12));
-
- //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
- //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- ////BOOST_CHECK_EQUAL(svg_color(1, 1, 1), svg_color(0, 0, 0));
+ //.background_border_color(svg_color(0, 0, 1))
+ //.background_color(svg_color(0, 0, 2))
+ //.legend_background_color(svg_color(0, 0, 3))
+ //.legend_border_color(svg_color(0, 0, 4))
+ //.plot_background_color(svg_color(0, 0, 5))
+ //.title_color(svg_color(0, 0, 6))
+ //.x_axis_color(svg_color(0, 0, 7))
+ //.x_label_color(svg_color(0, 0, 8))
+ //.x_major_grid_color(svg_color(0, 0, 9))
+ //.x_major_tick_color(svg_color(0, 0, 10))
+ //.x_minor_grid_color(svg_color(0, 0, 11))
+ //.x_minor_tick_color(svg_color(0, 0, 12));
+
+ //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ ////BOOST_CHECK_EQUAL(svg_color(1, 1, 1), svg_color(0, 0, 0));
  // // check svg_color(1, 1, 1) == svg_color(0, 0, 0) failed [RGB(1,1,1) != RGB(0,0,0)]
 
- //BOOST_CHECK_EQUAL(red, red); // OK
- //// BOOST_CHECK_EQUAL(white, black);
+ //BOOST_CHECK_EQUAL(red, red); // OK
+ //// BOOST_CHECK_EQUAL(white, black);
  // // check white == black failed [143 != 7]
  // // Note that named colors are enums!
 
- //BOOST_CHECK_EQUAL(svg_color(0, 0, 8), svg_color(0, 0, 8));
- //BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(0, 0, 8));
+ //BOOST_CHECK_EQUAL(svg_color(0, 0, 8), svg_color(0, 0, 8));
+ //BOOST_CHECK_EQUAL(my_plot.x_label_color(), svg_color(0, 0, 8));
  // // using BOOST_CHECK_EQUAL is more convenient because it shows the difference!
  // // provided operator== and operator >> is provided.
 
- //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
 
  // // Repeat - intentional? - would different values be a better test?
- //my_plot
- //.x_minor_tick_color(svg_color(0, 0, 12))
- //.x_minor_grid_color(svg_color(0, 0, 11))
- //.x_major_tick_color(svg_color(0, 0, 10))
- //.x_major_grid_color(svg_color(0, 0, 9))
- //.x_label_color(svg_color(0, 0, 8))
- //.x_axis_color(svg_color(0, 0, 7))
- //.title_color(svg_color(0, 0, 6))
- //.plot_background_color(svg_color(0, 0, 5))
- //.legend_border_color(svg_color(0, 0, 4))
- //.legend_background_color(svg_color(0, 0, 3))
- //.background_color(svg_color(0, 0, 2))
- //.background_border_color(svg_color(0, 0, 1));
-
- //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
- //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ //my_plot
+ //.x_minor_tick_color(svg_color(0, 0, 12))
+ //.x_minor_grid_color(svg_color(0, 0, 11))
+ //.x_major_tick_color(svg_color(0, 0, 10))
+ //.x_major_grid_color(svg_color(0, 0, 9))
+ //.x_label_color(svg_color(0, 0, 8))
+ //.x_axis_color(svg_color(0, 0, 7))
+ //.title_color(svg_color(0, 0, 6))
+ //.plot_background_color(svg_color(0, 0, 5))
+ //.legend_border_color(svg_color(0, 0, 4))
+ //.legend_background_color(svg_color(0, 0, 3))
+ //.background_color(svg_color(0, 0, 2))
+ //.background_border_color(svg_color(0, 0, 1));
+
+ //BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ //BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ //BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ //BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ //BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ //BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ //BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ //BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ //BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ //BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ //BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
 
 } // BOOST_AUTO_TEST_CASE( test1 )
 

Modified: sandbox/SOC/2007/visualization/libs/svg_plot/test/2d_color_consistency.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/test/2d_color_consistency.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/test/2d_color_consistency.cpp 2009-03-09 08:32:15 EDT (Mon, 09 Mar 2009)
@@ -34,7 +34,7 @@
 
 BOOST_AUTO_TEST_CASE( test1 )
 {
- svg_2d_plot my_plot;
+ svg_2d_plot my_plot;
 
   BOOST_CHECK_EQUAL(my_plot.title(), ""); // Default now null string.
   my_plot.title("Plot of my data");
@@ -49,111 +49,111 @@
 
   BOOST_CHECK_EQUAL(my_plot.y_label(), ""); // Check default label is null.
   my_plot.y_label("Y"); //
- BOOST_CHECK_EQUAL(my_plot.y_label(), "Y"); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_label(), "Y"); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // Check default.
   my_plot.x_ticks_up_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // & check.
- BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_up_on(), false); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), true); // Check default.
   my_plot.x_ticks_down_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
- BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.x_ticks_down_on(), false); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.y_ticks_right_on(), false); // Check default.
   my_plot.y_ticks_right_on(true); // Set
- BOOST_CHECK_EQUAL(my_plot.y_ticks_right_on(), true); // & check.
- BOOST_CHECK_EQUAL(my_plot.y_ticks_right_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_ticks_right_on(), true); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_ticks_right_on(), true); // & check.
 
   BOOST_CHECK_EQUAL(my_plot.y_ticks_left_on(), true); // Check default.
   my_plot.y_ticks_left_on(false); // Set
- BOOST_CHECK_EQUAL(my_plot.y_ticks_left_on(), false); // & check.
- BOOST_CHECK_EQUAL(my_plot.y_ticks_left_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_ticks_left_on(), false); // & check.
+ BOOST_CHECK_EQUAL(my_plot.y_ticks_left_on(), false); // & check.
 
- my_plot
- .background_border_color(svg_color(0, 0, 1))
- .background_color(svg_color(0, 0, 2))
- .legend_background_color(svg_color(0, 0, 3))
- .legend_border_color(svg_color(0, 0, 4))
- .plot_background_color(svg_color(0, 0, 5))
- .title_color(svg_color(0, 0, 6))
- .x_axis_color(svg_color(0, 0, 7))
- .x_label_color(svg_color(0, 0, 8))
- .x_major_grid_color(svg_color(0, 0, 9))
- .x_major_tick_color(svg_color(0, 0, 10))
- .x_minor_grid_color(svg_color(0, 0, 11))
- .x_minor_tick_color(svg_color(0, 0, 12))
- .y_axis_color(svg_color(0, 0, 13))
- .y_label_color(svg_color(0, 0, 14))
- .y_major_grid_color(svg_color(0, 0, 15))
- .y_major_tick_color(svg_color(0, 0, 16))
- .y_minor_grid_color(svg_color(0, 0, 17))
- .y_minor_tick_color(svg_color(0, 0, 18));
-
- BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
- BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
- //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7)); // Seems to work???
+ my_plot
+ .background_border_color(svg_color(0, 0, 1))
+ .background_color(svg_color(0, 0, 2))
+ .legend_background_color(svg_color(0, 0, 3))
+ .legend_border_color(svg_color(0, 0, 4))
+ .plot_background_color(svg_color(0, 0, 5))
+ .title_color(svg_color(0, 0, 6))
+ .x_axis_color(svg_color(0, 0, 7))
+ .x_label_color(svg_color(0, 0, 8))
+ .x_major_grid_color(svg_color(0, 0, 9))
+ .x_major_tick_color(svg_color(0, 0, 10))
+ .x_minor_grid_color(svg_color(0, 0, 11))
+ .x_minor_tick_color(svg_color(0, 0, 12))
+ .y_axis_color(svg_color(0, 0, 13))
+ .y_label_color(svg_color(0, 0, 14))
+ .y_major_grid_color(svg_color(0, 0, 15))
+ .y_major_tick_color(svg_color(0, 0, 16))
+ .y_minor_grid_color(svg_color(0, 0, 17))
+ .y_minor_tick_color(svg_color(0, 0, 18));
+
+ BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ //BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7)); // Seems to work???
   cout << svg_color(red) << endl;
   cout << my_plot.y_axis_color() << endl;
- BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13));
+ BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13));
   //cout << my_plot.y_axis_color() << endl;
- //BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13)); // fails " does not expect 0 arguments"
- BOOST_CHECK(my_plot.y_label_color() == svg_color(0, 0, 14));
- BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(0, 0, 14));
- //BOOST_CHECK(my_plot.y_major_grid_color() == svg_color(0, 0, 15));
- //BOOST_CHECK(my_plot.y_major_tick_color() == svg_color(0, 0, 16));
- //BOOST_CHECK(my_plot.y_minor_grid_color() == svg_color(0, 0, 17));
- //BOOST_CHECK(my_plot.y_minor_tick_color() == svg_color(0, 0, 18));
-
- my_plot
- .y_minor_tick_color(svg_color(0, 0, 18))
- .y_minor_grid_color(svg_color(0, 0, 17))
- .y_major_tick_color(svg_color(0, 0, 16))
- .y_major_grid_color(svg_color(0, 0, 15))
-// .y_label_color(svg_color(0, 0, 14))
- .y_axis_color(svg_color(0, 0, 13))
- .x_minor_tick_color(svg_color(0, 0, 12))
- .x_minor_grid_color(svg_color(0, 0, 11))
- .x_major_tick_color(svg_color(0, 0, 10))
- .x_major_grid_color(svg_color(0, 0, 9))
- .x_label_color(svg_color(0, 0, 8))
- .x_axis_color(svg_color(0, 0, 7))
- .title_color(svg_color(0, 0, 6))
- .plot_background_color(svg_color(0, 0, 5))
- .legend_border_color(svg_color(0, 0, 4))
- .legend_background_color(svg_color(0, 0, 3))
- .background_color(svg_color(0, 0, 2))
- .background_border_color(svg_color(0, 0, 1));
-
-// BOOST_CHECK(my_plot.y_minor_tick_color() == svg_color(0, 0, 18));
-// BOOST_CHECK(my_plot.y_minor_grid_color() == svg_color(0, 0, 17));
-// BOOST_CHECK(my_plot.y_major_tick_color() == svg_color(0, 0, 16));
-// BOOST_CHECK(my_plot.y_major_grid_color() == svg_color(0, 0, 15));
-//// BOOST_CHECK(my_plot.y_label_color() == svg_color(0, 0, 14));
-// BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13));
- BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
- BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
- BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
- BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
- BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
- BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
- BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
- BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
- BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
- BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
- BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
- BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
+ //BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13)); // fails " does not expect 0 arguments"
+ BOOST_CHECK(my_plot.y_label_color() == svg_color(0, 0, 14));
+ BOOST_CHECK_EQUAL(my_plot.y_label_color(), svg_color(0, 0, 14));
+ //BOOST_CHECK(my_plot.y_major_grid_color() == svg_color(0, 0, 15));
+ //BOOST_CHECK(my_plot.y_major_tick_color() == svg_color(0, 0, 16));
+ //BOOST_CHECK(my_plot.y_minor_grid_color() == svg_color(0, 0, 17));
+ //BOOST_CHECK(my_plot.y_minor_tick_color() == svg_color(0, 0, 18));
+
+ my_plot
+ .y_minor_tick_color(svg_color(0, 0, 18))
+ .y_minor_grid_color(svg_color(0, 0, 17))
+ .y_major_tick_color(svg_color(0, 0, 16))
+ .y_major_grid_color(svg_color(0, 0, 15))
+// .y_label_color(svg_color(0, 0, 14))
+ .y_axis_color(svg_color(0, 0, 13))
+ .x_minor_tick_color(svg_color(0, 0, 12))
+ .x_minor_grid_color(svg_color(0, 0, 11))
+ .x_major_tick_color(svg_color(0, 0, 10))
+ .x_major_grid_color(svg_color(0, 0, 9))
+ .x_label_color(svg_color(0, 0, 8))
+ .x_axis_color(svg_color(0, 0, 7))
+ .title_color(svg_color(0, 0, 6))
+ .plot_background_color(svg_color(0, 0, 5))
+ .legend_border_color(svg_color(0, 0, 4))
+ .legend_background_color(svg_color(0, 0, 3))
+ .background_color(svg_color(0, 0, 2))
+ .background_border_color(svg_color(0, 0, 1));
+
+// BOOST_CHECK(my_plot.y_minor_tick_color() == svg_color(0, 0, 18));
+// BOOST_CHECK(my_plot.y_minor_grid_color() == svg_color(0, 0, 17));
+// BOOST_CHECK(my_plot.y_major_tick_color() == svg_color(0, 0, 16));
+// BOOST_CHECK(my_plot.y_major_grid_color() == svg_color(0, 0, 15));
+//// BOOST_CHECK(my_plot.y_label_color() == svg_color(0, 0, 14));
+// BOOST_CHECK(my_plot.y_axis_color() == svg_color(0, 0, 13));
+ BOOST_CHECK(my_plot.x_minor_tick_color() == svg_color(0, 0, 12));
+ BOOST_CHECK(my_plot.x_minor_grid_color() == svg_color(0, 0, 11));
+ BOOST_CHECK(my_plot.x_major_tick_color() == svg_color(0, 0, 10));
+ BOOST_CHECK(my_plot.x_major_grid_color() == svg_color(0, 0, 9));
+ BOOST_CHECK(my_plot.x_label_color() == svg_color(0, 0, 8));
+ BOOST_CHECK(my_plot.x_axis_color() == svg_color(0, 0, 7));
+ BOOST_CHECK(my_plot.title_color() == svg_color(0, 0, 6));
+ BOOST_CHECK(my_plot.plot_background_color() == svg_color(0, 0, 5));
+ BOOST_CHECK(my_plot.legend_border_color() == svg_color(0, 0, 4));
+ BOOST_CHECK(my_plot.legend_background_color() == svg_color(0, 0, 3));
+ BOOST_CHECK(my_plot.background_color() == svg_color(0, 0, 2));
+ BOOST_CHECK(my_plot.background_border_color() == svg_color(0, 0, 1));
 
 } // BOOST_AUTO_TEST_CASE( test1 )
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk