|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55237 - in sandbox/SOC/2007/visualization: boost/svg_plot boost/svg_plot/detail libs/svg_plot/doc/html libs/svg_plot/example
From: pbristow_at_[hidden]
Date: 2009-07-30 14:44:16
Author: pbristow
Date: 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
New Revision: 55237
URL: http://svn.boost.org/trac/boost/changeset/55237
Log:
Corrected (kludged) limit point styling, but still some x-axis label in tests are wrong if value labels above.
Text files modified:
sandbox/SOC/2007/visualization/boost/svg_plot/detail/axis_plot_frame.hpp | 34 ++
sandbox/SOC/2007/visualization/boost/svg_plot/show_1d_settings.hpp | 12
sandbox/SOC/2007/visualization/boost/svg_plot/show_2d_settings.hpp | 16
sandbox/SOC/2007/visualization/boost/svg_plot/svg_1d_plot.hpp | 14 +
sandbox/SOC/2007/visualization/boost/svg_plot/svg_2d_plot.hpp | 27 +
sandbox/SOC/2007/visualization/boost/svg_plot/svg_boxplot.hpp | 12
sandbox/SOC/2007/visualization/boost/svg_plot/svg_color.hpp | 1
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/index.html | 12
sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_x_grid.cpp | 2
sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_limit.cpp | 39 +-
sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_plot.cpp | 17
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_plot.cpp | 494 ++++++++++++++++++++++++++++-----------
12 files changed, 473 insertions(+), 207 deletions(-)
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/detail/axis_plot_frame.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/detail/axis_plot_frame.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/detail/axis_plot_frame.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -604,7 +604,7 @@
}
} // void draw_x_axis()
- void draw_x_label()
+ void draw_x_axis_label()
{ //! Draw the X-axis label text (for example, length),
//! and append any optional units (for example, km).
// X-label color default is set in constructor thus:
@@ -672,7 +672,7 @@
{ // horizontal X ticks value labels (default).
if (derived().x_ticks_.major_value_labels_side_ < 0)
{ // Move down to allow space for font size of tick value labels below X-axis.
- y += derived().x_value_label_info_.textstyle().font_size();
+ y += derived().x_value_label_info_.textstyle().font_size() ;
}
y += derived().x_label_info_.textstyle().font_size() * 1.3; // Allow for the X-axis label font and space.
// See also 1.3 factor drawing ticks.
@@ -682,18 +682,34 @@
std::cout << " Rotation of X label rotation" << derived().x_ticks_.label_rotation_ << "not yet implemented!" << std::endl;
}
}
+ else if (derived().x_ticks_.major_value_labels_side_ > 0)
+ { // Tick labels above, only ticks below, so just move down for height of label font.
+ y += derived().x_label_info_.textstyle().font_size() * 1.3; // Allow for the X-axis label font and space.
+ }
+ else
+ { // derived().x_ticks_.major_value_labels_side_ == 0
+ // So no change for labels.
+ y += derived().x_label_info_.textstyle().font_size() * 1.3; // Allow for the X-axis label font and space.
+ }
+
if (derived().x_ticks_.down_ticks_on_)
{ // Shift down for biggest of any ticks, and bit of space.
y += 1.1 * (std::max)(derived().x_ticks_.minor_tick_length_, derived().x_ticks_.major_tick_length_);
- // y += derived().x_ticks_.value_label_style_.font_size() * 1.; // Shift down to suit tick labels.
+ // y += derived().x_ticks_.value_label_style_.font_size() * 1.; // Shift down to suit tick labels?
}
}
+ else if (derived().x_ticks_.ticks_on_window_or_on_axis_ > 0)
+ { // = +1 means ticks are on top of plot window.
+ // Shift down from plot window bottom to suit X-axis label.
+ y += derived().x_label_info_.textstyle().font_size() * 1.7;
+ }
else if (derived().x_ticks_.ticks_on_window_or_on_axis_ == 0)
{ // Ticks are ON the X-axis line, so X label is just below the plot bottom.
- //y += derived().x_label_info_.textstyle().font_size() * 0.8; // Shift down to suit X labels.
+ // No space needed for ticks.
// Character starts at bottom of capital letter, so allow for descenders.
- y = derived().image.y_size() - derived().image_border_width(); // Place X Label just above the image bottom.
- y -= derived().image_border_.margin_;
+ //y = derived().image.y_size() - derived().image_border_width(); // Place X Label just above the image bottom.
+ //y -= derived().image_border_.margin_;
+ y += derived().x_label_info_.textstyle().font_size() * 1.7;
}
derived().image.g(PLOT_X_LABEL).push_back(new text_element(
@@ -704,7 +720,7 @@
derived().x_label_info_.textstyle(),
center_align, horizontal)
);
- } // void draw_x_label()
+ } // void draw_x_axis_label()
void adjust_limits(double& x, double& y)
{ //! If value of a data point reaches limit of max, min, infinity,
@@ -3961,8 +3977,9 @@
template <class Derived>
Derived& axis_plot_frame<Derived>::limit_color(const svg_color& col)
{ //! Set the color for 'at limit' point stroke color.
- //derived().plot_window_border_.stroke_ = col;
+ // Need to set the series
derived().image.g(detail::PLOT_LIMIT_POINTS).style().stroke_color(col);
+ // derived().serieses_[0].limit_point_color(col); // Would require to add some data first!
return derived();
}
@@ -3977,6 +3994,7 @@
{ //! Set the color for 'at limit' point fill color.
derived().image.g(detail::PLOT_LIMIT_POINTS).style().fill_on(true);
derived().image.g(detail::PLOT_LIMIT_POINTS).style().fill_color(col);
+ //derived().serieses_[0].limit_point_style_.fill_color(col);
return derived();
}
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/show_1d_settings.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/show_1d_settings.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/show_1d_settings.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -189,7 +189,7 @@
cout << "copyright_date " << plot.copyright_date() << endl;
cout << "copyright_holder " << plot.copyright_holder() << endl;
cout << "description "<< plot.description() << endl;
- cout << "document_title " << plot.document_title() << endl;
+ cout << "document_title \"" << plot.document_title() << '"' << endl;
//cout << plot.draw_bezier_lines() << endl;
cout << "image_x_size " << plot.image_x_size() << endl;
cout << "image_y_size " << plot.image_y_size() << endl;
@@ -203,7 +203,7 @@
cout << "legend_background_color " << plot.legend_background_color() << endl;
cout << "legend_border_color " << plot.legend_border_color() << endl;
cout << "legend_color " << plot.legend_color() << endl;
- cout << "legend_title " << plot.legend_title() << endl;
+ cout << "legend_title \"" << plot.legend_title() << '"' << endl;
cout << "legend_title_font_size " << plot.legend_title_font_size() << endl;
// Not implemented yet.
//cout << "legend_font_weight " << plot.legend_font_weight() << endl;
@@ -249,9 +249,9 @@
cout << "x_plusminus_color " << plot.x_plusminus_color() << endl;
cout << "x_df_on " << plot.x_df_on() << endl;
cout << "x_df_color " << plot.x_df_color() << endl;
- cout << "x_prefix " << plot.x_prefix() << endl;
- cout << "x_separator " << plot.x_separator() << endl;
- cout << "x_suffix " << plot.x_suffix() << endl;
+ cout << "x_prefix \"" << plot.x_prefix() << '"' << endl;
+ cout << "x_separator \"" << plot.x_separator() << '"' << endl;
+ cout << "x_suffix \"" << plot.x_suffix() << '"' << endl;
// Not applicable to 1D
//cout << "y_value_precision " << plot.y_value_precision() << endl;
@@ -265,7 +265,7 @@
cout << "x_values_color " << plot.x_values_color() << endl;
cout << "x_axis_width " << plot.x_axis_width() << endl;
cout << "x_label_on " << plot.x_label_on() << endl;
- cout << "x_label " << plot.x_label() << endl;
+ cout << "x_label \"" << plot.x_label() << '"' << endl;
cout << "x_label_color " << plot.x_label_color() << endl;
cout << "x_label_font_family " << plot.x_label_font_family() << endl;
cout << "x_label_font_size " << plot.x_label_font_size() << endl;
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/show_2d_settings.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/show_2d_settings.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/show_2d_settings.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -138,8 +138,8 @@
cout << "coord_precision " << plot.coord_precision() << endl;
cout << "copyright_date " << plot.copyright_date() << endl;
cout << "copyright_holder " << plot.copyright_holder() << endl;
- cout << "description "<< plot.description() << endl;
- cout << "document_title " << plot.document_title() << endl;
+ cout << "description " << plot.description() << endl;
+ cout << "document_title " << '"' << plot.document_title() << '"' << endl;
//cout << plot.draw_bezier_lines() << endl;
cout << "image_x_size " << plot.image_x_size() << endl;
cout << "image_y_size " << plot.image_y_size() << endl;
@@ -153,7 +153,7 @@
cout << "legend_background_color " << plot.legend_background_color() << endl;
cout << "legend_border_color " << plot.legend_border_color() << endl;
cout << "legend_color " << plot.legend_color() << endl;
- cout << "legend_title " << plot.legend_title() << endl;
+ cout << "legend_title " << '"' << plot.legend_title() << '"' << endl;
cout << "legend_title_font_size " << plot.legend_title_font_size() << endl;
cout << "legend_font_weight " << plot.legend_font_weight() << endl;
// Not useful at present, so not longer implemented.
@@ -216,7 +216,7 @@
cout << "x_values_color " << plot.x_values_color() << endl;
cout << "x_axis_width " << plot.x_axis_width() << endl;
cout << "x_label_on " << plot.x_label_on() << endl;
- cout << "x_label " << plot.x_label() << endl;
+ cout << "x_label " << '"' << plot.x_label() << '"' << endl;
cout << "x_label_color " << plot.x_label_color() << endl;
cout << "x_label_font_family " << plot.x_label_font_family() << endl;
cout << "x_label_font_size " << plot.x_label_font_size() << endl;
@@ -256,7 +256,7 @@
cout << "x_separator " << plot.x_separator() << endl;
cout << "x_suffix " << plot.x_suffix() << endl;
cout << "xy_values_on " << plot.xy_values_on() << endl;
- cout << "y_label_on " << plot.y_label_on() << endl;
+ cout << "y_label_on " << '"' << plot.y_label_on() << '"' << endl;
cout << "y_label_axis " << plot.y_label_axis() << endl;
cout << "y_axis_color " << plot.y_axis_color() << endl;
cout << "y_axis_label_color " << plot.y_axis_label_color() << endl;
@@ -301,9 +301,9 @@
cout << "y_plusminus_color " << plot.y_plusminus_color() << endl;
cout << "y_df_on " << plot.y_df_on() << endl;
cout << "y_df_color " << plot.y_df_color() << endl;
- cout << "y_prefix " << plot.y_prefix() << endl;
- cout << "y_separator " << plot.y_separator() << endl;
- cout << "y_suffix " << plot.y_suffix() << endl;
+ cout << "y_prefix \"" << plot.y_prefix() << '"' << endl;
+ cout << "y_separator \"" << plot.y_separator() << '"' << endl;
+ cout << "y_suffix \"" << plot.y_suffix() << '"' << endl;
cout << "data lines width " << plot.data_lines_width() << endl;
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg_1d_plot.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_1d_plot.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg_1d_plot.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -107,6 +107,7 @@
svg_1d_plot_series& line_width(double wid_); //!< Set line width for plot point marker(s) (chainable).
svg_1d_plot_series& line_on(bool on_); //!< Set true for line joining points for plot point marker(s) (chainable).
svg_1d_plot_series& bezier_on(bool on_); //!< Set true for curve joining points for plot point marker(s) (chainable).
+ svg_1d_plot_series& limit_point_color(const svg_color& col_); //!< Set stroke color for 'at limits' point marker.
// Get functions for the plot series.
svg_color fill_color(); //!< Get fill color for plot point marker(s).
@@ -242,6 +243,13 @@
return series_limits_.size();
}
+svg_1d_plot_series& svg_1d_plot_series::limit_point_color(const svg_color& col_)
+{ //! Set of stroke color of 'at limits' points.
+ limit_point_style_.stroke_color_ = col_;
+ return *this; // Make chainable.
+}
+
+
// End Definitions of svg_plot_series Public Member Functions.
class svg_1d_plot : public detail::axis_plot_frame<svg_1d_plot>
@@ -703,7 +711,7 @@
}
if(x_axis_.label_on_)
{
- draw_x_label();
+ draw_x_axis_label();
}
double y(0.); // All 1-D points are plotted are on the horizontal X axis (y = 0) axis.
transform_y(y);
@@ -780,6 +788,10 @@
}
// else is inside plot window, so draw a limit point marker.
// draw_plot_point(x, y, g_ptr, plot_point_style(lightgray, whitesmoke, s, cone)); default.
+ serieses_[i].limit_point_style_.stroke_color_ = image.g(detail::PLOT_LIMIT_POINTS).style().stroke_color();
+ serieses_[i].limit_point_style_.fill_color_ = image.g(detail::PLOT_LIMIT_POINTS).style().fill_color();
+ // This is a kludge. limit_point_style_ should probably be common to all data series.
+
draw_plot_point(x, y, g_ptr, serieses_[i].limit_point_style_, 0, 0);
}
} // for j
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg_2d_plot.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_2d_plot.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg_2d_plot.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -1105,7 +1105,7 @@
}
} // draw_y_axis
- void draw_y_label()
+ void draw_y_axis_label()
{ //! Draw a vertical Y-axis label, and optional y units.
// Y-label color is set in constructor thus:
// image.g(detail::PLOT_Y_LABEL).style().stroke_color(black);
@@ -1124,7 +1124,7 @@
double y = (plot_bottom_ + plot_top_) / 2.; // center on the plot window.
if (y_ticks_.ticks_on_window_or_on_axis_ < 0) // -1 means left
{ // Ticks value labels left of plot window.
- if (y_ticks_.major_value_labels_side_ < 0) // -1 means left
+ if (y_ticks_.major_value_labels_side_ < 0) // -1 means value label to left of Y-axis.
{ // tick values labels are to left of Y axis.
// Shift right to allow for any tick value labels.
if ((y_ticks_.label_rotation_ == downward) || (y_ticks_.label_rotation_ == upward))
@@ -1185,12 +1185,20 @@
x -= y_ticks_.label_max_space_; // Move left for the longest tick value label. (Might be zero?)
//x -= y_label_info_.textstyle().font_size() * 1.0; // Shift left to suit Y labels.
x -= 0.6 * (y_label_info_.textstyle().font_size() + y_value_label_info_.textstyle().font_size()); // best compromise?
- }
+ }
else
{
cout << " Rotation of Y label rotation" << y_ticks_.label_rotation_ << "not yet implemented" << endl;
}
}
+ else if (y_ticks_.major_value_labels_side_ > 0)
+ { // +1 means Y Tick labels to right of Y-axis.
+ x -= y_label_info_.textstyle().font_size() * 1.7; // Move left from Y-axis.
+ }
+ else
+ { // y_ticks_.y_major_value_labels_side_ == 0 means no tick value labels.
+ x -= y_label_info_.textstyle().font_size() * 1.7; // Move left from Y-axis.
+ }
if (y_ticks_.left_ticks_on_)
{ // Shift right for biggest of any leftward ticks.
x += (std::max)(y_ticks_.minor_tick_length_, y_ticks_.major_tick_length_);
@@ -1222,7 +1230,7 @@
upward) // Y label must be drawn vertically.
);
- } // draw_y_label
+ } // draw_y_axis_label
void draw_y_major_tick(double value, path_element& tick_path, path_element& grid_path)
{ //! Draw a Y axis major tick, tick value labels & grids.
@@ -1815,7 +1823,7 @@
//else X axis includes zero, so x is OK.
}
else
- { // x Not NaN
+ { // x Not NaN (so is inf or max)
transform_x(x);
if (x < plot_left_)
{
@@ -1843,7 +1851,7 @@
//else y axis includes zero, so y is OK.
}
else
- { // y Not NaN.
+ { // y Not NaN (so is inf or max).
transform_y(y);
if (y < plot_top_)
{
@@ -1856,6 +1864,9 @@
// else is inside plot window, so draw a limit point marker.
// draw_plot_point(x, y, g_ptr, plot_point_style(lightgray, whitesmoke, s, cone)); default.
}
+ serieses_[i].limit_point_style_.stroke_color_ = image.g(detail::PLOT_LIMIT_POINTS).style().stroke_color();
+ serieses_[i].limit_point_style_.fill_color_ = image.g(detail::PLOT_LIMIT_POINTS).style().fill_color();
+ // This is a kludge. limit_point_style_ should probably be common to all data series.
draw_plot_point(x, y, g_ptr, serieses_[i].limit_point_style_, unc(0.), unc(0.)); // No uncertainty info for values at limit infinity & NaN.
@@ -2060,11 +2071,11 @@
}
if(x_axis_.label_on_)
{
- draw_x_label();
+ draw_x_axis_label();
}
if(y_axis_.label_on_)
{
- draw_y_label();
+ draw_y_axis_label();
}
draw_plot_lines(); // Draw lines between points.
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg_boxplot.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_boxplot.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg_boxplot.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -1557,7 +1557,7 @@
}
} // void draw_y_minor_tick
- void draw_x_label()
+ void draw_x_axis_label()
{ //! Draw an axis label (and optional units) for example "length (km)".
// X-label color is set in constructor thus:
// image.g(detail::PLOT_X_LABEL).style().stroke_color(black);
@@ -1591,9 +1591,9 @@
x_label_info_.textstyle(),
center_align, horizontal)
);
- } // void draw_x_label()
+ } // void draw_x_axis_label()
- void draw_y_label()
+ void draw_y_axis_label()
{ //! Draw vertical y_axis label, and optional y units.
// Y-label color is set in constructor thus:
// image.g(boxplot::Y_LABEL).style().fill_color(black);
@@ -1627,7 +1627,7 @@
center_align, // One might want it to left or right_align?
upward)); // Y label must be drawn vertically.
- } // draw_y_label
+ } // draw_y_axis_label
void draw_box(double q1, double q3, // Quartiles
double x, double width,
@@ -1816,11 +1816,11 @@
if(x_axis_.label_on_)
{
- draw_x_label();
+ draw_x_axis_label();
}
if(y_axis_.label_on_)
{
- draw_y_label();
+ draw_y_axis_label();
}
for(unsigned int i=0; i < series.size(); ++i)
{ // Draw box'n'whiskers for each data series.
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg_color.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_color.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg_color.hpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -138,6 +138,7 @@
constant_to_rgb(col, r_, g_, b_);
}
}
+
void write(std::ostream& os)
{ //! Write to ostream a color in svg format.
//! \details Usage: my_color.write(cout); Outputs: rgb(127,255,212)
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/index.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/index.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/index.html 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -48,6 +48,7 @@
<dt><span class="section"><a href="plotting_graphs_in_svg_format/howtouse.html"> How To Use This
Documentation</a></span></dt>
<dt><span class="section"> Colors</span></dt>
+<dt><span class="section"> Fonts</span></dt>
<dt><span class="section"> 1D Tutorials</span></dt>
<dd><dl>
<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/1d_vector_tutorial.html">
@@ -103,10 +104,11 @@
<dt><span class="section"> SVG tutorial</span></dt>
<dt><span class="section"><a href="plotting_graphs_in_svg_format/behavior_limits.html"> Showing
data values at Numerical Limits</a></span></dt>
-<dt><span class="section">Reference</span></dt>
+<dt><span class="section">Reference</span></dt>
<dd><dl>
<dt><span class="section">Header <boost/svg_plot/detail/auto_axes.hpp></span></dt>
<dt><span class="section">Header <boost/svg_plot/detail/axis_plot_frame.hpp></span></dt>
+<dt><span class="section">Header <boost/svg_plot/detail/FP_compare.hpp></span></dt>
<dt><span class="section">Header <boost/svg_plot/detail/functors.hpp></span></dt>
<dt><span class="section">Header <boost/svg_plot/detail/numeric_limits_handling.hpp></span></dt>
<dt><span class="section">Header <boost/svg_plot/detail/pair.hpp></span></dt>
@@ -130,9 +132,9 @@
& Rationale</a></span></dt>
<dt><span class="section"> To Do List</span></dt>
<dt><span class="section"> Acknowledgements</span></dt>
-<dt><span class="section">Class Index</span></dt>
-<dt><span class="section">Function Index</span></dt>
-<dt><span class="section">Index</span></dt>
+<dt><span class="section">Class Index</span></dt>
+<dt><span class="section">Function Index</span></dt>
+<dt><span class="section">Index</span></dt>
</dl>
</div>
<div class="important"><table border="0" summary="Important">
@@ -159,7 +161,7 @@
</table></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: July 21, 2009 at 17:35:17 GMT</small></p></td>
+<td align="left"><p><small>Last revised: July 28, 2009 at 14:15:07 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_x_grid.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_x_grid.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_x_grid.cpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -41,7 +41,7 @@
.x_minor_grid_on(true);
// Styling the grid lines.
- my_plot.x_major_grid_color(black)
+ my_plot.x_major_grid_color(blue)
.x_minor_grid_color(lightgray);
// Write to plot.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_limit.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_limit.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_limit.cpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -1,17 +1,20 @@
/*! \file 2d_limit.cpp
- \brief Simple 2D plot show values at limit.
+ \brief Simple 2D plot show 1/x function values at limit.
- \author Jacob Voytko
+ \author Jacob Voytko and Paul A. Bristow
- \date 2007
+ \date Jul 2009
*/
// Copyright Jacob Voytko 2007
+// Copyright Paul A. Bristow 2009
// Distributed under the Boost Software License, Version 1.0.
// For more information, see http://www.boost.org
#include <boost/svg_plot/svg_2d_plot.hpp>
+
+
#include <map>
#include <limits>
@@ -28,7 +31,6 @@
map<double, double> data1;
double inter = 0.5;
-
for(double i = -10; i <= 10.; i += inter)
{
data1[i] = f(i);
@@ -36,23 +38,21 @@
svg_2d_plot my_plot;
- // Size/scale settings.
+ // Image size & ranges settings.
my_plot.size(500, 350)
.x_range(-10.5, 10.5)
.y_range(-1.1, 1.1);
-
// Text settings.
my_plot.title("Plot of 1 / x")
.x_label("X Axis Units")
- .y_major_labels_side(true)
- .y_major_grid_on(true);
-
- // Commands.
- my_plot.plot_window_on(true)
- .x_major_labels_side(true);
+ .y_label("F(x)")
+ .y_major_labels_side(1) // Top
+ .y_major_grid_on(true)
+ .plot_window_on(true)
+ .x_major_labels_side(1); // Top
- //X axis settings.
+ // X-axis settings.
my_plot.x_major_interval(2)
.x_major_tick_length(14)
.x_major_tick_width(1)
@@ -60,19 +60,22 @@
.x_minor_tick_width(1)
.x_num_minor_ticks(3)
- //Y axis settings.
- .y_major_interval(25)
- .y_num_minor_ticks(5);
+ // Y-axis settings.
+ .y_major_interval(20)
+ .y_num_minor_ticks(4);
- //legend settings
+ // Legend settings
my_plot.legend_title_font_size(15);
- my_plot.limit_color(red).limit_fill_color(green); // But no limit values show??
+ my_plot.limit_color(red).limit_fill_color(pink); // Limit value at x = 0 is +infinity.
my_plot.plot(data1, "1 / x").shape(square).size (5).line_on(false);
my_plot.write("./2d_limit.svg");
+ cout << "" << my_plot.limit_color() << endl;
+ cout << "" << my_plot.limit_fill_color() << endl;
+
return 0;
} // int main()
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_plot.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_plot.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_plot.cpp 2009-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -87,7 +87,7 @@
my_data.push_back(6.5); // [5]
/*`Also included is an 'at limit' value that could confuse autoscaling.
- Obviously we do not want the plot range to include infinity.*/
+ Obviously, we do *not* want the plot range to include infinity.*/
my_data.push_back(numeric_limits<double>::infinity()); // [6]
try
@@ -100,8 +100,13 @@
using boost::svg::detail::operator<<; // For displaying std::pair.
svg_1d_plot my_1d_plot; // Construct a plot with all the default constructor values.
my_1d_plot.x_autoscale(my_data); // Compute autoscale values for the plot.
+ my_1d_plot.limit_color(blue).limit_fill_color(green); // Add limit value styling.
+
+ cout << "my_1d_plot.limit_color() " << my_1d_plot.limit_color() << endl;
+ cout << "my_1d_plot.limit_fill_color() " << my_1d_plot.limit_fill_color() << endl;
+
my_1d_plot.plot(my_data, "Default 1D"); // Add the one data series, and give it a title.
- my_1d_plot.write("auto_1d_plot.svg"); // Write the plot to file.
+ my_1d_plot.write("auto_1d_plot_1.svg"); // Write the plot to file.
/*`It may be useful to display that range chosen by autoscaling. */
cout << "x_range() " << my_1d_plot.x_range() << endl; // x_range()
@@ -197,7 +202,7 @@
// scale_axis does finding min and max.
scale_axis(my_data.begin(), my_data.end(),
&axis_min_value, &axis_max_value, &axis_tick_increment, &axis_ticks,
- true, false, tol100eps, 6); // Display range.
+ true, 3., false, tol100eps, 6); // Display range.
cout << "scaled min " << axis_min_value << ", max = " << axis_max_value
<< ", increment " << axis_tick_increment << ", axis ticks " << axis_ticks << endl;
@@ -212,14 +217,14 @@
// Scaling using whole STL vector container,
// scale_axis does finding min and max.
scale_axis(my_data, &axis_min_value, &axis_max_value, &axis_tick_increment, &axis_ticks,
- true, false, tol100eps, 6); // Display range.
+ true, 3., false, tol100eps, 6); // Display range.
cout << "scaled min " << axis_min_value << ", max = " << axis_max_value
<< ", increment " << axis_tick_increment << ", axis ticks " << axis_ticks << endl;
// Scaling using whole STL set container,
// scale_axis does finding min and max.
scale_axis(my_set, &axis_min_value, &axis_max_value, &axis_tick_increment, &axis_ticks,
- true, false, tol100eps, 6); // Display range.
+ true, 3., false, tol100eps, 6); // Display range.
cout << "scaled min " << axis_min_value << ", max = " << axis_max_value
<< ", increment " << axis_tick_increment << ", axis ticks " << axis_ticks << endl;
@@ -315,7 +320,7 @@
my_1d_plot.plot(&my_data[1], &my_data[4], "Auto 1D"); // Add part (1,2 3 but *not* 4) of the one data series.
//my_1d_plot.plot(&my_set[1], &my_set[4], "Auto 1D"); // operator[] is not defined for set container!
- my_1d_plot.write("auto_1d_plot.svg"); // Write the plot to file.
+ my_1d_plot.write("auto_1d_plot_2.svg"); // Write the plot to file.
using boost::svg::detail::operator<<;
cout << "x_range() " << my_1d_plot.x_range() << endl; // x_range() 1, 5.5
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-07-28 13:56:15 EDT (Tue, 28 Jul 2009)
@@ -255,13 +255,13 @@
// Demonstrate/test plots with various range of x and y, some *not* including zero.
- plot("Plot of Mathematical Functions", "./demo_2d_plot_XYPM.svg", "X-axis", -10., +10., "Y-axis", -10., +10.); // Both X & Y include zero.
- plot("Plot of Mathematical Functions", "./demo_2d_plot_XP.svg", "X-axis", +1., +10., "Y-axis", -10., 10.); // X all > 0
- plot("Plot of Mathematical Functions", "./demo_2d_plot_XN.svg", "X-axis", -10., -1., "Y-axis", -10., 10.); // x all < 0
- plot("Plot of Mathematical Functions", "./demo_2d_plot_YP.svg", "X-axis", -1., +10., "Y-axis", +1., +10.); // Y all > 0
- plot("Plot of Mathematical Functions", "./demo_2d_plot_YN.svg", "X-axis", -1., +10., "Y-axis", -10., -1.); // y all < 0
- plot("Plot of Mathematical Functions", "./demo_2d_plot_XYP.svg", "X-axis", +1., +10., "Y-axis", +1., +10.); // x & y all > 0
- plot("Plot of Mathematical Functions", "./demo_2d_plot_XYN.svg", "X-axis", -10., -1., "Y-axis", -10., -1.); // x & y all < 0
+ plot("Plot of Mathematical Functions XYPM", "./demo_2d_plot_XYPM.svg", "X-axis", -10., +10., "Y-axis", -10., +10.); // Both X & Y include zero.
+ plot("Plot of Mathematical Functions XP", "./demo_2d_plot_XP.svg", "X-axis", +1., +10., "Y-axis", -10., 10.); // X all > 0
+ plot("Plot of Mathematical Functions XN", "./demo_2d_plot_XN.svg", "X-axis", -10., -1., "Y-axis", -10., 10.); // x all < 0
+ plot("Plot of Mathematical Functions YP", "./demo_2d_plot_YP.svg", "X-axis", -1., +10., "Y-axis", +1., +10.); // Y all > 0
+ plot("Plot of Mathematical Functions YN", "./demo_2d_plot_YN.svg", "X-axis", -1., +10., "Y-axis", -10., -1.); // y all < 0
+ plot("Plot of Mathematical Functions XYP", "./demo_2d_plot_XYP.svg", "X-axis", +1., +10., "Y-axis", +1., +10.); // x & y all > 0
+ plot("Plot of Mathematical Functions XYN", "./demo_2d_plot_XYN.svg", "X-axis", -10., -1., "Y-axis", -10., -1.); // x & y all < 0
plot("Title with Unicode <sup>-α </sup> Ω Φ √ ∞ ζ ±", "./demo_2d_plot_XYPM.svg", "X-axis ±Ω", -10., +10., "Y-axis ∞√", -10., +10.); // Both X & Y include zero.
}
catch (const std::exception& e)
@@ -276,17 +276,14 @@
Output :
-Compiling...
-demo_2d_plot.cpp
-Linking...
-Embedding manifest...
-Autorun "j:\Cpp\SVG\debug\demo_2d_plot.exe"
+
+Autorun "j:\Cpp\SVG\Debug\demo_2d_plot.exe"
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XYPM.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -295,17 +292,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -315,12 +316,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -332,10 +333,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min -10
x_autoscale false
@@ -344,8 +352,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -378,10 +386,18 @@
x_ticks_on_window_or_axis none
y_axis_position y_axis_position intersects X axis (X range includes zero)
x_axis_position x_axis_position intersects Y axis (Y range includes zero)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -417,13 +433,21 @@
y_ticks_on_window_or_axis none
y_max 10
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XP.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -432,17 +456,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -452,12 +480,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 92, 513
-plot_window_x_left 92
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 88, 524.1
+plot_window_x_left 88
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -469,10 +497,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min 1
x_autoscale false
@@ -481,8 +516,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -515,10 +550,18 @@
x_ticks_on_window_or_axis none
y_axis_position y_axis_position left (all X values < 0)
x_axis_position x_axis_position intersects Y axis (Y range includes zero)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -554,13 +597,21 @@
y_ticks_on_window_or_axis left
y_max 10
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XN.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -569,17 +620,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -589,12 +644,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -606,10 +661,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max -1
x_min -10
x_autoscale false
@@ -618,8 +680,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -652,10 +714,18 @@
x_ticks_on_window_or_axis none
y_axis_position y_axis_position right (all X values > 0)
x_axis_position x_axis_position intersects Y axis (Y range includes zero)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -691,13 +761,21 @@
y_ticks_on_window_or_axis right
y_max 10
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_YP.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -706,17 +784,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -726,12 +808,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 430
-plot_window_y_top 62
-plot_window_y_bottom 430.4
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 436
+plot_window_y_top 58
+plot_window_y_bottom 436
title_on true
title ""
title_color RGB(255,0,0)
@@ -743,10 +825,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min -1
x_autoscale false
@@ -755,8 +844,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -789,10 +878,18 @@
x_ticks_on_window_or_axis bottom
y_axis_position y_axis_position intersects X axis (X range includes zero)
x_axis_position x_axis_position bottom (all Y values > 0)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -828,13 +925,21 @@
y_ticks_on_window_or_axis none
y_max 10
y_min 1
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_YN.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -843,17 +948,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -863,12 +972,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -880,10 +989,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min -1
x_autoscale false
@@ -892,8 +1008,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -926,10 +1042,18 @@
x_ticks_on_window_or_axis top
y_axis_position y_axis_position intersects X axis (X range includes zero)
x_axis_position x_axis_position top (all Y values < 0)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -965,13 +1089,21 @@
y_ticks_on_window_or_axis none
y_max -1
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XYP.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -980,17 +1112,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -1000,12 +1136,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 83.6, 513
-plot_window_x_left 83.6
-plot_window_x_right 512.6
-plot_window_y 62, 430
-plot_window_y_top 62
-plot_window_y_bottom 430.4
+plot_window_x 79.6, 524.1
+plot_window_x_left 79.6
+plot_window_x_right 524.1
+plot_window_y 58, 436
+plot_window_y_top 58
+plot_window_y_bottom 436
title_on true
title ""
title_color RGB(255,0,0)
@@ -1017,10 +1153,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min 1
x_autoscale false
@@ -1029,8 +1172,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -1063,10 +1206,18 @@
x_ticks_on_window_or_axis bottom
y_axis_position y_axis_position left (all X values < 0)
x_axis_position x_axis_position bottom (all Y values > 0)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -1102,13 +1253,21 @@
y_ticks_on_window_or_axis left
y_max 10
y_min 1
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XYN.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -1117,17 +1276,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -1137,12 +1300,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -1154,10 +1317,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max -1
x_min -10
x_autoscale false
@@ -1166,8 +1336,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis
@@ -1200,10 +1370,18 @@
x_ticks_on_window_or_axis top
y_axis_position y_axis_position right (all X values > 0)
x_axis_position x_axis_position top (all Y values < 0)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -1239,13 +1417,21 @@
y_ticks_on_window_or_axis right
y_max -1
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ./demo_2d_plot_XYPM.svg
axes_on true
background_border_width 2
background_border_color RGB(255,255,0)
background_color RGB(248,248,255)
-image_border_margin() 10
+image_border_margin() 3
image_border_width() 2
coord_precision 3
copyright_date
@@ -1254,17 +1440,21 @@
document_title
image_x_size 700
image_y_size 500
+image_size 700, 500
+image_filename
legend_on true
legend_place 2
-legend_top_left 527, 62, legend_bottom_right 688, 206
+legend_top_left 538.1, 58, legend_bottom_right 692, 202
legend_background_color RGB(255,255,224)
legend_border_color RGB(255,255,0)
legend_color blank
legend_title
legend_title_font_size 16
legend_font_weight
-legend_width 161.4
+legend_width 153.9
legend_lines true
+limit points stroke color RGB(128,128,128)
+limit points fill color blank
license_on false
license_reproduction permits
license_distribution permits
@@ -1274,12 +1464,12 @@
plot_border_color RGB(0,128,0)
plot_border_width 1
plot_window_on true
-plot_window_x 50, 513
-plot_window_x_left 50
-plot_window_x_right 512.6
-plot_window_y 62, 450
-plot_window_y_top 62
-plot_window_y_bottom 450
+plot_window_x 46, 524.1
+plot_window_x_left 46
+plot_window_x_right 524.1
+plot_window_y 58, 454
+plot_window_y_top 58
+plot_window_y_bottom 454
title_on true
title ""
title_color RGB(255,0,0)
@@ -1291,10 +1481,17 @@
title_font_stretch
title_font_style
title_font_weight
-x_value_precision 2
-x_value_ioflags 1200 IOS format flags (0x1200) dec, scientific.
-y_value_precision 1
-y_value_ioflags 2200 IOS format flags (0x2200) dec, fixed.
+x_values_on false
+x_values_font_size 12
+x_values_font_family
+x_values_precision 3
+x_values_ioflags 200 IOS format flags (0x1200) dec, scientific.
+y_values_precision 3
+y_values_font_size() 1
+y_values_ioflags 200 IOS format flags (0x200) dec.
+y_values_color blank
+y_values_font_family()
+y_values_font_size() 12
x_max 10
x_min -10
x_autoscale false
@@ -1303,8 +1500,8 @@
x_autoscale_check_limits true
x_axis_on true
x_axis_color() RGB(0,0,0)
-x_axis_label_color RGB(0,0,0)
-x_axis_value_color RGB(0,0,0)
+x_axis_label_color blank
+x_values_color blank
x_axis_width 1
x_label_on true
x_label X-axis ±Ω
@@ -1337,10 +1534,18 @@
x_ticks_on_window_or_axis none
y_axis_position y_axis_position intersects X axis (X range includes zero)
x_axis_position x_axis_position intersects Y axis (Y range includes zero)
+x_plusminus_on false
+x_plusminus_color RGB(0,0,255)
+x_df_on false
+x_df_color RGB(0,0,255)
+x_prefix
+x_separator
+x_suffix
+xy_values_on false
y_label_on true
y_label_axis Y-axis ∞√
y_axis_color RGB(0,0,0)
-y_axis_label_color RGB(0,0,0)
+y_axis_label_color blank
y_axis_on true
axes_on true
y_axis_value_color RGB(0,0,0)
@@ -1376,7 +1581,16 @@
y_ticks_on_window_or_axis none
y_max 10
y_min -10
+y_values_on false
+y_plusminus_on false
+y_plusminus_color RGB(0,0,255)
+y_df_on false
+y_df_color RGB(0,0,255)
+y_prefix
+y_separator
+y_suffix
data lines width 2
+Build Time 0:05
*/
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