Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2008-03-04 07:19:20


Author: pbristow
Date: 2008-03-04 07:19:20 EST (Tue, 04 Mar 2008)
New Revision: 43490
URL: http://svn.boost.org/trac/boost/changeset/43490

Log:
Changed calls to area-fill to suit change to svg_plot but still not desired result.
Text files modified:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp | 11 +++++------
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp | 3 +--
   2 files changed, 6 insertions(+), 8 deletions(-)

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp 2008-03-04 07:19:20 EST (Tue, 04 Mar 2008)
@@ -1,14 +1,13 @@
 // (C) Copyright John Maddock 2008.
+// Copyright Paul A. Bristow 2008
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #ifdef _MSC_VER
-//# pragma warning (disable : 4800) // forcing value to bool 'true' or 'false' (performance warning)
 # pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored
 # pragma warning (disable : 4503) // decorated name length exceeded, name was truncated
 # pragma warning (disable : 4512) // assignment operator could not be generated
-//# pragma warning (disable : 4172) // returning address of local variable or temporary TODO find cause of these.
 # pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type
 # pragma warning (disable : 4127) // conditional expression is constant
 #endif
@@ -251,8 +250,8 @@
                .line_on(true)
                .line_color(colors[color_index])
                .line_width(1.)
- //.bezier_on(true) // Can't cope with badly behaved like uniform & triangular.
                .shape(none);
+ //.bezier_on(true) // Bezier can't cope with badly behaved like uniform & triangular.
             ++color_index;
             color_index = color_index % (sizeof(colors)/sizeof(colors[0]));
          }
@@ -291,11 +290,11 @@
             s.line_on(true)
                .line_color(colors[color_index])
                .line_width(1.)
- //.bezier_on(true) // Can't cope with badly behaved like uniform & triangular.
- .shape(none);
- s.line_style_.area_fill(colors[color_index]);
+ .shape(none)
+ .area_fill(colors[color_index]);
             ++color_index;
             color_index = color_index % (sizeof(colors)/sizeof(colors[0]));
+ std::cout << s.line_style() << std::endl; // operator << might be helpful!
          }
       }
       plot.write(file);

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp 2008-03-04 07:19:20 EST (Tue, 04 Mar 2008)
@@ -4,11 +4,10 @@
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #ifdef _MSC_VER
-//# pragma warning (disable : 4800) // forcing value to bool 'true' or 'false' (performance warning)
+# pragma warning (disable : 4127) // conditional expression is constant
 # pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored
 # pragma warning (disable : 4503) // decorated name length exceeded, name was truncated
 # pragma warning (disable : 4512) // assignment operator could not be generated
-//# pragma warning (disable : 4172) // returning address of local variable or temporary TODO find cause of these.
 # pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type
 #endif
 


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