|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51473 - in sandbox/SOC/2007/visualization: boost/svg_plot boost/svg_plot/detail libs/svg_plot/doc libs/svg_plot/doc/html libs/svg_plot/doc/html/svg_plot libs/svg_plot/doc/html/svg_plot/interface libs/svg_plot/doc/html/svg_plot/plot_defaults libs/svg_plot/doc/html/svg_plot/svg_boxplot_tutorial libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple libs/svg_plot/example libs/svg_plot/test
From: pbristow_at_[hidden]
Date: 2009-02-27 10:21:59
Author: pbristow
Date: 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
New Revision: 51473
URL: http://svn.boost.org/trac/boost/changeset/51473
Log:
Docs improved, fixed x y pairs on a line, and textstyle changed.
area fill and legend line color still wrong.
All links in docs still not correct.
Removed:
sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_simple.cpp
Text files modified:
sandbox/SOC/2007/visualization/boost/svg_plot/detail/axis_plot_frame.hpp | 161 ++++++++++++++++++++++-----------------
sandbox/SOC/2007/visualization/boost/svg_plot/detail/svg_tag.hpp | 122 +++++++++++++++++++++--------
sandbox/SOC/2007/visualization/boost/svg_plot/svg.hpp | 10 +
sandbox/SOC/2007/visualization/boost/svg_plot/svg_1d_plot.hpp | 82 ++++++++++---------
sandbox/SOC/2007/visualization/boost/svg_plot/svg_2d_plot.hpp | 8
sandbox/SOC/2007/visualization/boost/svg_plot/svg_boxplot.hpp | 12 +-
sandbox/SOC/2007/visualization/boost/svg_plot/svg_style.hpp | 9 +
sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_full_tutorial.qbk | 46 +++++-----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_simple_tutorial.qbk | 60 ++++----------
sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_special_tutorial.qbk | 30 ++----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_tutorial.qbk | 8 -
sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_vector_tutorial.qbk | 15 +-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_full_tutorial.qbk | 38 ++++----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_special_tutorial.qbk | 39 +++-----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/Jamfile.v2 | 17 ++-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/auto_1d_containers.qbk | 6
sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_autoscaling.qbk | 42 ++++-----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_containers.qbk | 23 ++++-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_values.qbk | 2
sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_autoscaling.qbk | 4
sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_values.qbk | 3
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/index.html | 124 ++++++++++++++++--------------
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/color.html | 12 +-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/howtouse.html | 2
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_1d_plot_interface.html | 18 ++--
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_2d_plot_interface.html | 20 ++--
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_boxplot_interface.html | 40 ++++----
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_interface.html | 10 +-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/1d_defaults.html | 2
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/2d_defaults.html | 2
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html | 14 +-
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_simple_code_example.html | 4
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_special.html | 8
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple.html | 15 +--
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/1d_special.html | 6
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/full_1d_layout.html | 2
sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/tutorial_code_1d_example.html | 4
sandbox/SOC/2007/visualization/libs/svg_plot/doc/svg_plot.qbk | 13 --
sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_full_layout.cpp | 1
sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_area_fill.cpp | 3
sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_y_grid.cpp | 5
sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_containers.cpp | 13 +-
sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_plot.cpp | 127 ++++++++++++++++++++++++++++---
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_autoscaling.cpp | 7
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_containers.cpp | 14 --
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_simple.cpp | 37 +++++++-
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_vector.cpp | 33 ++++---
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_simple.cpp | 18 +--
sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg_tspan.cpp | 9 +
sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_color_consistency.cpp | 46 +++++-----
sandbox/SOC/2007/visualization/libs/svg_plot/test/1d_tests.cpp | 46 +++++-----
51 files changed, 775 insertions(+), 617 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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -144,11 +144,11 @@
// Make space for title and X-axis labels.
if(derived().title_on_)
{ // Allow text_margin_ * font_size around text (pixels).
- y_bottom += derived().title_info_.style().font_size() * derived().text_margin_;
+ y_bottom += derived().title_info_.textstyle().font_size() * derived().text_margin_;
}
if(derived().x_axis_.label_on_)
{
- y_top -= derived().x_label_info_.style().font_size() * derived().text_margin_;
+ y_top -= derived().x_label_info_.textstyle().font_size() * derived().text_margin_;
}
}
else
@@ -229,11 +229,11 @@
{ // Allow a modest margin around text of title and X-axis labels, if in use.
if(derived().title_on_)
{
- y_up += derived().title_info_.style().font_size() * derived().text_margin_;
+ y_up += derived().title_info_.textstyle().font_size() * derived().text_margin_;
}
if(derived().x_ticks_.major_value_labels_side_ != 0)
{ // Value may be shown either side the major tick.
- y_down -= derived().x_label_info_.style().font_size() * derived().text_margin_;
+ y_down -= derived().x_label_info_.textstyle().font_size() * derived().text_margin_;
}
}
else
@@ -548,7 +548,7 @@
*/
derived().title_info_.x(derived().image.x_size() / 2.); // Center of image.
double y;
- y = derived().title_info_.style().font_size() * derived().text_margin_; // Leave a linespace above.
+ y = derived().title_info_.textstyle().font_size() * derived().text_margin_; // Leave a linespace above.
derived().title_info_.y(y);
derived().image.g(PLOT_TITLE).push_back(new text_element(derived().title_info_));
} // void draw_title()
@@ -570,7 +570,7 @@
// Work out the size the legend box needs to be to hold the
// header, markers, lines & text.
size_t num_series = derived().serieses_.size(); // How many data series.
- int font_size = derived().legend_header_.style().font_size();
+ int font_size = derived().legend_header_.textstyle().font_size();
int point_size = derived().serieses_[0].point_style_.size();
// Use height of whichever is the biggest of point marker and font.
double spacing = (std::max)(font_size, point_size);
@@ -744,7 +744,7 @@
// size_t num_points = derived().series.size();
//cout << derived().legend_box_.width() << ' ' << derived().legend_box_.margin() << endl;
- int font_size = derived().legend_header_.style().font_size();
+ int font_size = derived().legend_header_.textstyle().font_size();
int point_size = derived().serieses_[0].point_style_.size();
// Use whichever is the biggest of point marker and font.
double spacing = (std::max)(font_size, point_size);
@@ -819,7 +819,7 @@
legend_x_pos, // allow space for the marker.
legend_y_pos,
derived().serieses_[i].title_, // Text for this data series.
- derived().legend_header_.style(),
+ derived().legend_header_.textstyle(),
left_align));
legend_y_pos += 2 * spacing;
} // for
@@ -857,7 +857,7 @@
derived().plot_right_ + derived().plot_left_) / 2, // x coordinate - middle.
y, // Down from plot window.
label,
- derived().x_label_info_.style(),
+ derived().x_label_info_.textstyle(),
center_align, horizontal)
);
} // void draw_x_label()
@@ -1118,7 +1118,8 @@
} // std::string sv(double v, const value_style& sty)
void draw_plot_point_values(double x, double y, g_element& x_g_ptr, g_element& y_g_ptr, const value_style& x_sty, const value_style& y_sty, double vx, double vy)
- { //! Write the \b pair of data point's X and Y values as a string, for example: "1.23, 3.45".
+ { //! Write the \b pair of data point's X and Y values as a string,.
+ //! If a separator, then both on the same line, for example "1.23, 3.45", or "[5.6, 7.8]
//! X value_style is used to provide the prefix and separator, and Y value_style to provide the suffix.
// draw_plot_point_values is only when both x and Y pairs are wanted.
using std::string;
@@ -1234,46 +1235,66 @@
label.precision(4);
//label.flags(sty.value_ioflags_); // Leave at default.
label << " (" << dfx << ")"; // "123.5"
+ // Explicit space " " seems necessary.
label_xdf = label.str();
t.tspan(label_xdf).fill_color(brown).font_size(fx);
}
- // If there is a separator, put values on the same line, else as below put below the marker.
- double line = 0.0;
- if (x_sty.separator_ == "")
- {
- line = y_sty.values_text_style_.font_size() * 2.2; // Put Y value on 'newline' below point marker.
- }
- else
- {
- t.tspan(x_sty.separator_).fill_color(brown).font_size(fx);
- }
-
- // Problem here if orientation is changed?
- text_element& ty = y_g_ptr.text(x, y + line,
- label_yv, y_sty.values_text_style_, al, rot);
-
int fy = static_cast<int>(y_sty.values_text_style_.font_size() * 0.8);
- if (y_sty.plusminus_on_)
- { // Uncertainty estimate usually 95% confidence interval + or - 2 standard deviation.
- // Precision of uncertainty is usually less than value,
- label_yu = " " + sv(uy, y_sty, true);
- ty.tspan(pm).font_family("arial").font_size(fy).fill_color(green);
- ty.tspan(label_yu).fill_color(green).font_size(fy);
+ // If there is a separator, put values on the same line, else as below put below the marker.
+ bool sameline = (x_sty.separator_ != ""); // Might add to value_style? to allow 1.2, with 3.4 on line below.
+ if (sameline)
+ { // On same line so no change in y.
+ t.tspan(x_sty.separator_).fill_color(brown).font_size(fx); // Separator like comma and leading space ", ".
+ t.tspan(label_yv, y_sty.values_text_style_); // Color?
+ if (y_sty.plusminus_on_)
+ { // Uncertainty estimate usually 95% confidence interval + or - 2 standard deviation.
+ // Precision of uncertainty is usually less than value,
+ label_yu = " " + sv(uy, y_sty, true);
+ t.tspan(pm).font_family("arial").font_size(fy).fill_color(green);
+ t.tspan(label_yu).fill_color(green).font_size(fy);
+ }
+ if (y_sty.df_on_)
+ { // degrees of freedom or number of values -1 used for this estimate.
+ std::stringstream label;
+ label.precision(4);
+ //label.flags(sty.value_ioflags_); // Leave at default.
+ label <<" (" << dfy << ")"; // "123.5"
+ label_ydf = label.str();
+ t.tspan(label_ydf).fill_color(lime).font_size(fy);
+ }
+ if (y_sty.prefix_ != "")
+ { // Want a suffix like "]" - with the Y values font size, not reduced for uncertainty info.
+ t.tspan(y_sty.suffix_).fill_color(black).font_size(y_sty.values_text_style_.font_size());
+ }
}
- if (y_sty.df_on_)
- { // degrees of freedom or number of values -1 used for this estimate.
- std::stringstream label;
- label.precision(4);
- //label.flags(sty.value_ioflags_); // Leave at default.
- label <<" (" << dfy << ")"; // "123.5"
- label_ydf = label.str();
- ty.tspan(label_ydf).fill_color(lime).font_size(fy);
- }
- if (y_sty.prefix_ != "")
- { // Want a suffix like "]"
- ty.tspan(y_sty.suffix_).fill_color(lime).font_size(fy);
+ else
+ { // Move ready to put Y value on 'newline' below point marker.
+ // Problem here if orientation is changed?
+ // Need to start a new text_element here because tspan rotation doesn't apply to whole string. ???
+ double dy = y_sty.values_text_style_.font_size() * 2.2; // "newline"
+ text_element& ty = y_g_ptr.text(x, y + dy, label_yv, y_sty.values_text_style_, al, rot);
+
+ if (y_sty.plusminus_on_)
+ { // Uncertainty estimate usually 95% confidence interval + or - 2 standard deviation.
+ // Precision of uncertainty is usually less than value,
+ label_yu = " " + sv(uy, y_sty, true);
+ ty.tspan(pm).font_family("arial").font_size(fy).fill_color(green);
+ ty.tspan(label_yu).fill_color(green).font_size(fy);
+ }
+ if (y_sty.df_on_)
+ { // degrees of freedom or number of values -1 used for this estimate.
+ std::stringstream label;
+ label.precision(4);
+ //label.flags(sty.value_ioflags_); // Leave at default.
+ label <<" (" << dfy << ")"; // "123.5"
+ label_ydf = label.str();
+ ty.tspan(label_ydf).fill_color(lime).font_size(fy);
+ }
+ if (y_sty.prefix_ != "")
+ { // Want a suffix like "]"
+ ty.tspan(y_sty.suffix_).fill_color(lime).font_size(fy);
+ }
}
-
} // void draw_plot_point_values(double x, double y, g_element& g_ptr, double value)
void clear_all()
@@ -1971,79 +1992,79 @@
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_size(unsigned int i)
{ //! Sets the font size for the title (svg units, default pixels).
- derived().title_info_.style().font_size(i);
+ derived().title_info_.textstyle().font_size(i);
return derived();
}
template <class Derived>
unsigned int axis_plot_frame<Derived>::title_font_size()
{ //! \return the font size for the title (svg units, default pixels).
- return derived().title_info_.style().font_size();
+ return derived().title_info_.textstyle().font_size();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_family(const std::string& family)
{ //! Set the font family for the title (for example: .title_font_family("Lucida Sans Unicode");
- derived().title_info_.style().font_family(family);
+ derived().title_info_.textstyle().font_family(family);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::title_font_family()
{ //! \return the font family for the title
- return derived().title_info_.style().font_family();
+ return derived().title_info_.textstyle().font_family();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_style(const std::string& style)
{ //! Set the font style for the title (default normal).
- derived().title_info_.style().font_style(style);
+ derived().title_info_.textstyle().font_style(style);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::title_font_style()
{ //! \return the font style for the title (default normal).
- return derived().title_info_.style().font_style();
+ return derived().title_info_.textstyle().font_style();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_weight(const std::string& weight)
{ //! Set the font weight for the title (default normal).
- derived().title_info_.style().font_weight(weight);
+ derived().title_info_.textstyle().font_weight(weight);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::title_font_weight()
{//! \return the font weight for the title.
- return derived().title_info_.style().font_weight();
+ return derived().title_info_.textstyle().font_weight();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_stretch(const std::string& stretch)
{ //! Set the font stretch for the title (default normal), wider or narrow.
- derived().title_info_.style().font_stretch(stretch);
+ derived().title_info_.textstyle().font_stretch(stretch);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::title_font_stretch()
{ //! \return the font stretch for the title.
- return derived().title_info_.style().font_stretch();
+ return derived().title_info_.textstyle().font_stretch();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::title_font_decoration(const std::string& decoration)
{ //! Set the font decoration for the title (default normal, or underline, overline or strike-thru).
- derived().title_info_.style().font_decoration(decoration);
+ derived().title_info_.textstyle().font_decoration(decoration);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::title_font_decoration()
{ //! \return the font decoration for the title (default normal, or underline, overline or strike-thru).
- return derived().title_info_.style().font_decoration();
+ return derived().title_info_.textstyle().font_decoration();
}
template <class Derived>
@@ -2103,40 +2124,40 @@
template <class Derived>
Derived& axis_plot_frame<Derived>::legend_font_weight(const std::string& weight)
{ //! Set the font weight for the legend title.
- derived().legend_header_.style().font_weight(weight);
+ derived().legend_header_.textstyle().font_weight(weight);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::legend_font_weight()
{ //! \return the font weight for the legend title.
- return derived().legend_header_.style().font_weight();
+ return derived().legend_header_.textstyle().font_weight();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::legend_font_family(const std::string& family)
{ //! Set the font family for the legend title.
- derived().legend_header_.style().font_family(family);
+ derived().legend_header_.textstyle().font_family(family);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::legend_font_family()
{ //! \return the font family for the legend title.
- return derived().legend_header_.style().font_family();
+ return derived().legend_header_.textstyle().font_family();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::legend_title_font_size(unsigned int size)
{ //! Set the font size for the legend title (svg units, default pixels).
- derived().legend_header_.style().font_size(size);
+ derived().legend_header_.textstyle().font_size(size);
return derived();
}
template <class Derived>
unsigned int axis_plot_frame<Derived>::legend_title_font_size()
{ //! \return the font size for the legend title (svg units, default pixels).
- return derived().legend_header_.style().font_size();
+ return derived().legend_header_.textstyle().font_size();
}
template <class Derived>
@@ -2220,14 +2241,14 @@
template <class Derived>
Derived& axis_plot_frame<Derived>::legend_header_font_size(int size)
{ //! Set legend header font size (svg units, default pixels).
- derived().legend_header_.style().font_size(size);
+ derived().legend_header_.textstyle().font_size(size);
return *this;
}
template <class Derived>
int axis_plot_frame<Derived>::legend_header_font_size()
{ //! \return legend header font size (svg units, default pixels).
- return derived().legend_header_.style().font_size();
+ return derived().legend_header_.textstyle().font_size();
}
template <class Derived>
@@ -2441,40 +2462,40 @@
template <class Derived>
Derived& axis_plot_frame<Derived>::x_label_font_size(unsigned int i)
{ //! Set X axis label font size (svg units, default pixels).
- derived().x_label_info_.style().font_size(i);
+ derived().x_label_info_.textstyle().font_size(i);
return derived();
}
template <class Derived>
unsigned int axis_plot_frame<Derived>::x_label_font_size()
{ //! \return X axis label font size (svg units, default pixels).
- return derived().x_label_info_.style().font_size();
+ return derived().x_label_info_.textstyle().font_size();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::x_value_font_size(unsigned int i)
{ //! Set X tick value label font size (svg units, default pixels).
- derived().x_value_value.style().font_size(i);
+ derived().x_value_value.textstyle().font_size(i);
return derived();
}
template <class Derived>
unsigned int axis_plot_frame<Derived>::x_value_font_size()
{ //! \return X tick value label font size (svg units, default pixels).
- return derived().x_value_value.style().font_size();
+ return derived().x_value_value.textstyle().font_size();
}
template <class Derived>
Derived& axis_plot_frame<Derived>::x_label_font_family(const std::string& family)
{ //! Set X tick value label font family.
- derived().x_label_info_.style().font_family(family);
+ derived().x_label_info_.textstyle().font_family(family);
return derived();
}
template <class Derived>
const std::string& axis_plot_frame<Derived>::x_label_font_family()
{ //! \return X tick value label font family.
- return derived().x_label_info_.style().font_family();
+ return derived().x_label_info_.textstyle().font_family();
}
template <class Derived>
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -508,17 +508,16 @@
double x_; //!< Absolute X position.
double y_; //!< Absolute Y position.
double dx_; //!< Relative X position of a 1st single character of text.
- double dy_;//!< Relative Y position of a 1st single character of text.
+ double dy_; //!< Relative Y position of a 1st single character of text.
int rotate_; //!< Rotation of a 1st single character of text.
// 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_;
- bool use_y_;
+ bool use_x_; //!> If true then use X absolute position.
+ bool use_y_; //!> If true then use Y absolute position.
bool use_text_length_;
-
text_style style_; //!< font variants.
bool use_style_;
@@ -553,6 +552,8 @@
//tspan_element& x(double x);
//tspan_element& y(double y);
//tspan_element& text_length(double text_length);
+ // tspan_element& text_style(const text_style& style)
+
tspan_element& text(const std::string& text)
{
@@ -594,7 +595,7 @@
}
tspan_element& text_length(double text_length)
- {
+ { //! Set user estimate of text length (see http://www.w3.org/TR/SVG/text.html#TSpanElement TSPAN SVG Specification).
text_length_ = text_length;
use_text_length_ = true;
return *this; //! \return tspan_element& to make chainable.
@@ -633,13 +634,20 @@
}
tspan_element& fill_color(const svg_color& color)
- {
+ { //! Set fill color for a tspan element.
style_info_.fill_color(color);
style_info_.fill_on(true);
use_style_ = true;
return *this; //! \return tspan_element& to make chainable.
}
+ tspan_element& textstyle(const text_style& style)
+ { //! Set text style for a tspan element.
+ style_ = style;
+ use_style_ = true;
+ return *this; //! \return tspan_element& to make chainable.
+ }
+
// All getters.
//tspan_element::std::string text();
@@ -650,48 +658,88 @@
//int rotation();
//double text_length();
//text_style& font_style();
- //const text_style& font_style() const;
+ //const text_style& text_style() const;
+
+ const text_style& textstyle()
+ { // Access to font family, size ...
+ return style_;
+ }
- std::string text(){ return text_; }
- double x() { return x_; }
- double y() { return y_; }
- double dx() { return dx_; }
- double dy() { return dy_; }
- int rotation() { return rotate_; }
- double text_length() { return text_length_; }
+ const text_style& textstyle() const
+ {// const version of access to font family, size ...
+ return style_;
+ }
+
+ std::string text()
+ { //! Get text from a tspan element.
+ return text_;
+ }
+ double x()
+ { //! Get absolute X position for tspan element.
+ return x_;
+ }
+
+ double y()
+ { //! Get absolute Y position for tspan element.
+ return y_;
+ }
+ double dx()
+ { //! Get relative X position for tspan element.
+ return dx_;
+ }
+
+ double dy()
+ { //! Get relative Y position for tspan element.
+ return dy_;
+ }
+
+ int rotation()
+ { //! Get rotation for the next character for tspan element.
+ return rotate_;
+ }
+
+ double text_length()
+ { //! Get user estimated length for a text string.
+ return text_length_;
+ }
+
+ bool use_style()
+ { //! Get true if to use the estimated text string length.
+ return use_text_length_;
+ }
unsigned int font_size()
- {
+ { //! Get the font size for tspan element (from its text_style).
return style_.font_size();
}
const std::string& font_family()
- {
+ { //! Get the font family for tspan element (from its text_style).
return style_.font_family();
}
const std::string& font_weight() const
- {
+ { //! Get the font weight for tspan element (from its text_style).
return style_.font_weight();
}
- text_style& font_style()
- { // Access to font family, size ...
- return style_;
+ const std::string& font_style()
+ { //! Get the font style for tspan element (from its text_style).
+ return style_.font_style();
}
- const text_style& font_style() const
- { // Access to font family, size ... const version.
- return style_;
+ const std::string& font_style() const
+ { //! Get the font style for tspan element (from its text_style). const version.
+ return style_.font_style();
}
svg_color fill_color()
- {
+ { //! Get the fill color for tspan element .
return style_info_.fill_color();
}
bool fill_on()
- {
+ { //! Get true if to use fill color for tspan element .
return style_info_.fill_on();
}
@@ -830,18 +878,18 @@
//double x() const;
//double y() const;
- text_style& style()
- { // Access to font family, size ...
+ text_style& textstyle()
+ { //! Get text style for font size, family, decoration ...
return style_;
}
- const text_style& style() const
- {
+ const text_style& textstyle() const
+ { //! Get text style for font size, family, decoration ...
return style_;
}
- text_element& style(text_style& ts)
- {
+ text_element& textstyle(text_style& ts)
+ { //! Set text style for font size, family, decoration ...
style_ = ts;
return *this; //! \return text_element& to make chainable.
}
@@ -895,16 +943,22 @@
}
void text(const std::string& t)
- { //! text string to write.
+ { //! Get tspan text string to write.
data_.push_back(new text_element_text(t));
}
tspan_element& tspan(const std::string& t)
- {
+ { //! Add text span element.
data_.push_back(new tspan_element(t, style_));
return *(static_cast<tspan_element*>(&data_[data_.size()-1]));
}
+ tspan_element& tspan(const std::string& t, const text_style& style)
+ { //! Add text span element (with specified text style).
+ data_.push_back(new tspan_element(t, style));
+ return *(static_cast<tspan_element*>(&data_[data_.size()-1]));
+ }
+
text_element(
//! Coordinates of 1st character EM box, see
//! http://www.w3.org/TR/SVG/text.html#TextElement 10.2
Modified: sandbox/SOC/2007/visualization/boost/svg_plot/svg.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/svg.hpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -180,7 +180,7 @@
*/
//! Class to output Scalable Vector Graph XML graph elements: point, path, line, circle, rect, polygon and text.
- // and handle plot stylesheets.
+ // and handle plot stylesheets (not implemented yet).
class svg;
// See svg_fwd.hpp for forward declarations.
// Public member functions:
@@ -221,7 +221,11 @@
class svg
{ /*! \class boost::svg::svg
\brief Class to output Scalable Vector Graph XML graph elements: point, path, line, circle, rect, polygon and text.
- \details (and handle plot stylesheets - but not implemented yet).
+ \details Class to add basic Scalable Vector Graph XML graph elements:
+ point, path, line, circle, rect, polygon and text to SVG images,
+ including metadata like author, copyright and license,
+ and to output the final image as SVG XML to stream or file.
+ (Also to handle plot stylesheets - but not implemented yet).
*/
protected:
unsigned int x_size_; //!< SVG image X-axis size (in SVG units (default pixels).
@@ -426,7 +430,7 @@
}
void write(std::ostream& s_out)
- { //! Write whole .svg 'file' contents to stream (perhaps a file).
+ { //!< Write whole .svg 'file' contents to stream (perhaps a file).
write_header(s_out); // "<?xml version=...
// write svg document, begin <svg tag.
// <svg xml:space="preserve" width="5.5in" height=".5in">
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -69,11 +69,14 @@
{ /*! \class boost::svg::svg_1d_plot_series
\brief Holds a series of data values (points) to be plotted.
\details Scan each data point sorting them into the appropriate
- std::vectors, normal or not (NaN or infinite).
+ std::vectors, normal or not (NaN or infinite).\n
+ Member functions allow control of data points markers and lines joining them,
+ and their appearance, shape, color and size.\n
+ Each data series can have a title that can be shown on a legend box with identifying symbols.
*/
public:
- std::vector<double> series_; //<! Normal 'OK to plot' data values.
+ std::vector<double> series_; //!< Normal 'OK to plot' data values.
std::vector<double> series_limits_; //!< 'limit' values: too big, too small or NaN.
std::string title_; //!< title of data series (to show on legend).
@@ -82,35 +85,34 @@
plot_line_style line_style_; //!< No line style for 1-D, only for 2-D.
// Constructor svg_1d_plot_series.
- template <class T> // T an STL container: array, vector<double>, set, map ...
- svg_1d_plot_series(T begin, T end, const std::string& title = "");
//! Scan each data point between the iterators that are passed,
//! sorting them into the appropriate std::vectors, normal or not (NaN or infinite).
+ template <class T> // \tparam T an STL container: array, vector<double>, set, map ...
+ svg_1d_plot_series(T begin, T end, const std::string& title = "");
// Declarations of Set functions for the plot series.
- svg_1d_plot_series& fill_color(const svg_color& col_);
- svg_1d_plot_series& stroke_color(const svg_color& col_);
- svg_1d_plot_series& shape(point_shape shape_);
- svg_1d_plot_series& symbols(const std::string s);
- svg_1d_plot_series& size(int size_);
- svg_1d_plot_series& line_color(const svg_color& col_);
- svg_1d_plot_series& line_width(double wid_);
- svg_1d_plot_series& line_on(bool on_);
- svg_1d_plot_series& bezier_on(bool on_);
+ svg_1d_plot_series& fill_color(const svg_color& col_); //!< Set fill color for plot point marker(s) (chainable).
+ svg_1d_plot_series& stroke_color(const svg_color& col_); //!< Set stroke color for plot point marker(s) (chainable).
+ svg_1d_plot_series& shape(point_shape shape_); //!< Set shape for plot point marker(s) (chainable).
+ svg_1d_plot_series& symbols(const std::string s); //!< Set symbol(s) for plot point marker(s) (chainable).
+ svg_1d_plot_series& size(int size_); //!< Set font size for plot point marker(s) (chainable).
+ svg_1d_plot_series& line_color(const svg_color& col_); //!< Set color for line joining data points (chainable).
+ 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).
// Get functions for the plot series.
- svg_color fill_color();
- svg_color stroke_color();
- int size();
- point_shape shape();
- const std::string symbols();
- double line_width();
- bool line_on();
- bool bezier_on();
- size_t series_count();
- size_t series_limits_count();
-
+ svg_color fill_color(); //!< Get fill color for plot point marker(s).
+ svg_color stroke_color(); //!< Get stroke color for plot point marker(s).
+ int size(); //!< Get size for plot point marker(s).
+ point_shape shape(); //!< Get shape for plot point marker(s).
+ const std::string symbols(); //!< Get sumbols for plot point marker(s).
+ double line_width(); //!< Get line width for plot point marker(s).
+ bool line_on(); //!< Get true if line is to join data points.
+ bool bezier_on(); //!< Get true if curve if to join data points.
+ size_t series_count(); //!< Get number of normal data points in this data series.
+ size_t series_limits_count();//!< Get number of 'at limits' data points in this data series.
}; // class svg_1d_plot_series
// class svg_1d_plot_series Constructor
@@ -205,24 +207,24 @@
}
svg_1d_plot_series& svg_1d_plot_series::line_on(bool on_)
-{ //! Set to draw a line joining plot points (if true).
+{ //! Set true if to draw a line joining plot points.
line_style_.line_on_ = on_;
return *this; // Make chainable.
}
bool svg_1d_plot_series::line_on()
-{ //! \return if to draw a line joining plot points (if true).
+{ //! \return true if to draw a line joining plot points.
return line_style_.bezier_on_;
}
svg_1d_plot_series& svg_1d_plot_series::bezier_on(bool on_)
-{ //! Set if to draw bezier curved line joining plot points (if true).
+{ //! Set true if to draw bezier curved line joining plot points.
line_style_.bezier_on_ = on_;
return *this; // Make chainable.
}
bool svg_1d_plot_series::bezier_on()
-{ //! \return to draw bezier curved line joining plot points (if true).
+{ //! \return true if to draw bezier curved line joining plot points.
return line_style_.bezier_on_;
}
@@ -241,7 +243,7 @@
class svg_1d_plot : public detail::axis_plot_frame<svg_1d_plot>
{ /*! \class boost::svg::svg_1d_plot
\brief Hold all data about a plot, and functions to get and set.
- \details
+ \details All data about a plot, and functions to get and set appearance.
axis_plot_frame.hpp contains functions common to 1 and 2-D.
See also svg_2d_plot.hpp for 2-D version.
*/
@@ -468,7 +470,9 @@
} // void set_ids()
void calculate_plot_window()
- { // For 1-D
+ { //! Calculate the size and position of the plot window,
+ //! taking account of the length and font size of axes labels, axis ticks, title and legend box.
+ // This version is only for 1-D.
// All calculation use svg units, pixels by default.
// Start by assuming we can use all the svg image,
@@ -600,7 +604,7 @@
} // void calculate_plot_window()
void calculate_transform()
- { // Calculate scale and shift factors for transform from Cartesian to plot.
+ { //! Calculate scale and shift factors for transform from Cartesian to plot.
// SVG image is 0, 0 at top left, Cartesian at bottom left.
x_scale_ = (plot_right_ - plot_left_) / (x_axis_.max_ - x_axis_.min_);
x_shift_ = plot_left_ - (x_axis_.min_ * (plot_right_ - plot_left_) / (x_axis_.max_ - x_axis_.min_));
@@ -609,7 +613,8 @@
} // void calculate_transform()
void draw_axes()
- { // For 1-D, there is, of course, only the horizontal X-axis!
+ { // Add information to the plot image for X axis lines.
+ // For 1-D, there is, of course, only the horizontal X-axis!
double x(0.);
double y1(0.);
double y2(image.y_size());
@@ -621,11 +626,11 @@
{ // Use whole image.
if(title_on_)
{ // Allow space for title, taking account of font size.
- y1 += title_info_.style().font_size() * text_margin_;
+ y1 += title_info_.textstyle().font_size() * text_margin_;
}
if(x_axis_.label_on_)
{// Allow space for x tick values, taking account of font size.
- y2 -= x_label_info_.style().font_size() * text_margin_;
+ y2 -= x_label_info_.textstyle().font_size() * text_margin_;
}
}
else
@@ -639,7 +644,8 @@
} // draw_axes()
void update_image()
- {
+ { //! Calls functions to add all plot information to the image, including
+ //plot window, axes, ticks, labels, grids, legend, and finally all the data series.
clear_all(); // Removes all elements that will show up in a subsequent draw.
// Draw plot background.
@@ -763,7 +769,7 @@
svg_1d_plot_series& plot(const T& begin, const T& end, const std::string& title = "", U functor = boost_default_convert);
template <class T, class U>
svg_1d_plot_series& plot(const T& container, const std::string& title = "", U functor = boost_default_convert);
-}; // end svg_1d_plot::
+}; // class svg_1d_plot
// svg_1d_plot Member functions definitions.
@@ -808,8 +814,8 @@
template <class T>
svg_1d_plot_series& svg_1d_plot::plot(const T& container, const std::string& title /*= "" */)
- { //! Add a data series to the plot (by default, converting to doubles), with optional title.
- /*! Note that this version assumes that *ALL* the data values in the container are used.
+ { /*! Add a data series to the plot (by default, converting to doubles), with optional title.
+ Note that this version assumes that *ALL* the data values in the container are used.
*/
serieses_.push_back(
svg_1d_plot_series(
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -116,8 +116,8 @@
double bar_width();
svg_color& bar_color();
svg_color& bar_area_fill();
- int svg_2d_plot_series::values_count(); // number of normal values in data series.
- int svg_2d_plot_series::limits_count(); // number of values 'at limit' in data series.
+ int values_count(); // number of normal values in data series.
+ int limits_count(); // number of values 'at limit' in data series.
}; // class svg_2d_plot_series
@@ -303,12 +303,12 @@
}
int svg_2d_plot_series::values_count()
- { //! \return number of normal values in data series.
+ { //! \return number of normal values in a data series.
return series_.size();
}
int svg_2d_plot_series::limits_count()
- { //! \return number of values 'at limit' in data series.
+ { //! \return number of values 'at limit' in a data series.
return series_limits_.size();
}
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -907,7 +907,7 @@
}
if(title_on_)
{ // Allow space for plot title (at top).
- plot_top_ += title_info_.style().font_size() * (text_margin_ + 0.5);
+ plot_top_ += title_info_.textstyle().font_size() * (text_margin_ + 0.5);
}
// Assume that axis labels are always at bottom and left.
if(x_axis_.label_on_)
@@ -1164,7 +1164,7 @@
because the browser render engine does the centering.
\endverbatim
*/
- double y = title_info_.style().font_size() * text_margin_; // Leave a linespace above.
+ double y = title_info_.textstyle().font_size() * text_margin_; // Leave a linespace above.
title_info_.y(y); // Vertical position.
image.g(boxplot::PLOT_TITLE).push_back(new text_element(title_info_));
} // void draw_title()
@@ -1264,7 +1264,7 @@
if(x_axis_.label_on_) // use_x_major_labels)
{
series_info.x(x_left); // Horizontal position.
- double y = y_bottom + series_info.style().font_size() * (text_margin_ * 0.7); // Leave a linespace above.
+ double y = y_bottom + series_info.textstyle().font_size() * (text_margin_ * 0.7); // Leave a linespace above.
series_info.y(y); // Vertical position.
image.g(boxplot::VALUE_LABELS).push_back(new text_element(series_info));
}
@@ -1579,7 +1579,7 @@
plot_right_ + plot_left_) / 2, // x coordinate - middle.
y, // Down from plot window.
label,
- x_label_info_.style(),
+ x_label_info_.textstyle(),
center_align, horizontal)
);
} // void draw_x_label()
@@ -2227,7 +2227,7 @@
}
svg_boxplot& svg_boxplot::title_size(unsigned int size)
{ //! Set font size for title text.
- y_label_info_.style().font_size(size);
+ y_label_info_.textstyle().font_size(size);
return *this; //! \return reference to svg_boxplot to make chainable.
}
@@ -2272,7 +2272,7 @@
svg_boxplot& svg_boxplot::x_label_size(unsigned int size)
{ //! Set the font size for the X axis label.
- x_label_info_.style().font_size(size);
+ x_label_info_.textstyle().font_size(size);
return *this; //! \return reference to svg_boxplot to make chainable.
}
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -379,15 +379,14 @@
text_style& text_style::font_family(const std::string& s)
{ //! Set font family, for example: "Arial", "Times New Roman", "Verdana", "Lucida Sans Unicode".
- /*! \verbatim
+ /*!
\details Default for browser is sans with Firefox & IE but serif with Opera.\n
- See also browser conformance test at\n
+ 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>
- \endverbatim
*/
font_family_ = s;
return *this; //! \return reference to text_style to make chainable.
@@ -583,7 +582,9 @@
value_style::value_style(rotate_style r, int p, std::ios_base::fmtflags f, bool s,
text_style ts, const svg_color& scol = black, svg_color fcol = black, bool pm = false, bool df = false,
- std::string pre = "", std::string sep = ", ", std::string suf = "")
+ std::string pre = "[",
+ std::string sep = ", ", // If put ", " the trailing space seems to be ignored, so add explicit space.
+ std::string suf = "]")
:
value_label_rotation_(r), value_precision_(p), value_ioflags_(f), strip_e0s_(s),
values_text_style_(ts), stroke_color_(scol), fill_color_(fcol), plusminus_on_(pm), df_on_(df),
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_full_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_full_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_full_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,34 +1,34 @@
-[section:full_1d_layout Tutorial: 1D Full Layout Example]
+[section:full_1d_layout Tutorial: 1D More Layout Examples]
#include <boost/svg_plot/svg_1d_plot.hpp>
using namespace boost::svg;
#include <cmath> // for sqrt
-
+
#include <vector>
#include <deque>
#include <boost/array.hpp>
-
+
// Three different STL-style containers:
using std::vector;
using std::deque;
using boost::array;
- // Three sample functions:
+ // Three sample functions:
double f(double x)
{
return sqrt(x);
}
-
+
double g(double x)
{
return -2 + x*x;
}
-
+
double h(double x)
{
return -1 + 2*x;
}
-
+
int main()
{
vector<double> data1;
@@ -42,36 +42,36 @@
data2.push_front(g(i));
data3[j++] = h(i);
}
-
+
svg_1d_plot my_plot; // Construct my_plot.
-
+
// Set many plot options,
// using chaining to group similar aspects together.
// Size/scale settings.
my_plot.image_size(500, 350)
.x_range(-3, 10);
-
+
// Text settings.
my_plot.title("Oh My!")
.title_font_size(29)
.x_label("Time in Months") // X- axis label
.x_label_on(true); // Not needed, because although the default is no axis label,
// providing a label has this effect.
- // If we want later to switch *off* labels,
+ // If we want later to switch *off* labels,
// my_plot.x_label_on(false); // is needed.
-
+
// Commands.
my_plot.legend_on(true)
.plot_window_on(true)
.x_major_labels_on(true);
-
+
// Color settings.
my_plot.background_color(svg_color(67, 111, 69))
.legend_background_color(svg_color(207, 202,167))
.legend_border_color(svg_color(102, 102, 84))
.plot_background_color(svg_color(136, 188, 126))
.title_color(white);
-
+
// Axis settings.
my_plot.x_major_interval(2)
.x_major_tick_length(14)
@@ -79,29 +79,27 @@
.x_minor_tick_length(7)
.x_minor_tick_width(1)
.x_num_minor_ticks(3);
-
+
// Legend settings.
my_plot.legend_title_font_size(15);
-
+
// Put the three containers of data onto the plot.
my_plot.plot(data1, "Lions", blue);
my_plot.plot(data2, "Tigers", orange);
my_plot.plot(data3, "Bears", red);
-
- my_plot.write("1d_complex.svg");
-
+
+ my_plot.write("1d_full_layout.svg");
+
return 0;
}
+This produces the following plot:
-This produces the following output:
-
-[$images/1d_complex.png]
+[$images/1d_full_layout.svg]
A little bit of color customization goes a very long way!
-[endsect] [/section:tutorial_1d_example_code]
-
+[endsect] [/section:full_1d_layout Tutorial: 1D More Layout Examples]
[/ 1d_full_tutorial.qbk
Copyright 2008 Jake Voytko and Paul A. Bristow.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_simple_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_simple_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_simple_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,37 +1,10 @@
-[section:tutorial_code_1d_example Simple 1D Example]
+[section:tutorial_demo_1d_simple Simple 1D Example]
- #include <boost/svg_plot/svg_1d_plot.hpp>
- using namespace boost::svg;
- #include <vector>
- using std::vector;
-
- int main()
- {
- // STL containers for the data to plot.
- vector<double> dan_times;
- vector<double> elaine_times;
- // Fill the two containers with some data:
- dan_times.push_back(3.1);
- dan_times.push_back(4.2);
- elaine_times.push_back(2.1);
- elaine_times.push_back(7.8);
-
- svg_1d_plot my_plot; // Construct a plot.
-
- my_plot.title("Race Times") // Set title and legend.
- .legend_on(true)
- .x_range(-1, 11);
-
- // Add the containers of data to the plot.
- my_plot.plot(dan_times, "Dan", blue);
- my_plot.plot(elaine_times, "Elaine", orange);
-
- // And finally write the plot to a file.
- my_plot.write("simple.svg");
- return 0;
- }
+[import ..\example\demo_1d_simple.cpp] [/has Quickbook in C++]
+[demo_1d_simple_1]
+[demo_1d_simple_2]
-[$images/1d_simple.png] [/ TODO All .png should be .svg?]
+[$images/1d_simple.png]
[h4 A Note on Chaining Syntax]
The syntax
@@ -46,7 +19,8 @@
std::cout << a + b + c + d << std::endl; // prints 12
-Within all of the plot classes, 'chaining' works the same way, by returning a reference to the calling object thus `return *this;`
+Within all of the plot classes, 'chaining' works the same way,
+by returning a reference to the calling object thus `return *this;`
Equivalent traditional code for the example above is as follows:
@@ -68,29 +42,29 @@
svg_1d_plot my_plot;
-This constructor initializes a new 1D plot, called 'my_plot', and also sets all the very many default values.
+This constructor initializes a new 1D plot, called 'my_plot', and also sets all the very many defaults, size, axes, colors, widths.
my_plot.title("Race Times")
.legend_on(true)
.x_range(-1, 11);
-All of the setter methods (or member functions) are fairly self-explanatory, but
+All of the setter methods (or set member functions) are fairly self-explanatory, but
-* The title, which will appear at the top of the graph, will say "Race Times".
+* `title("Race Times")` means that a title will say "Race Times", and will appear at the top of the graph.
-* `legend_on(true)` means that the legend box will include "Dan" and "Elaine".
+* `legend_on(true)` means that a legend box is wanted, and will include the data series labels "Dan" and "Elaine".
* `x_range(-1, 11)` means that the axis displayed will be between -1 and 11,
as you can see in the above image.
- my_plot.plot(my_data, "Race times");
+ my_plot.plot(my_data, "My data");
-This draws `my_data` onto `my_plot`. As many containers of data series as you want can be drawn
-on `my_plot` (See reference __svg_1d_plot_series).
-The name of this data series is "Race times", and this text will show up
+This draws `my_data` onto `my_plot`. As many containers of data series as you want can be drawn
+on `my_plot`.
+The name of this data series is "My data", and this text will show up
in the legend (if my_plot.legend_on() == true).
A data series is the one required parameter for this plot function call, but a title is always helpful.
-There are also optional parameters, as seen in the reference section __svg_1d_plot.
+There are also optional parameters (See reference __svg_1d_plot_series).
``
@@ -99,7 +73,7 @@
This writes our plot to the file "simple.svg". SVG files can be viewed with most browsers,
or embedded into documents, or converted to bitmap images like .png.
-[endsect] [/section:tutorial_code_1d_simple 1D Simple Program]
+[endsect] [/section:tutorial_demo_1d_simple 1D Simple Program]
[/ 1d_simple_tutorial.qbk
Copyright 2008 Jake Voytko and Paul A. Bristow 2008, 2009.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_special_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_special_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_special_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,40 +1,34 @@
[section:1d_special Tutorial: 1D Special Features]
-[heading X-Axis Grid Lines]
+[import ..\example\demo_1d_x_external.cpp]
+
+[h4 X-Axis Grid Lines]
If you would like vertical grid lines that go on the graph,
you can make the following call to `svg_1d_plot`:
- my_plot.x_major_grid_on(true)
+ my_plot.x_major_grid_on(true)
.x_minor_grid_on(true);
To color style it, you might add the following calls:
-
+
my_plot.x_major_grid_color(lightgray) // Darker color for major grid.
.x_minor_grid_color(whitesmoke); // Lighter color for minor grid.
This will produce the following image:
-[$images/1d_x_grid.png]
-
-[h4 X-Axis External Style]
-
-TODO this has ben changed to x_up_ticks and x_down_ticks and y_left_ticks and y_right_ticks.
+[$images/1d_x_grid.svg]
-By default the 'ticks' face into the plot area.
-Alternatively, you can use an 'external' style,
-so that the ticks face out from the X- and/or Y-axes.
+[h4 X-Axis ticks and value label position]
- my_plot.x_external_style_on(true);
- my_plot.y_external_style_on(true);
+[demo_1d_x_external_1]
-The axis is still otherwise styled using the normal methods.
-The following is an example of the style that you can produce with this:
+producing this plot
-[$images/1d_x_external.png]
+[$images/demo_1d_x_external.svg]
-[important If the axis is turned off, `x_external_style_on(true)` will not
-turn the axis back on. To do that, you must call `axis_on(true)`]
+See [@../../example/demo_1d_x_external.cpp demo_1d_x_external.cpp]
+for full source code.
[endsect] [/1d_special Tutorial: 1D Special Features]
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,18 +1,16 @@
-[section:tutorial_code_1d_simple Tutorials: 1D]
+[section:tutorial_1d 1D Tutorials]
-[include 1d_simple_tutorial.qbk]
[include 1d_vector_tutorial.qbk]
[include demo_1d_containers.qbk]
[include auto_1d_containers.qbk]
-[include auto_1d_plot.qbk]
[include 1d_full_tutorial.qbk]
[include 1d_special_tutorial.qbk]
-[\include 1d_autoscale_containers.qbk]
[include demo_1d_axis_scaling.qbk]
[include demo_1d_autoscaling.qbk]
[include demo_1d_values.qbk]
-[endsect] [/1d_tutorial]
+[endsect] [/section:tutorial_1d 1D Tutorials]
+
[/ 1d_tutorial.qbk
Copyright 2008 Jake Voytko.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_vector_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_vector_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/1d_vector_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,18 +1,17 @@
[section:1d_vector_tutorial 1-D Vector Example]
-[import ..\example\demo_1d_vector.cpp]
+[import ..\example\demo_1d_vector.cpp] [/QuickBook in C++]
[demo_1d_vector_1]
[demo_1d_vector_2]
-The output is not very exciting in this case:
+The IDE output is not very exciting in this case
[demo_1d_vector_output]
+but the plot is
+[$images/demo_1d_vector.svg]
-You can view the svg file [@..\images\demo_1d_vector.svg demo_1d_vector.svg]
-with most internet browsers, and other programs too.
-You can view the SVG source using browsers (View, Source)
-or use your favorite editor like Notepad, TextPad etc.
-[/ image as .png of svg?]
-[/$images/2d_simple.png]
+(You can also view the SVG XML source using browsers (View, Source)
+or use your favorite editor like Notepad, TextPad etc at
+[@/images/demo_1d_vector.svg demo_1d_vector.svg]
See [@../../example/demo_1d_vector.cpp demo_1d_vector.cpp]
for full source code.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_full_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_full_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_full_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -5,62 +5,62 @@
#include <map>
using std::multimap;
#include <cmath> // for sqrt
-
+
// Some example functions:
double f(double x)
{
return sqrt(x);
// Note: negative values will all return NaN.
}
-
+
double g(double x)
{
return -2 + x * x;
}
-
+
double h(double x)
{
return -1 + 2 * x;
}
-
+
int main()
{
multimap<double, double> data1, data2, data3;
-
+
for(double i = 0; i <= 10.; i += 1.)
{ // Evaluate the functions as demonstration data.
data1[i] = f(i);
data2[i] = g(i);
- data3[i] = h(i);
+ data3[i] = h(i);
}
-
+
svg_2d_plot my_plot; // Construct a new plot.
-
+
// Override a few default settings with our choices:
-
+
// Size of SVG image and X and Y range settings.
my_plot.image_size(700, 500)
.x_range(-1, 10)
.y_range(-5, 100)
-
+
// Text settings.
my_plot.title("Plot of Mathematical Functions")
.title_font_size(25)
.x_label("Time in Months");
-
+
// Commands.
my_plot.legend_on(true)
.plot_window_on(true)
.x_label_on(true)
.x_major_labels_on(true);
-
+
// Color settings.
my_plot.background_color(svg_color(67, 111, 69))
.legend_background_color(svg_color(207, 202,167))
.legend_border_color(svg_color(102, 102, 84))
.plot_background_color(svg_color(136, 188, 126))
.title_color(white);
-
+
// X axis settings.
my_plot.x_major_interval(2)
.x_major_tick_length(14)
@@ -68,28 +68,28 @@
.x_minor_tick_length(7)
.x_minor_tick_width(1)
.x_num_minor_ticks(3)
-
+
// Y axis settings.
.y_major_tick(10)
- .y_num_minor_ticks(2);
+ .y_num_minor_ticks(2);
// Legend settings.
my_plot.legend_title_font_size(15);
-
+
// Add the 3 data series to the plot, using different markers and line colors.
my_plot.plot(data1, "Sqrt(x)").fill_color(red);
my_plot.plot(data2, "-2 + x^2").fill_color(orange).size(5);
my_plot.plot(data3, "-1 + 2x").fill_color(yellow).bezier_on(true).line_color(blue).shape(square);
// Note how the options can be chained.
-
+
my_plot.write("2d_full.svg");
-
+
return 0;
}
This produces the following output:
-[$images/2d_full.png]
+[$images/2d_full.svg]
A little bit of color customization goes a *very* long way!
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_special_tutorial.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_special_tutorial.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/2d_special_tutorial.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -2,46 +2,37 @@
[h4 Y-Axis Grid Lines]
-If you would like horizontal grid lines that go across the graph,
+If you would like horizontal Y grid lines that go across the graph,
you can make the following call to `svg_2d_plot`:
my_plot.y_major_grid_on(true)
.y_minor_grid_on(true);
To style it, you could use the following calls:
-
+
my_plot.y_major_grid_color(lightgray) // Darker color for major grid.
.y_minor_grid_color(whitesmoke); // Lighter color for minor grid.
-
-
-This will produce the following image:
+This will produce the following plot image:
+
+[$images/2d_y_grid.svg]
-[$images/2d_y_grid.png]
+The source of this examples is at [@..\..\example\2d_y_grid.cpp]
Similarly you can have horizontal and/or vertical lines:
- my_plot.x_major_grid_on(true)
+ my_plot.x_major_grid_on(true)
.x_minor_grid_on(true);
-
-and color it similarly for faint blues like old fashioned graph paper:
-
+
+and color it similarly for faint blues like old fashioned graph paper:
+
my_plot.y_major_grid_color(svg_color(200, 220, 255)) // Darker color for major grid.
.y_minor_grid_color(svg_color(240, 240, 255); // lighter color for minor grid.
-
+
and to make the major grid much wider than the minor grid:
my_plot.y_major_grid_width(4)
.y_minor_grid_width(1)
-
-[heading External Y Axis Style]
-
-For an alternate way to display a regular axis, you can use an external style:
-
- my_plot.y_external_style_on(true);
-
-[important If the axis is turned off, `y_external_style_on(true)` will not
-turn the axis back on. To do that, you must call `axis_on(true)`]
[heading Fill the area between the plot and the axis]
@@ -54,7 +45,9 @@
This produces the following image:
-[$images/2d_area_fill.png]
+[$images/2d_area_fill.svg]
+
+from source at [@..\..\example\2d_area_fill.cpp]
[h4 Curve Interpolation]
@@ -66,7 +59,7 @@
This produces something like the following images:
-[$images/2d_bezier.png]
+[$images/2d_bezier.svg]
[warning The `_bezier_curve` feature still displays undesired behavior in extreme circumstances.
Do not use this feature with curves that have a numeric_limit value (`-NaN`, for example),
@@ -75,7 +68,7 @@
with the next one at 100 on the X axis.)
In general, curves must be reasonably well-behaved to be smoothable.
In general, using more data points will make smoothing work better,
-but wil increase svg file sizes.
+but will increase svg file sizes.
]
[endsect] [/2d_special Tutorial: 2D Special Features]
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/Jamfile.v2 (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/Jamfile.v2 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -37,16 +37,17 @@
:
<doxygen:param>EXTRACT_ALL=YES
#<doxygen:param>"PREDEFINED=\"BOOST_DEDUCED_TYPENAME=typename\" "
- #<doxygen:param>HIDE_UNDOC_MEMBERS=NO
- #<doxygen:param>EXTRACT_PRIVATE=NO
- #<doxygen:param>ENABLE_PREPROCESSING=YES
- #<doxygen:param>MACRO_EXPANSION=YES
- #<doxygen:param>EXPAND_ONLY_PREDEF=YES
- #<doxygen:param>SEARCH_INCLUDES=YES
- #<doxygen:param>INCLUDE_PATH=$(BOOST_ROOT)
+ <doxygen:param>HIDE_UNDOC_MEMBERS=NO
+ <doxygen:param>SORT_MEMBER_DOCS=YES
+ <doxygen:param>EXTRACT_PRIVATE=YES
+ <doxygen:param>ENABLE_PREPROCESSING=YES
+ <doxygen:param>MACRO_EXPANSION=YES
+ <doxygen:param>EXPAND_ONLY_PREDEF=YES
+ <doxygen:param>SEARCH_INCLUDES=YES
+ <doxygen:param>SHOW_INCLUDE_FILES=NO
+ <doxygen:param>INCLUDE_PATH=$(BOOST_ROOT)
;
-
# import boostbook : boostbook ;
boostbook standalone
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/auto_1d_containers.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/auto_1d_containers.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/auto_1d_containers.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -7,12 +7,10 @@
The output is:
[auto_1d_containers_output]
-You can view the svg file, for example: [@..\images\auto_1d_containers.svg auto_1d_containers.svg]
+You can view the svg file, for example: [@\images\auto_1d_containers.svg auto_1d_containers.svg]
with most internet browsers, and other programs too.
-[/ image as .png of svg?]
-[/$images/2d_simple.png]
-See [@../../example/auto_1d_containers.cpp auto_1d_containers..cpp]
+See [@../../example/auto_1d_containers.cpp auto_1d_containers.cpp]
for full source code.
[endsect] [/section:auto_1d_containers_tutorial 1-D Auto Multiple Containers Examples]
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_autoscaling.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_autoscaling.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_autoscaling.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,39 +1,37 @@
-[section:demo_1d_autoscaling 1-D Autoscaling Various Containers Examples]
+[section:auto_1d_plot 1-D Auto scaling Examples]
+
+[import ..\example\auto_1d_plot.cpp]
+[auto_1d_plot_1]
+[auto_1d_plot_2]
+[auto_1d_plot_3]
+
+The output is:
+[auto_1d_plot_output]
+
+[$images\auto_1d_plot.svg auto_1dplot.svg]
+
+See [@../../example/auto_1d_plot.cpp auto_1d_plot..cpp]
+for full source code.
-[h4 Autoscaling]
+[endsect] [/section:auto_1d_plot 1-D Auto scaling Examples]
+[section:demo_1d_autoscaling 1-D Autoscaling Various Containers Examples]
[import ..\example\demo_1d_autoscaling.cpp]
[demo_1d_autoscaling_1]
[demo_1d_autoscaling_2]
[demo_1d_autoscaling_3]
-[h4 scale_axis Function Examples]
-
-[demo_1d_autoscaling_4]
-[demo_1d_autoscaling_5]
-[demo_1d_autoscaling_6]
-
The output is:
[demo_1d_autoscaling_output]
-You can view the svg file, for example: [@..\images\auto_1d_containers.svg auto_1d_containers.svg]
-with most internet browsers, and other programs too.
-[/ image as .png of svg?]
-[/$images/2d_simple.png]
+and the plot:
+[$images\demo_auto_1d_autoscaling.svg]
-See [@../../example/auto_1d_containers.cpp auto_1d_containers..cpp]
+See [@../../example/demo_1d_autoscaling.cpp demo_1d_autoscaling.cpp]
for full source code.
-[h4 Autoscale 1D Examples]
-
-[import ..\example\auto_1d_plot.cpp]
-
-[auto_1d_plot_1]
-[auto_1d_plot_2]
-[auto_1d_plot_3]
-
-[endsect] [/section:auto_1d_containers_tutorial 1-D Auto Multiple Containers Examples]
+[endsect] [/section:demo_1d_autoscaling 1-D Autoscaling Various Containers Examples]
[/ demo_1d_autoscaling.qbk
Copyright 2008 Jake Voytko and Paul A. Bristow.
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_containers.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_containers.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_containers.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -8,13 +8,24 @@
[demo_1d_containers_5]
[demo_1d_containers_6]
-The output is not very exciting in this case:
+[note For filling containers you may find the __Boost_Assign by Thorsten Ottosen useful ]
+
+The IDE output is not very exciting in this case:
[demo_1d_containers_output]
-You can view the svg files, for example: [@..\images\demo_1d_vector_float.svg demo_1d_vector_float.svg]
-with most internet browsers, and other programs too.
-[/ image as .png of svg?]
-[/$images/2d_simple.png]
+The plot is:
+
+[$images\demo_1d_vector_float.svg]
+
+And you can view the other svg files (with most internet browsers, and other programs too) for example:
+
+* [@\images\demo_1d_array_long_double.svg demo_1d_array_long_double.svg]
+
+* [@\images\demo_1d_set_double.svg demo_1d_set_double.svg]
+
+* [@\images\demo_1d_list_double.svg demo_1d_list_double.svg]
+
+* [@\images\demo_1d_deque_double.svg demo_1d_deque_double.svg]
See [@../../example/demo_1d_containers.cpp demo_1d_containers.cpp]
for full source code.
@@ -22,7 +33,7 @@
[endsect] [/section:demo_1d_containers_tutorial 1-D Containers Examples]
[/ demo_1d_containers_tutorial.qbk
- Copyright 2008 Jake Voytko and Paul A. Bristow.
+ Copyright 2008 and 2009 Jake Voytko and Paul A. Bristow.
Distributed under 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).
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_values.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_values.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_1d_values.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -16,7 +16,7 @@
[demo_1d_limits_2]
[demo_1d_limits_output]
-
+[$image\demo_1d_limits.svg]
[endsect] [/section:demo_1d_values 1-D Data Values Examples]
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_autoscaling.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_autoscaling.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_autoscaling.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,6 +1,5 @@
[section:demo_2d_autoscaling 2-D Autoscaling Examples]
-
[h4 Autoscale 2D Examples]
[import ..\example\auto_2d_plot.cpp]
@@ -9,6 +8,9 @@
[auto_2d_plot_2]
[auto_2d_plot_output]
+The plot is
+
+[$images\auto_2d_plot.svg]
[endsect] [/section:demo_2d_autoscaling 2-D Autoscaling Examples]
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_values.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_values.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/demo_2d_values.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -8,6 +8,9 @@
[demo_2d_values_2]
[demo_2d_values_output]
+And the plot:
+[$mage\demo_2d_values.svg]
+
[h4 Showing 2d Data 'at limit' Values Examples]
[import ..\example\demo_2d_limits.cpp]
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,10 +1,10 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>SVG Plot</title>
+<title>Plotting graphs in SVG format</title>
<link rel="stylesheet" href="../../../../../../../../boost_trunk/doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
-<link rel="home" href="index.html" title="SVG Plot">
+<link rel="home" href="index.html" title="Plotting graphs in SVG format">
<link rel="next" href="SVG_plot/preface.html" title="Preface">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -22,7 +22,7 @@
<div class="titlepage">
<div>
<div><h2 class="title">
-<a name="SVG_plot"></a>SVG Plot</h2></div>
+<a name="SVG_plot"></a>Plotting graphs in SVG format</h2></div>
<div><div class="authorgroup">
<div class="author"><h3 class="author">
<span class="firstname">Jake</span> <span class="surname">Voytko</span>
@@ -33,7 +33,7 @@
</div></div>
<div><p class="copyright">Copyright © 2007 to 2009 Jake Voytko and Paul A. Bristow</p></div>
<div><div class="legalnotice">
-<a name="id773512"></a><p>
+<a name="id775159"></a><p>
Distributed under 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)
</p>
@@ -45,67 +45,74 @@
<p><b>Table of Contents</b></p>
<dl>
<dt><span class="section"> Preface</span></dt>
-<dt><span class="section"> How To Use This Documentation</span></dt>
-<dt><span class="section"> Colors</span></dt>
-<dt><span class="section"> Tutorials: 1D</span></dt>
-<dd><dl>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/tutorial_code_1d_example.html">
- Simple 1D Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/1d_vector_tutorial.html">
+<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"> 1D Tutorials</span></dt>
+<dd><dl>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/1d_vector_tutorial.html">
1-D Vector Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/demo_1d_containers_tutorial.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/demo_1d_containers_tutorial.html">
1-D Containers Examples</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/auto_1d_containers_tutorial.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/auto_1d_containers_tutorial.html">
1-D Auto Multiple Containers Examples</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/full_1d_layout.html"> Tutorial:
- 1D Full Layout Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/1d_special.html"> Tutorial:
- 1D Special Features</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/demo_1d_axis_scaling.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/full_1d_layout.html">
+ Tutorial: 1D More Layout Examples</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/1d_special.html">
+ Tutorial: 1D Special Features</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/demo_1d_axis_scaling.html">
1-D Axis Scaling</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/demo_1d_autoscaling.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/auto_1d_plot.html">
+ 1-D Auto scaling Examples</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/demo_1d_autoscaling.html">
1-D Autoscaling Various Containers Examples</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_code_1d_simple/demo_1d_values.html"> 1-D
- Data Values Examples</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_1d/demo_1d_values.html">
+ 1-D Data Values Examples</a></span></dt>
</dl></dd>
-<dt><span class="section"> Tutorial: 2D</span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_2d_code_simple.html">
+ Tutorial: 2D</a></span></dt>
<dd><dl>
-<dt><span class="section"><a href="svg_plot/tutorial_2d_code_simple/2d_simple_code_example.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_2d_code_simple/2d_simple_code_example.html">
Simple Code Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_2d_code_simple/full_2d_layout.html"> Tutorial:
- Fuller Layout Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_2d_code_simple/2d_special.html"> Tutorial:
- 2D Special Features</a></span></dt>
-<dt><span class="section"><a href="svg_plot/tutorial_2d_code_simple/demo_2d_values.html"> 2-D
- Data Values Examples</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_2d_code_simple/full_2d_layout.html">
+ Tutorial: Fuller Layout Example</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_2d_code_simple/2d_special.html">
+ Tutorial: 2D Special Features</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/tutorial_2d_code_simple/demo_2d_values.html">
+ 2-D Data Values Examples</a></span></dt>
</dl></dd>
-<dt><span class="section"> Tutorial: Boxplot</span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/svg_boxplot_tutorial.html"> Tutorial:
+ Boxplot</a></span></dt>
<dd><dl>
-<dt><span class="section"><a href="svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html">
Simple Example</a></span></dt>
-<dt><span class="section"><a href="svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_full.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/svg_boxplot_tutorial/svg_boxplot_tutorial_full.html">
Full Boxplot Layout</a></span></dt>
-<dt><span class="section"><a href="svg_plot/svg_boxplot_tutorial/svg_boxplot_quartiles.html">
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/svg_boxplot_tutorial/svg_boxplot_quartiles.html">
Definitions of the Quartiles</a></span></dt>
</dl></dd>
-<dt><span class="section"> SVG tutorial</span></dt>
-<dt><span class="section"><a href="svg_plot/behavior_limits.html"> Showing data values at Numerical
- Limits</a></span></dt>
-<dt><span class="section"> Plot Defaults</span></dt>
-<dd><dl>
-<dt><span class="section"><a href="svg_plot/plot_defaults/1d_defaults.html"> <code class="computeroutput"><span class="identifier">svg_1d_plot</span></code>
- Defaults</a></span></dt>
-<dt><span class="section"><a href="svg_plot/plot_defaults/2d_defaults.html"> <code class="computeroutput"><span class="identifier">svg_2d_plot</span></code>
- Defaults</a></span></dt>
-</dl></dd>
-<dt><span class="section"> Public Interfaces</span></dt>
-<dd><dl>
-<dt><span class="section"><a href="svg_plot/interface/svg_interface.html"> <code class="computeroutput"><span class="identifier">svg</span></code>
- Public Interface</a></span></dt>
-<dt><span class="section"> svg_1d_plot
Public Interface</span></dt>
-<dt><span class="section"> svg_2d_plot
Public Interface</span></dt>
-<dt><span class="section"> svg_boxplot
Public Interface</span></dt>
-<dt><span class="section"> Show settings Public Interface</span></dt>
+<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"> Plot Defaults</span></dt>
+<dd><dl>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/plot_defaults/1d_defaults.html">
+ <code class="computeroutput"><span class="identifier">svg_1d_plot</span></code> Defaults</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/plot_defaults/2d_defaults.html">
+ <code class="computeroutput"><span class="identifier">svg_2d_plot</span></code> Defaults</a></span></dt>
+</dl></dd>
+<dt><span class="section"> Public Interfaces</span></dt>
+<dd><dl>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/interface/svg_interface.html">
+ <code class="computeroutput"><span class="identifier">svg</span></code> Public Interface</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/interface/svg_1d_plot_interface.html">
+ <code class="computeroutput"><span class="identifier">svg_1d_plot</span></code> Public Interface</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/interface/svg_2d_plot_interface.html">
+ <code class="computeroutput"><span class="identifier">svg_2d_plot</span></code> Public Interface</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/interface/svg_boxplot_interface.html">
+ <code class="computeroutput"><span class="identifier">svg_boxplot</span></code> Public Interface</a></span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/interface/settings.html"> Show
+ settings Public Interface</a></span></dt>
</dl></dd>
<dt><span class="section">Reference</span></dt>
<dd><dl>
@@ -130,14 +137,13 @@
<dt><span class="section">Header <boost/svg_plot/svg_fwd.hpp></span></dt>
<dt><span class="section">Header <boost/svg_plot/svg_style.hpp></span></dt>
</dl></dd>
-<dt><span class="section"> Implementation & Rationale</span></dt>
-<dt><span class="section"> To Do List</span></dt>
-<dt><span class="section"> Acknowledgements</span></dt>
+<dt><span class="section"><a href="plotting_graphs_in_svg_format/implementation.html"> Implementation
+ & 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">Typedef Index</span></dt>
-<dt><span class="section">Function Index</span></dt>
-<dt><span class="section">Macro Index</span></dt>
-<dt><span class="section">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">
@@ -164,7 +170,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: February 20, 2009 at 18:41:52 GMT</small></p></td>
+<td align="left"><p><small>Last revised: February 27, 2009 at 15:09:53 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/color.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/color.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/color.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -7,7 +7,7 @@
<link rel="home" href="../index.html" title="SVG Plot">
<link rel="up" href="../index.html" title="SVG Plot">
<link rel="prev" href="howtouse.html" title="How To Use This Documentation">
-<link rel="next" href="tutorial_code_1d_simple.html" title="Tutorials: 1D">
+<link rel="next" href="tutorial_code_1d_simple.html" title="1D Tutorials">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -33,7 +33,7 @@
by the SVG standard</a>.
</p>
<a name="svg_plot.color._code__phrase_role__identifier__svg_color_constant__phrase___code_"></a><h4>
-<a name="id773832"></a>
+<a name="id808247"></a>
<a class="link" href="color.html#svg_plot.color._code__phrase_role__identifier__svg_color_constant__phrase___code_"><code class="computeroutput"><span class="identifier">svg_color_constant</span></code></a>
</h4>
<p>
@@ -63,7 +63,7 @@
for defining defaults for functions, for example.
</p>
<a name="svg_plot.color.example_of_using__code__phrase_role__identifier__svg_color_constant__phrase___code_"></a><h5>
-<a name="id773909"></a>
+<a name="id808324"></a>
<a class="link" href="color.html#svg_plot.color.example_of_using__code__phrase_role__identifier__svg_color_constant__phrase___code_">Example
of using <code class="computeroutput"><span class="identifier">svg_color_constant</span></code></a>
</h5>
@@ -101,7 +101,7 @@
</td></tr>
</table></div>
<a name="svg_plot.color._code__phrase_role__identifier__svg_color__phrase___code__interface"></a><h5>
-<a name="id774184"></a>
+<a name="id808599"></a>
<a class="link" href="color.html#svg_plot.color._code__phrase_role__identifier__svg_color__phrase___code__interface"><code class="computeroutput"><span class="identifier">svg_color</span></code> interface</a>
</h5>
<p>
@@ -113,7 +113,7 @@
<span class="identifier">svg_color</span><span class="special">(</span><span class="identifier">svg_color_constant</span><span class="special">);</span> <span class="comment">// Use a pre-existing color constant.
</span></pre>
<a name="svg_plot.color.example_of_using__code__phrase_role__identifier__svg_color__phrase___code_"></a><h5>
-<a name="id774274"></a>
+<a name="id808689"></a>
<a class="link" href="color.html#svg_plot.color.example_of_using__code__phrase_role__identifier__svg_color__phrase___code_">Example
of using <code class="computeroutput"><span class="identifier">svg_color</span></code></a>
</h5>
@@ -149,7 +149,7 @@
</p></td></tr>
</table></div>
<a name="svg_plot.color.colors_internals_and_rationale"></a><h4>
-<a name="id781769"></a>
+<a name="id816724"></a>
<a class="link" href="color.html#svg_plot.color.colors_internals_and_rationale">Colors Internals
and Rationale</a>
</h4>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/howtouse.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/howtouse.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/howtouse.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -62,7 +62,7 @@
(dot) com or jakevoytko (at) gmail (dot) com.
</p>
<a name="svg_plot.howtouse.admonishments"></a><h4>
-<a name="id773765"></a>
+<a name="id808180"></a>
<a class="link" href="howtouse.html#svg_plot.howtouse.admonishments">Admonishments</a>
</h4>
<div class="note"><table border="0" summary="Note">
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_1d_plot_interface.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_1d_plot_interface.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_1d_plot_interface.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -27,7 +27,7 @@
<a name="svg_plot.interface.svg_1d_plot_interface"></a><a class="link" href="svg_1d_plot_interface.html" title="svg_1d_plot Public Interface"> <code class="computeroutput"><span class="identifier">svg_1d_plot</span></code> Public Interface</a>
</h3></div></div></div>
<div class="table">
-<a name="id836579"></a><p class="title"><b>Table 8. 1D_plot Miscellaneous Functions</b></p>
+<a name="id870219"></a><p class="title"><b>Table 8. 1D_plot Miscellaneous Functions</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Miscellaneous Functions">
<colgroup>
<col>
@@ -273,7 +273,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id837287"></a><p class="title"><b>Table 9. 1D_plot Commands</b></p>
+<a name="id871485"></a><p class="title"><b>Table 9. 1D_plot Commands</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Commands">
<colgroup>
<col>
@@ -496,7 +496,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id837865"></a><p class="title"><b>Table 10. 1D_plot Colors</b></p>
+<a name="id872063"></a><p class="title"><b>Table 10. 1D_plot Colors</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Colors">
<colgroup>
<col>
@@ -709,7 +709,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id839351"></a><p class="title"><b>Table 11. 1D_plot X-Axis Definition</b></p>
+<a name="id872866"></a><p class="title"><b>Table 11. 1D_plot X-Axis Definition</b></p>
<div class="table-contents"><table class="table" summary="1D_plot X-Axis Definition">
<colgroup>
<col>
@@ -922,7 +922,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_1d_plot_interface.the_1d_plot__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__method"></a><h5>
-<a name="id840126"></a>
+<a name="id873783"></a>
<a class="link" href="svg_1d_plot_interface.html#svg_plot.interface.svg_1d_plot_interface.the_1d_plot__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__method">The
1D_plot <code class="computeroutput"><span class="identifier">plot</span><span class="special">()</span></code>
Method</a>
@@ -933,7 +933,7 @@
named parameters, as well as a deduced parameter.
</p>
<div class="table">
-<a name="id840161"></a><p class="title"><b>Table 12. 1D_plot Required parameter</b></p>
+<a name="id873818"></a><p class="title"><b>Table 12. 1D_plot Required parameter</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Required parameter">
<colgroup>
<col>
@@ -1014,7 +1014,7 @@
</p></td></tr>
</table></div>
<div class="table">
-<a name="id840280"></a><p class="title"><b>Table 13. 1D_plot Deduced parameter</b></p>
+<a name="id873937"></a><p class="title"><b>Table 13. 1D_plot Deduced parameter</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Deduced parameter">
<colgroup>
<col>
@@ -1075,7 +1075,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id840377"></a><p class="title"><b>Table 14. 1D_plot Optional Parameters</b></p>
+<a name="id874034"></a><p class="title"><b>Table 14. 1D_plot Optional Parameters</b></p>
<div class="table-contents"><table class="table" summary="1D_plot Optional Parameters">
<colgroup>
<col>
@@ -1225,7 +1225,7 @@
method:
</p>
<a name="svg_plot.interface.svg_1d_plot_interface.using_1d_plot_fill_and_stroke_colors"></a><h5>
-<a name="id840800"></a>
+<a name="id874456"></a>
<a class="link" href="svg_1d_plot_interface.html#svg_plot.interface.svg_1d_plot_interface.using_1d_plot_fill_and_stroke_colors">Using
1D_plot fill and stroke colors</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_2d_plot_interface.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_2d_plot_interface.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_2d_plot_interface.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -27,7 +27,7 @@
<a name="svg_plot.interface.svg_2d_plot_interface"></a><a class="link" href="svg_2d_plot_interface.html" title="svg_2d_plot Public Interface"> <code class="computeroutput"><span class="identifier">svg_2d_plot</span></code> Public Interface</a>
</h3></div></div></div>
<div class="table">
-<a name="id842157"></a><p class="title"><b>Table 15. 2D_plot Miscellaneous</b></p>
+<a name="id874557"></a><p class="title"><b>Table 15. 2D_plot Miscellaneous</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Miscellaneous">
<colgroup>
<col>
@@ -142,7 +142,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id842467"></a><p class="title"><b>Table 16. 2D_plot On/Off Switches</b></p>
+<a name="id874867"></a><p class="title"><b>Table 16. 2D_plot On/Off Switches</b></p>
<div class="table-contents"><table class="table" summary="2D_plot On/Off Switches">
<colgroup>
<col>
@@ -859,7 +859,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id845042"></a><p class="title"><b>Table 17. 2D_plot Colors</b></p>
+<a name="id878592"></a><p class="title"><b>Table 17. 2D_plot Colors</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Colors">
<colgroup>
<col>
@@ -1216,7 +1216,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id846191"></a><p class="title"><b>Table 18. 2D_plot Axis Information</b></p>
+<a name="id879917"></a><p class="title"><b>Table 18. 2D_plot Axis Information</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Axis Information">
<colgroup>
<col>
@@ -1732,7 +1732,7 @@
the settings from accessors below.
</p>
<div class="table">
-<a name="id847968"></a><p class="title"><b>Table 19. 2D_plot Accessor functions</b></p>
+<a name="id881893"></a><p class="title"><b>Table 19. 2D_plot Accessor functions</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Accessor functions">
<colgroup>
<col>
@@ -1841,7 +1841,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_2d_plot_interface.the__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__method"></a><h5>
-<a name="id848295"></a>
+<a name="id882220"></a>
<a class="link" href="svg_2d_plot_interface.html#svg_plot.interface.svg_2d_plot_interface.the__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__method">The
<code class="computeroutput"><span class="identifier">plot</span><span class="special">()</span></code>
Method</a>
@@ -1851,7 +1851,7 @@
method supports two parameters & some chained functions.
</p>
<div class="table">
-<a name="id848329"></a><p class="title"><b>Table 20. 2D_plot Required Parameter</b></p>
+<a name="id882255"></a><p class="title"><b>Table 20. 2D_plot Required Parameter</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Required Parameter">
<colgroup>
<col>
@@ -1914,7 +1914,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id848435"></a><p class="title"><b>Table 21. 2D_plotChained Functions</b></p>
+<a name="id882360"></a><p class="title"><b>Table 21. 2D_plotChained Functions</b></p>
<div class="table-contents"><table class="table" summary="2D_plotChained Functions">
<colgroup>
<col>
@@ -1969,7 +1969,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id848521"></a><p class="title"><b>Table 22. 2D_plot Optional Parameters</b></p>
+<a name="id882447"></a><p class="title"><b>Table 22. 2D_plot Optional Parameters</b></p>
<div class="table-contents"><table class="table" summary="2D_plot Optional Parameters">
<colgroup>
<col>
@@ -2210,7 +2210,7 @@
Here are some examples of correct uses:
</p>
<a name="svg_plot.interface.svg_2d_plot_interface.using_fill_and_stroke_colors"></a><h4>
-<a name="id851150"></a>
+<a name="id883074"></a>
<a class="link" href="svg_2d_plot_interface.html#svg_plot.interface.svg_2d_plot_interface.using_fill_and_stroke_colors">Using
fill and stroke colors</a>
</h4>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_boxplot_interface.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_boxplot_interface.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_boxplot_interface.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -27,7 +27,7 @@
<a name="svg_plot.interface.svg_boxplot_interface"></a><a class="link" href="svg_boxplot_interface.html" title="svg_boxplot Public Interface"> <code class="computeroutput"><span class="identifier">svg_boxplot</span></code> Public Interface</a>
</h3></div></div></div>
<div class="table">
-<a name="id851243"></a><p class="title"><b>Table 23. Boxplot Miscellaneous</b></p>
+<a name="id883168"></a><p class="title"><b>Table 23. Boxplot Miscellaneous</b></p>
<div class="table-contents"><table class="table" summary="Boxplot Miscellaneous">
<colgroup>
<col>
@@ -102,7 +102,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id851472"></a><p class="title"><b>Table 24. Boxplot Commands</b></p>
+<a name="id883397"></a><p class="title"><b>Table 24. Boxplot Commands</b></p>
<div class="table-contents"><table class="table" summary="Boxplot Commands">
<colgroup>
<col>
@@ -190,7 +190,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id851726"></a><p class="title"><b>Table 25. Boxplot Colors</b></p>
+<a name="id883650"></a><p class="title"><b>Table 25. Boxplot Colors</b></p>
<div class="table-contents"><table class="table" summary="Boxplot Colors">
<colgroup>
<col>
@@ -341,7 +341,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id852279"></a><p class="title"><b>Table 26. Boxplot Axis Information</b></p>
+<a name="id886550"></a><p class="title"><b>Table 26. Boxplot Axis Information</b></p>
<div class="table-contents"><table class="table" summary="Boxplot Axis Information">
<colgroup>
<col>
@@ -528,7 +528,7 @@
preceeding code).
</p>
<a name="svg_plot.interface.svg_boxplot_interface.the__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__function"></a><h5>
-<a name="id852951"></a>
+<a name="id887222"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.the__code__phrase_role__identifier__plot__phrase__phrase_role__special______phrase___code__function">The
<code class="computeroutput"><span class="identifier">plot</span><span class="special">()</span></code>
Function</a>
@@ -539,7 +539,7 @@
control their display.
</p>
<div class="table">
-<a name="id854224"></a><p class="title"><b>Table 27. Required parameters</b></p>
+<a name="id887257"></a><p class="title"><b>Table 27. Required parameters</b></p>
<div class="table-contents"><table class="table" summary="Required parameters">
<colgroup>
<col>
@@ -602,7 +602,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id854331"></a><p class="title"><b>Table 28. Optional Functions</b></p>
+<a name="id887364"></a><p class="title"><b>Table 28. Optional Functions</b></p>
<div class="table-contents"><table class="table" summary="Optional Functions">
<colgroup>
<col>
@@ -894,7 +894,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_boxplot_interface.styles___provide_additional_control"></a><h5>
-<a name="id855200"></a>
+<a name="id888233"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.styles___provide_additional_control">Styles
- provide Additional Control</a>
</h5>
@@ -911,7 +911,7 @@
</span><span class="keyword">class</span> <span class="identifier">ticks_labels_style</span><span class="special">;</span> <span class="comment">// Parameters of the axis, grids, & ticks and their value labels.
</span></pre>
<a name="svg_plot.interface.svg_boxplot_interface.box_style_defines_a_rectangular_box_"></a><h4>
-<a name="id855318"></a>
+<a name="id888912"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.box_style_defines_a_rectangular_box_">Box
Style defines a rectangular box.</a>
</h4>
@@ -946,7 +946,7 @@
<span class="special">};</span> <span class="comment">// class box_style
</span></pre>
<div class="table">
-<a name="id855781"></a><p class="title"><b>Table 29. Box Style Constructor</b></p>
+<a name="id889375"></a><p class="title"><b>Table 29. Box Style Constructor</b></p>
<div class="table-contents"><table class="table" summary="Box Style Constructor">
<colgroup>
<col>
@@ -1114,7 +1114,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id856012"></a><p class="title"><b>Table 30. Box Style Accessor functions (all are chainable).</b></p>
+<a name="id889607"></a><p class="title"><b>Table 30. Box Style Accessor functions (all are chainable).</b></p>
<div class="table-contents"><table class="table" summary="Box Style Accessor functions (all are chainable).">
<colgroup>
<col>
@@ -1317,7 +1317,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_boxplot_interface.text_style_defines_font__size__style___amp__stretch__weight__decoration__"></a><h4>
-<a name="id856280"></a>
+<a name="id889875"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.text_style_defines_font__size__style___amp__stretch__weight__decoration__">Text
Style defines Font, Size, Style (& stretch, weight, decoration).</a>
</h4>
@@ -1342,7 +1342,7 @@
</span><span class="special">}</span>
</pre>
<div class="table">
-<a name="id856805"></a><p class="title"><b>Table 31. Text Style Constructor</b></p>
+<a name="id890253"></a><p class="title"><b>Table 31. Text Style Constructor</b></p>
<div class="table-contents"><table class="table" summary="Text Style Constructor">
<colgroup>
<col>
@@ -1531,7 +1531,7 @@
produces a Lucida Sans Unicode font of size of 14 svg units (usually pixels).
</p>
<div class="table">
-<a name="id857104"></a><p class="title"><b>Table 32. Text Style Accessor functions</b></p>
+<a name="id890551"></a><p class="title"><b>Table 32. Text Style Accessor functions</b></p>
<div class="table-contents"><table class="table" summary="Text Style Accessor functions">
<colgroup>
<col>
@@ -1745,7 +1745,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_boxplot_interface.plot_point_style_defines_how_data_points_are_marked_"></a><h4>
-<a name="id857389"></a>
+<a name="id890837"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.plot_point_style_defines_how_data_points_are_marked_">plot_point_style
defines how data points are marked.</a>
</h4>
@@ -1771,7 +1771,7 @@
<span class="special">}</span>
</pre>
<div class="table">
-<a name="id857842"></a><p class="title"><b>Table 33. Plot Point Style Constructor</b></p>
+<a name="id891363"></a><p class="title"><b>Table 33. Plot Point Style Constructor</b></p>
<div class="table-contents"><table class="table" summary="Plot Point Style Constructor">
<colgroup>
<col>
@@ -1957,7 +1957,7 @@
</span><span class="special">};</span>
</pre>
<div class="table">
-<a name="id858514"></a><p class="title"><b>Table 34. Plot Point Style Accessor Functions</b></p>
+<a name="id892035"></a><p class="title"><b>Table 34. Plot Point Style Accessor Functions</b></p>
<div class="table-contents"><table class="table" summary="Plot Point Style Accessor Functions">
<colgroup>
<col>
@@ -2160,7 +2160,7 @@
</table></div>
</div>
<br class="table-break"><a name="svg_plot.interface.svg_boxplot_interface.plot_line_style_defines_how_data_points_are_joined_"></a><h4>
-<a name="id858991"></a>
+<a name="id892308"></a>
<a class="link" href="svg_boxplot_interface.html#svg_plot.interface.svg_boxplot_interface.plot_line_style_defines_how_data_points_are_joined_">plot_line_style
defines how data points are joined.</a>
</h4>
@@ -2180,7 +2180,7 @@
</span> <span class="special">}</span>
</pre>
<div class="table">
-<a name="id859356"></a><p class="title"><b>Table 35. Plot Line Style Constructor</b></p>
+<a name="id892672"></a><p class="title"><b>Table 35. Plot Line Style Constructor</b></p>
<div class="table-contents"><table class="table" summary="Plot Line Style Constructor">
<colgroup>
<col>
@@ -2355,7 +2355,7 @@
<pre class="programlisting"><span class="identifier">my_plot</span><span class="special">.</span><span class="identifier">plot</span><span class="special">(</span><span class="identifier">data3</span><span class="special">,</span> <span class="string">"-1 + 2x"</span><span class="special">).</span><span class="identifier">bezier_on</span><span class="special">(</span><span class="keyword">true</span><span class="special">).</span><span class="identifier">line_color</span><span class="special">(</span><span class="identifier">blue</span><span class="special">);</span>
</pre>
<div class="table">
-<a name="id859684"></a><p class="title"><b>Table 36. Plot Line Style Accessor functions</b></p>
+<a name="id893000"></a><p class="title"><b>Table 36. Plot Line Style Accessor functions</b></p>
<div class="table-contents"><table class="table" summary="Plot Line Style Accessor functions">
<colgroup>
<col>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_interface.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_interface.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/interface/svg_interface.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -28,7 +28,7 @@
Public Interface</a>
</h3></div></div></div>
<div class="table">
-<a name="id832184"></a><p class="title"><b>Table 3. class `svg` Standard
+<a name="id865345"></a><p class="title"><b>Table 3. class `svg` Standard
C++ Methods</b></p>
<div class="table-contents"><table class="table" summary="class `svg` Standard
C++ Methods">
@@ -74,7 +74,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id832261"></a><p class="title"><b>Table 4. `svg` shapes</b></p>
+<a name="id865422"></a><p class="title"><b>Table 4. `svg` shapes</b></p>
<div class="table-contents"><table class="table" summary="`svg` shapes">
<colgroup>
<col>
@@ -410,7 +410,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id834005"></a><p class="title"><b>Table 5. Special methods</b></p>
+<a name="id867104"></a><p class="title"><b>Table 5. Special methods</b></p>
<div class="table-contents"><table class="table" summary="Special methods">
<colgroup>
<col>
@@ -476,7 +476,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id834206"></a><p class="title"><b>Table 6. `svg` Copyright</b></p>
+<a name="id868544"></a><p class="title"><b>Table 6. `svg` Copyright</b></p>
<div class="table-contents"><table class="table" summary="`svg` Copyright">
<colgroup>
<col>
@@ -786,7 +786,7 @@
</table></div>
</div>
<br class="table-break"><div class="table">
-<a name="id835878"></a><p class="title"><b>Table 7. `svg` document settings and writing</b></p>
+<a name="id869518"></a><p class="title"><b>Table 7. `svg` document settings and writing</b></p>
<div class="table-contents"><table class="table" summary="`svg` document settings and writing">
<colgroup>
<col>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/1d_defaults.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/1d_defaults.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/1d_defaults.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -32,7 +32,7 @@
of the plotting.
</p>
<div class="table">
-<a name="id829400"></a><p class="title"><b>Table 1. Default Values</b></p>
+<a name="id863545"></a><p class="title"><b>Table 1. Default Values</b></p>
<div class="table-contents"><table class="table" summary="Default Values">
<colgroup>
<col>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/2d_defaults.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/2d_defaults.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/plot_defaults/2d_defaults.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -32,7 +32,7 @@
beginning of the plotting. Here is a table of the defaults:
</p>
<div class="table">
-<a name="id831298"></a><p class="title"><b>Table 2. Default Values</b></p>
+<a name="id864310"></a><p class="title"><b>Table 2. Default Values</b></p>
<div class="table-contents"><table class="table" summary="Default Values">
<colgroup>
<col>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/svg_boxplot_tutorial/svg_boxplot_tutorial_simple.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -79,7 +79,7 @@
<span class="special">}</span>
</pre>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.image_boxplot_simple_svg"></a><h5>
-<a name="id826031"></a>
+<a name="id859696"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.image_boxplot_simple_svg">Image
boxplot_simple.svg</a>
</h5>
@@ -87,7 +87,7 @@
<span class="inlinemediaobject"><img src="../../images/boxplot_simple.png" alt="boxplot_simple"></span>
</p>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.basic_example_breakdown"></a><h5>
-<a name="id826062"></a>
+<a name="id859728"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.basic_example_breakdown">Basic
Example Breakdown</a>
</h5>
@@ -95,7 +95,7 @@
Let's examine what this does.
</p>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.initializing_a_new_boxplot"></a><h5>
-<a name="id826080"></a>
+<a name="id859746"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.initializing_a_new_boxplot">Initializing
a new boxplot</a>
</h5>
@@ -104,7 +104,7 @@
svg_boxplot my_plot;
</p>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_a_color"></a><h5>
-<a name="id826097"></a>
+<a name="id859762"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_a_color">Setting
a color</a>
</h5>
@@ -115,7 +115,7 @@
<pre class="programlisting"><span class="identifier">my_plot</span><span class="special">.</span><span class="identifier">background_border_color</span><span class="special">(</span><span class="identifier">black</span><span class="special">);</span>
</pre>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_strings_in_the_plot"></a><h5>
-<a name="id826140"></a>
+<a name="id859806"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_strings_in_the_plot">Setting
strings in the plot</a>
</h5>
@@ -129,7 +129,7 @@
<span class="special">.</span><span class="identifier">y_label</span><span class="special">(</span><span class="string">"Population Size"</span><span class="special">);</span>
</pre>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_axis_information"></a><h4>
-<a name="id826222"></a>
+<a name="id859887"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.setting_axis_information">Setting
axis information</a>
</h4>
@@ -145,7 +145,7 @@
.y_major_interval(20);
</p>
<a name="svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.writing_to_a_file"></a><h5>
-<a name="id826242"></a>
+<a name="id859908"></a>
<a class="link" href="svg_boxplot_tutorial_simple.html#svg_plot.svg_boxplot_tutorial.svg_boxplot_tutorial_simple.writing_to_a_file">Writing
to a file</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_simple_code_example.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_simple_code_example.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_simple_code_example.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -61,7 +61,7 @@
<span class="special">}</span>
</pre>
<a name="svg_plot.tutorial_2d_code_simple.2d_simple_code_example.resulting_simple_2d_example_image"></a><h5>
-<a name="id815221"></a>
+<a name="id849019"></a>
<a class="link" href="2d_simple_code_example.html#svg_plot.tutorial_2d_code_simple.2d_simple_code_example.resulting_simple_2d_example_image">Resulting
Simple_2D Example Image</a>
</h5>
@@ -69,7 +69,7 @@
<span class="inlinemediaobject"><img src="../../images/2d_simple.png" alt="2d_simple"></span>
</p>
<a name="svg_plot.tutorial_2d_code_simple.2d_simple_code_example.simple_2d_example_breakdown"></a><h5>
-<a name="id815252"></a>
+<a name="id849051"></a>
<a class="link" href="2d_simple_code_example.html#svg_plot.tutorial_2d_code_simple.2d_simple_code_example.simple_2d_example_breakdown">Simple_2D
Example Breakdown</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_special.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_special.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_2d_code_simple/2d_special.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -28,7 +28,7 @@
2D Special Features</a>
</h3></div></div></div>
<a name="svg_plot.tutorial_2d_code_simple.2d_special.y_axis_grid_lines"></a><h5>
-<a name="id818341"></a>
+<a name="id851398"></a>
<a class="link" href="2d_special.html#svg_plot.tutorial_2d_code_simple.2d_special.y_axis_grid_lines">Y-Axis
Grid Lines</a>
</h5>
@@ -70,7 +70,7 @@
<span class="special">.</span><span class="identifier">y_minor_grid_width</span><span class="special">(</span><span class="number">1</span><span class="special">)</span>
</pre>
<a name="svg_plot.tutorial_2d_code_simple.2d_special.external_y_axis_style"></a><h5>
-<a name="id818696"></a>
+<a name="id851753"></a>
<a class="link" href="2d_special.html#svg_plot.tutorial_2d_code_simple.2d_special.external_y_axis_style">External
Y Axis Style</a>
</h5>
@@ -90,7 +90,7 @@
</p></td></tr>
</table></div>
<a name="svg_plot.tutorial_2d_code_simple.2d_special.fill_the_area_between_the_plot_and_the_axis"></a><h5>
-<a name="id818783"></a>
+<a name="id851841"></a>
<a class="link" href="2d_special.html#svg_plot.tutorial_2d_code_simple.2d_special.fill_the_area_between_the_plot_and_the_axis">Fill
the area between the plot and the axis</a>
</h5>
@@ -109,7 +109,7 @@
<span class="inlinemediaobject"><img src="../../images/2d_area_fill.png" alt="2d_area_fill"></span>
</p>
<a name="svg_plot.tutorial_2d_code_simple.2d_special.curve_interpolation"></a><h5>
-<a name="id818929"></a>
+<a name="id851986"></a>
<a class="link" href="2d_special.html#svg_plot.tutorial_2d_code_simple.2d_special.curve_interpolation">Curve
Interpolation</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Tutorials: 1D</title>
+<title>1D Tutorials</title>
<link rel="stylesheet" href="../../../../../../../../../boost_trunk/doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="../index.html" title="SVG Plot">
<link rel="up" href="../index.html" title="SVG Plot">
<link rel="prev" href="color.html" title="Colors">
-<link rel="next" href="tutorial_code_1d_simple/tutorial_code_1d_example.html" title="Simple 1D Example">
+<link rel="next" href="tutorial_code_1d_simple/1d_vector_tutorial.html" title="1-D Vector Example">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -20,15 +20,13 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="color.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial_code_1d_simple/tutorial_code_1d_example.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/next.png" alt="Next"></a>
+<a accesskey="p" href="color.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial_code_1d_simple/1d_vector_tutorial.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="svg_plot.tutorial_code_1d_simple"></a><a class="link" href="tutorial_code_1d_simple.html" title="Tutorials: 1D"> Tutorials: 1D</a>
+<a name="svg_plot.tutorial_code_1d_simple"></a><a class="link" href="tutorial_code_1d_simple.html" title="1D Tutorials"> 1D Tutorials</a>
</h2></div></div></div>
<div class="toc"><dl>
-<dt><span class="section"><a href="tutorial_code_1d_simple/tutorial_code_1d_example.html">
- Simple 1D Example</a></span></dt>
<dt><span class="section"><a href="tutorial_code_1d_simple/1d_vector_tutorial.html">
1-D Vector Example</a></span></dt>
<dt><span class="section"><a href="tutorial_code_1d_simple/demo_1d_containers_tutorial.html">
@@ -48,9 +46,6 @@
</dl></div>
<p>
</p>
-<p>
- [\include 1d_autoscale_containers.qbk]
- </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
@@ -62,7 +57,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="color.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial_code_1d_simple/tutorial_code_1d_example.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/next.png" alt="Next"></a>
+<a accesskey="p" href="color.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial_code_1d_simple/1d_vector_tutorial.html"><img src="../../../../../../../../../boost_trunk/doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/1d_special.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/1d_special.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/1d_special.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -5,7 +5,7 @@
<link rel="stylesheet" href="../../../../../../../../../../boost_trunk/doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="../../index.html" title="SVG Plot">
-<link rel="up" href="../tutorial_code_1d_simple.html" title="Tutorials: 1D">
+<link rel="up" href="../tutorial_code_1d_simple.html" title="1D Tutorials">
<link rel="prev" href="full_1d_layout.html" title="Tutorial: 1D Full Layout Example">
<link rel="next" href="demo_1d_axis_scaling.html" title="1-D Axis Scaling">
</head>
@@ -28,7 +28,7 @@
1D Special Features</a>
</h3></div></div></div>
<a name="svg_plot.tutorial_code_1d_simple.1d_special.x_axis_grid_lines"></a><h5>
-<a name="id792817"></a>
+<a name="id824244"></a>
<a class="link" href="1d_special.html#svg_plot.tutorial_code_1d_simple.1d_special.x_axis_grid_lines">X-Axis
Grid Lines</a>
</h5>
@@ -52,7 +52,7 @@
<span class="inlinemediaobject"><img src="../../images/1d_x_grid.png" alt="1d_x_grid"></span>
</p>
<a name="svg_plot.tutorial_code_1d_simple.1d_special.x_axis_external_style"></a><h5>
-<a name="id792968"></a>
+<a name="id825624"></a>
<a class="link" href="1d_special.html#svg_plot.tutorial_code_1d_simple.1d_special.x_axis_external_style">X-Axis
External Style</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/full_1d_layout.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/full_1d_layout.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/full_1d_layout.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -5,7 +5,7 @@
<link rel="stylesheet" href="../../../../../../../../../../boost_trunk/doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="../../index.html" title="SVG Plot">
-<link rel="up" href="../tutorial_code_1d_simple.html" title="Tutorials: 1D">
+<link rel="up" href="../tutorial_code_1d_simple.html" title="1D Tutorials">
<link rel="prev" href="auto_1d_containers_tutorial.html" title="1-D Auto Multiple Containers Examples">
<link rel="next" href="1d_special.html" title="Tutorial: 1D Special Features">
</head>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/tutorial_code_1d_example.html
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/tutorial_code_1d_example.html (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/html/svg_plot/tutorial_code_1d_simple/tutorial_code_1d_example.html 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -62,7 +62,7 @@
<span class="inlinemediaobject"><img src="../../images/1d_simple.png" alt="1d_simple"></span>
</p>
<a name="svg_plot.tutorial_code_1d_simple.tutorial_code_1d_example.a_note_on_chaining_syntax"></a><h5>
-<a name="id782359"></a>
+<a name="id850089"></a>
<a class="link" href="tutorial_code_1d_example.html#svg_plot.tutorial_code_1d_simple.tutorial_code_1d_example.a_note_on_chaining_syntax">A
Note on Chaining Syntax</a>
</h5>
@@ -106,7 +106,7 @@
code to read more clearly <span class="inlinemediaobject"><img src="../../images/smiley.png" alt="smiley"></span>
</p>
<a name="svg_plot.tutorial_code_1d_simple.tutorial_code_1d_example.simple_1d_example___breakdown"></a><h5>
-<a name="id782712"></a>
+<a name="id850442"></a>
<a class="link" href="tutorial_code_1d_example.html#svg_plot.tutorial_code_1d_simple.tutorial_code_1d_example.simple_1d_example___breakdown">Simple
1D Example - Breakdown</a>
</h5>
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/doc/svg_plot.qbk
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/doc/svg_plot.qbk (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/doc/svg_plot.qbk 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,4 +1,4 @@
-[article SVG Plot
+[article Plotting graphs in SVG format
[quickbook 1.4]
[id SVG_plot]
[authors [Voytko, Jake], [Bristow, Paul A.]]
@@ -21,6 +21,9 @@
[def :-) [$images/smiley.png]]
[def __boostbook__ [@http://www.boost.org/doc/html/boostbook.html BoostBook]]
[def __docbook__ [@http://www.docbook.org/ DocBook]]
+[def __Boost_Assign [@$(BOOST_ROOT)/libs/assign/doc/index.html Boost.Assign]]
+
+[/def __Boost_Assign [@http://www.boost.org/doc/libs/1_38_0/libs/assign/doc/index.html Boost.Assign]]
[/ Links ]
[/ By Eric's convention prefix *and* suffix _ means a defined value. But Use JM and SW double underscore prefix convention.]
@@ -128,18 +131,10 @@
<title>Class Index</title>
</index>
- <index type="typedef_name">
- <title>Typedef Index</title>
- </index>
-
<index type="function_name">
<title>Function Index</title>
</index>
- <index type="macro_name">
- <title>Macro Index</title>
- </index>
-
<index/>
'''
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_full_layout.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_full_layout.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_full_layout.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -2,7 +2,6 @@
\brief Example of 1 D plot of 3 different STL container types using several layout features.
\details creates file 1d_complex.svg
\author Jacob Voytko
-
\date 2007
*/
Deleted: sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_simple.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/1d_simple.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
+++ (empty file)
@@ -1,42 +0,0 @@
-/*! \file 1d_simple.cpp
- \brief Example of a simple 1D plot of two vectors of data.
- \details Creates file 1d_simple.svg
-
- \author Jacob Voytko
- \date 2007
- */
-
-// Copyright Jacob Voytko 2007
-
-// Distributed under the Boost Software License, Version 1.0.
-// For more information, see http://www.boost.org
-
-#include <boost/svg_plot/svg_1d_plot.hpp>
-#include <vector>
-
-using namespace boost::svg;
-using std::vector;
-
-int main()
-{
- vector<double> dan_times;
- vector<double> elaine_times;
-
- dan_times.push_back(3.1);
- dan_times.push_back(4.2);
- elaine_times.push_back(2.1);
- elaine_times.push_back(7.8);
-
- svg_1d_plot my_plot;
-
- my_plot.legend_on(true)
- .title("Race Times")
- .x_range(-1, 11);
-
- my_plot.plot(dan_times, "Dan").stroke_color(blue);
- my_plot.plot(elaine_times, "Elaine").stroke_color(orange);
-
- my_plot.write("./1d_simple.svg");
- return 0;
-} // int main()
-
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -98,7 +98,7 @@
svg_2d_plot_series& s_sin = my_plot.plot(data_sin, "sin(x)").area_fill(red);
std::cout << "s_sin.area_fill() " << s_sin.area_fill() << std::endl;
//svg_2d_plot_series& s_cos = my_plot.plot(data_cos, "cos(x)").area_fill(blue).shape(square);
- svg_2d_plot_series& s_cos = my_plot.plot(data_cos, "cos(x)").area_fill(blank).shape(square);
+ svg_2d_plot_series& s_cos = my_plot.plot(data_cos, "cos(x)").area_fill(blue).shape(square);
// Note that svg_color(blank) or svg_color(false) returns a non-color blank, so no fill.
std::cout << "s_cos.area_fill() " << s_cos.area_fill() << std::endl;
svg_2d_plot_series& s_tan = my_plot.plot(data_tan, "tan(x)").shape(cone).line_on(false);
@@ -108,7 +108,6 @@
my_plot.write("./2d_area_fill_1.svg");
std::cout << my_plot.title() << std::endl;
- //
//my_plot.title("Plot 2 of 50 * sin(x), cos(x) and tan(x)");
my_plot.plot(data_cos, "cos(x)").area_fill(green).shape(square).fill_color(red);
my_plot.write("./2d_area_fill_2.svg");
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_y_grid.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_y_grid.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/2d_y_grid.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,13 +1,12 @@
/*! \file 2d_y_grid.cpp
-
\brief 2D plot with Y axis grids.
-
+ \details Shows an example of adding a Y horizontal grid to a 2D plot.
\author Jacob Voytko
-
\date 2007
*/
// Copyright Jacob Voytko 2007
+
// Distributed under the Boost Software License, Version 1.0.
// For more information, see http://www.boost.org
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_containers.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_containers.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/auto_1d_containers.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -34,7 +34,7 @@
// Note neither of these check for 'limits' (infinite, NaN) values.
#include <boost/svg_plot/detail/pair.hpp>
- using boost::svg::detail::operator<<; // Output pair as 1.23, 4.56
+ using boost::svg::detail::operator<<; // Output pair as, for example: 1.23, 4.56
//#include <boost/svg_plot/show_1d_settings.hpp>
// Only needed for showing which settings in use.
@@ -58,7 +58,6 @@
#include <utility>
using std::pair;
- using boost::svg::detail::operator<<; // Output pair as, for example: 1.23, 4.56
#include <algorithm>
using std::multiplies;
@@ -136,13 +135,14 @@
/*`Finally, we add the data series containers to the plot, and write the SVG out to file.*/
my_1d_plot.plot(my_data_1, "data_1");
- my_1d_plot.plot(my_data_2, "data_2");
+ my_1d_plot.plot(my_data_2, "data_2").stroke_color(red);
my_1d_plot.write("auto_1d_containers.svg"); // Write the plot to file.
- /*`If we want, we can check the autoscale range used, or even all the plot settings.*/
+ /*`If we want, we can check the autoscale range used.*/
cout << "x_range() " << my_1d_plot.x_range() << endl; // x_range() 0, 15
- //show_1d_plot_settings(my_1d_plot); // If required.
+ /*`And even all the (hundreds of) plot settings (useful for diagnosis why your plot doesn't meet your expectations).*/
+ //show_1d_plot_settings(my_1d_plot);
//] [/auto_1d_containers_2]
@@ -152,7 +152,6 @@
/*
//[auto_1d_containers_output
-
Compiling...
auto_1d_containers.cpp
Linking...
@@ -165,9 +164,7 @@
Data range: 0.2, 14.9
x_range() 0, 15
Build Time 0:03
-
//] [/auto_1d_containers_output]
-
*/
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -2,13 +2,12 @@
\brief An example to demonstrate simple 1D settings, including auto-scaling.
\details See auto_1d_containers.cpp for an example autoscaling with multiple data series.
See also demo_1d_plot.cpp for a wider range of use.
-
\author Paul A Bristow
\date Feb 2009
*/
// Copyright Jacob Voytko 2007
-// Copyright Paul A Bristow 2008
+// Copyright Paul A Bristow 2008, 2009
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
@@ -18,7 +17,6 @@
// This file is written to be included from a Quickbook .qbk document.
// It can be compiled by the C++ compiler, and run. Any output can
// also be added here as comment or included or pasted in elsewhere.
-
// Caution: this file contains Quickbook markup as well as code
// and comments: don't change any of the special comment markups!
@@ -74,7 +72,7 @@
int main()
{
- //[auto_1d_plot_2
+//[auto_1d_plot_2
/*`This example uses containers to demonstrate autoscaling.
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.
@@ -113,9 +111,9 @@
std::cout <<
"\n""Message from thrown exception was:\n " << e.what() << std::endl;
}
- //] [/auto_1d_plot_2]
+//] [/auto_1d_plot_2]
- //[auto_1d_plot_3
+//[auto_1d_plot_3
/*`Other STL containers can also be used, for example set, or multiset (allowing duplicates):*/
try
@@ -244,7 +242,7 @@
If we had many very known normal values to plot and want to autoscale,
we might instead opt to ignore these checks, and write:
- */
+*/
svg_1d_plot my_1d_plot; // Construct a plot with all the default constructor values.
//my_1d_plot.autoscale_check_limits(false);
@@ -262,7 +260,8 @@
* enforce the inclusion of zero on the plot.
* Specify a minimum number of major ticks.
* Specify the steps between major ticks, default 0, or 2 for 2, 4, 6, 8, 10, 5 for 1, 5, 10, or 10 (2, 5, 10).
-* Avoid values that are a tiny amount over the minimum or maximum from causing an apparently empty tick at the minimum or maximum.
+* Avoid values that are a tiny amount over the minimum or maximum from causing
+ an apparently unnecessary tick at the minimum or maximum.
*/
// Set some autoscaling parameters:
@@ -301,8 +300,7 @@
<< ", interval " << my_1d_plot.x_auto_tick_interval() << endl; // Autoscaled min 1, max 5.5, interval 0.5
//my_1d_plot.x_autoscale(true); // Ensure autoscale values are used for the plot.
- // This is also automatically set true by any call of `x_autoscale(some_data);`
-
+ // This is also automatically set true by any call of `x_autoscale(some_data);
/*`The actual addition of data values to the plot is, of course, quite separate from any autoscaling.
*/
@@ -339,15 +337,21 @@
} // int main()
/*
+//[auto_1d_plot_output
+------ Rebuild All started: Project: auto_1d_plot, Configuration: Debug Win32 ------
+Deleting intermediate and output files for project 'auto_1d_plot', configuration 'Debug|Win32'
+Compiling...
auto_1d_plot.cpp
Linking...
Embedding manifest...
Autorun "j:\Cpp\SVG\debug\auto_1d_plot.exe"
limit value: 1.#INF
6 good values, 1 limit values.
-7 values in container: 0.2 1.1 4.2 3.3 5.4 6.5 1.#INF
-8 values in container: 1.2 2.3 3.4 4.5 5.6 6.7 7.8 8.9
+limit value: 1.#INF
+x_range() 0, 7
+7 values in container: 0.2 1.1 4.2 3.3 5.4 6.5 1.#INF
+8 values in container: 1.2 2.3 3.4 4.5 5.6 6.7 7.8 8.9
0.2 1.1 4.2 3.3 5.4 6.5 : 6 values used.
1.1 4.2 3.3 5.4 : 4 values used.
0.2 1.1 4.2 3.3 5.4 6.5 1.#INF : 7 values used.
@@ -372,7 +376,104 @@
Autoscaled min 1, max 5.5, interval 0.5
Autoscaled min 1, max 5.5, interval 0.5
x_range() 1, 5.5
-Build Time 0:03
+
+axes_on false
+background_border_width 1
+background_border_color RGB(255,255,0)
+background_color RGB(255,255,255)
+image_border_margin() 10
+image_border_width() 1
+coord_precision 3
+copyright_date
+copyright_holder
+description
+document_title
+image_x_size 500
+image_y_size 200
+legend_on false
+legend_place 2
+legend_top_left -1, -1, legend_bottom_right -1, -1
+legend_background_color blank
+legend_border_color RGB(255,255,0)
+legend_color blank
+legend_title
+legend_title_font_size 14
+legend_width 0
+legend_lines true
+limit points stroke color RGB(119,136,153)
+limit points fill color RGB(250,235,215)
+license_on false
+license_reproduction permits
+license_distribution permits
+license_attribution requires
+license_commercialuse permits
+plot_background_color RGB(255,255,255)
+plot_border_color RGB(255,255,0)
+plot_border_width 1
+plot_window_on true
+plot_window_x 11, 489
+plot_window_x_left 11
+plot_window_x_right 489
+plot_window_y 56, 139
+plot_window_y_top 56
+plot_window_y_bottom 139.2
+title_on true
+title ""
+title_color blank
+title_font_alignment 2
+title_font_decoration
+title_font_family Verdana
+title_font_rotation 0
+title_font_size 18
+title_font_stretch
+title_font_style
+x_value_precision 3
+x_value_ioflags 200 IOS format flags (0x200) dec.
+x_max 5.5
+x_min 1
+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_width 1
+x_label_on true
+x_label
+x_label_color blank
+x_label_font_family Verdana
+x_label_font_size 14
+x_label_units
+x_label_units_on false
+x_major_labels_side left
+x_values_font_size 10
+x_values_color blank
+x_values_precision 3
+x_values_ioflags 512
+x_major_label_rotation 0
+x_major_grid_color RGB(200,220,255)
+x_major_grid_on false
+x_major_grid_width 1
+x_major_interval 0.5
+x_major_tick 0.5
+x_major_tick_color RGB(0,0,0)
+x_major_tick_length 5
+x_major_tick_width 2
+x_minor_interval 0
+x_minor_tick_color RGB(0,0,0)
+x_minor_tick_length 2
+x_minor_tick_width 1
+x_minor_grid_on false
+x_minor_grid_color RGB(200,220,255)
+x_minor_grid_width 0.5
+x_range() 1, 5.5
+x_num_minor_ticks 4
+x_ticks_down_on true
+x_ticks_up_on false
+x_ticks_on_window_or_axis bottom
+x_axis_position x_axis_position intersects Y axis (Y range includes zero)
+x_autoscale true
+x_autoscale_check_limits true
+data lines width 0
+//] [auto_1d_plot_output]
*/
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -8,7 +8,7 @@
\date Feb 2009
*/
// Copyright Jacob Voytko 2007
-// Copyright Paul A Bristow 2008
+// Copyright Paul A Bristow 2008, 2009
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
@@ -18,7 +18,6 @@
// This file is written to be included from a Quickbook .qbk document.
// It can be compiled by the C++ compiler, and run. Any output can
// also be added here as comment or included or pasted in elsewhere.
-
// Caution: this file contains Quickbook markup as well as code
// and comments: don't change any of the special comment markups!
@@ -158,7 +157,7 @@
*/
my_1d_plot.plot(++my_set.begin(),--my_set.end(), "Auto 1D my_set"); // Add whole data series from my_set.
//my_1d_plot.plot(my_set, "Auto 1D my_set"); // Add whole data series from my_set.
- my_1d_plot.write("demo_1d_autoscaling_s.svg"); // Write the plot to file.
+ my_1d_plot.write("demo_1d_autoscaling.svg"); // Write the plot to file.
/*`If we want, we can check the autoscale range used, noting that zero *is* included because we demanded it.*/
cout << "x_range() " << my_1d_plot.x_range() << endl; // x_range() 0, 8
@@ -173,7 +172,7 @@
}
} // // Autoscaling with my_set
- //] [/demo_1d_autoscaling_4]
+ //] [/demo_1d_autoscaling_3]
return 0;
} // int main()
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_containers.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_containers.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_containers.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,9 +1,6 @@
/*! \file demo_1d_containers.cpp
-
- \brief An example to demonstrate simple 1D settings, with a range of different STL containers.
-
+ \brief An example to demonstrate simple 1D plotting using a range of different STL containers.
\author Paul A Bristow
-
\date Feb 2009
*/
@@ -15,13 +12,9 @@
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
-// An example to demonstrate simple 1D settings,
-// with a range of different STL containers.
-
// This file is written to be included from a Quickbook .qbk document.
// It can be compiled by the C++ compiler, and run. Any output can
// also be added here as comment or included or pasted in elsewhere.
-
// Caution: this file contains Quickbook markup as well as code
// and comments: don't change any of the special comment markups!
@@ -83,7 +76,7 @@
{
//[demo_1d_containers_3
-/*`If the container is static array, then it must be filled by assignment:*/
+/*`If the container is a static array, then it must be filled by assignment:*/
array<long double, 4> values = {3.1L,-5.5L, 8.7L, 0.5L};
svg_1d_plot my_plot;
@@ -157,8 +150,5 @@
Embedding manifest...
Autorun "j:\Cpp\SVG\debug\demo_1d_containers.exe"
Build Time 0:03
-
-
-
//] [/demo_1d_containers_output]
*/
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_simple.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_simple.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_1d_simple.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,41 +1,62 @@
/*! \file 1d_simple.cpp
\brief Example of a simple 1D plot of two vectors of data.
\details Creates file 1d_simple.svg
- \author Jacob Voytko
+ \author Jacob Voytko and Paul A. Bristow
\date 2007
*/
// 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_1d_plot.hpp>
-#include <vector>
+// An example to demonstrate simplest 1D *default* settings.
+// See also demo_1d_plot.cpp for a wider range of use.
+
+// This file is written to be included from a Quickbook .qbk document.
+// It can be compiled by the C++ compiler, and run. Any output can
+// also be added here as comment or included or pasted in elsewhere.
+
+// Caution: this file contains Quickbook markup as well as code
+// and comments: don't change any of the special comment markups!
+
+//[demo_1d_simple_1
+
+/*`First we need a few includes to use Boost.Plot, and an STL 1D container vector.
+*/
+#include <boost/svg_plot/svg_1d_plot.hpp>
using namespace boost::svg;
+
+#include <vector>
using std::vector;
int main()
-{
+{ // Construct two STL containers for the two data series to plot.
vector<double> dan_times;
vector<double> elaine_times;
+ // Fill the two containers with some data:
dan_times.push_back(3.1);
dan_times.push_back(4.2);
elaine_times.push_back(2.1);
elaine_times.push_back(7.8);
- svg_1d_plot my_plot;
+ svg_1d_plot my_plot; // Construct a plot.
- my_plot.legend_on(true)
+ my_plot.legend_on(true) // Set title and legend, and X axis range.
.title("Race Times")
- .x_range(-1, 11);
+ .x_range(-1, 11); // There are hundreds of other options here!
+ // Add the two containers of data to the plot, choosing two different colors.
my_plot.plot(dan_times, "Dan").stroke_color(blue);
my_plot.plot(elaine_times, "Elaine").stroke_color(orange);
- my_plot.write("./1d_simple.svg");
+ my_plot.write("./demo_1d_simple.svg"); // Finally write the plot to a file.
return 0;
} // int main()
+//] [/demo_1d_simple_1]
+
+
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,25 +1,22 @@
/*! \file demo_1d_vector.cpp
\brief Simple plot of vector of 1D data.
- \details Includes Quickbook markup to be included in documentation.
-
+ \details An example to demonstrate simple 1D plot using two vectors,
+ see also demo_1d_containers for examples using other STL containers.
\author Jacob Voytko & Paul A. Bristow
+ \date Feb 2009
*/
// Copyright Jacob Voytko 2007
-// Copyright Paul A Bristow 2008
+// Copyright Paul A Bristow 2008, 2009
// 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)
-// An example to demonstrate simple 1D plot using two vectors,
-// see also demo_1d_containers for examples using other STL containers.
-
// This file is written to be included from a Quickbook .qbk document.
// It can be compiled by the C++ compiler, and run. Any output can
// also be added here as comment or included or pasted in elsewhere.
-
// Caution: this file contains Quickbook markup as well as code
// and comments: don't change any of the special comment markups!
@@ -49,17 +46,16 @@
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 many default values.
+/*`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;
-/*`A few setting (member) functions are fairly self-explanatory:
+/*`A few (member) functions that set are fairly self-explanatory:
* title provides a title at the top for the whole plot,
-* `legend_on(true)` will mean that data series titles and markers will display in the legend box.
+* `legend_on(true)` will mean that titles of data series and markers will display in the legend box.
* `x_range(-1, 11)` sets the axis limits from -1 to +11 (instead of the default -10 to +10).
* `background_border_color(blue)` sets just one of the very many options.
-
*/
my_plot.background_border_color(blue)
@@ -73,17 +69,23 @@
my_plot.title("Race Times");
my_plot.legend_on(true);
my_plot.x_range(-1, 11);
+ my_plot.background_border_color(blue);
``
Chaining thus allows you to avoid repeatedly typing "`myplot.`"
and easily group related settings like plot window, axes ... together.
A fixed order would clearly become impracticable with
-hundreds of possible arguments needed to set all the myriad plot options.
+hundreds of possible arguments needed to set all the myriad plot options.
+
+Within all of the plot classes, 'chaining' works the same way,
+by returning a reference to the calling object thus `return *this;`
-Then we need to add data series, and add optional data series titles if we want them to show on the legend.
+Then we need to add our data series,
+and add optional (but very helpful) data series titles
+if we want them to show on the legend.
*/
- my_plot.plot(dan_times, "Dan").stroke_color(red).fill_color(red);
- my_plot.plot(elaine_times, "Elaine").stroke_color(blue).fill_color(blue);
+ my_plot.plot(dan_times, "Dan").shape(round).stroke_color(red).fill_color(red);
+ my_plot.plot(elaine_times, "Elaine").shape(cross).stroke_color(blue).fill_color(blue);
/*`Finally, we can write the SVG to a file of our choice.
*/
@@ -105,6 +107,5 @@
Embedding manifest...
Autorun "j:\Cpp\SVG\debug\demo_1d_vector.exe"
Build Time 0:04
-
//] [/demo_1d_vector_output]
*/
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_simple.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_simple.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_2d_simple.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -1,8 +1,12 @@
/*! \file demo_2d_simple.cpp
\brief Demonstration of some simple 2D plot features.
\details Uses some simple math functions to generate curves.
+ This demonstrates plotting some simple math functions with most of the 2-D defaults,
+ just changing a few typical details.
The detailed output shows the plot settings for each plot.
-
+ See default_2d_plot.cpp for using *all* defaults.
+ See also demo_2d_plot.cpp for use of some of the very many options.
+ \date Feb 2009
\author Jacob Voytko and Paul A. Bristow
*/
@@ -14,11 +18,6 @@
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
-// This demonstrates plotting some simple math functions with most of the 2-D defaults,
-// just changing a few typical details.
-// See default_2d_plot.cpp for using *all* defaults.
-// See also demo_2d_plot.cpp for use of some of the very many options.
-
#include <boost/svg_plot/svg_2d_plot.hpp>
using boost::svg::svg_2d_plot;
@@ -45,9 +44,7 @@
using boost::svg::blue;
// and other enum options used:
using boost::svg::square;
-
-
-// for every color used.
+ // for every color used.
double f(double x)
{
@@ -89,8 +86,7 @@
my_plot.title("demo_2d_simple");
my_plot.title(" title");
cout << " my_plot.title() " << my_plot.title() << endl;
- my_plot.x_label("X-axis");
- my_plot.y_label("Y-axis");
+ my_plot.x_label("X-axis").y_label("Y-axis"); // Note chaining.
std::string s = my_plot.title();
Modified: sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg_tspan.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg_tspan.cpp (original)
+++ sandbox/SOC/2007/visualization/libs/svg_plot/example/demo_svg_tspan.cpp 2009-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -37,7 +37,7 @@
doc.size(400, 400);
text_element& t = doc.text(100, 100, "This ", no_style, center_align, uphill);
- tspan_element ts = t.tspan("text").dx(10).dy(20.).font_size(40).font_family("Arial").font_weight("bold").fill_color(pink);
+ tspan_element ts = t.tspan("text").dx(10.).dy(20.).font_size(40).font_family("Arial").font_weight("bold").fill_color(pink);
cout << "dx " << ts.dx() << endl;
cout << "dy " << ts.dy() << endl;
cout << "tspan text is " << ts.text() << endl;
@@ -54,7 +54,7 @@
// </tspan>
//</text>
- // shows expected This text with positiona nd color as expected,
+ // shows expected This text with position and color as expected,
// BUT doesn't echo fill color????
// These lines below have no effect on the output svg tspan!
@@ -80,6 +80,11 @@
// NO offset and style info added to ts
// NO tspan text for "green 30 Arial"
+ text_style my_ts;
+ my_ts.font_family("serif").font_style("bold").font_size(20);
+ tspan_element ts2 = t.tspan("text2", my_ts).dx(50).dy(50); // Use constructor to set text_style.
+ ts2.textstyle(my_ts); // Use set function to set text_style.
+ text_style tst2 = ts2.textstyle(); // Use get function.
doc.write("demo_svg_tspan.svg");
return 0;
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -71,29 +71,29 @@
text.text("X");
BOOST_CHECK_EQUAL(text.text(), "X");
- BOOST_CHECK_EQUAL(text.style().font_size(), 20);
- text.style().font_size(10);
- BOOST_CHECK_EQUAL(text.style().font_size(), 10);
-
- BOOST_CHECK_EQUAL(text.style().font_family(), "");
- text.style().font_family("Lucida Sans Unicode");
- BOOST_CHECK_EQUAL(text.style().font_family(), "Lucida Sans Unicode");
-
- BOOST_CHECK_EQUAL(text.style().font_style(), "");
- text.style().font_style("X");
- BOOST_CHECK_EQUAL(text.style().font_style(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_weight(), "");
- text.style().font_weight("X");
- BOOST_CHECK_EQUAL(text.style().font_weight(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_stretch(), "");
- text.style().font_stretch("X");
- BOOST_CHECK_EQUAL(text.style().font_stretch(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_decoration(), "");
- text.style().font_decoration("X");
- BOOST_CHECK_EQUAL(text.style().font_decoration(), "X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_size(), 20);
+ text.textstyle().font_size(10);
+ BOOST_CHECK_EQUAL(text.textstyle().font_size(), 10);
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_family(), "");
+ text.textstyle().font_family("Lucida Sans Unicode");
+ BOOST_CHECK_EQUAL(text.textstyle().font_family(), "Lucida Sans Unicode");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_style(), "");
+ text.textstyle().font_style("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_style(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_weight(), "");
+ text.textstyle().font_weight("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_weight(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_stretch(), "");
+ text.textstyle().font_stretch("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_stretch(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_decoration(), "");
+ text.textstyle().font_decoration("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_decoration(), "X");
double string_svg_length(const std::string& s, const text_style& style);
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-02-27 10:21:54 EST (Fri, 27 Feb 2009)
@@ -82,29 +82,29 @@
text.text("X");
BOOST_CHECK_EQUAL(text.text(), "X");
- BOOST_CHECK_EQUAL(text.style().font_size(), 12);
- text.style().font_size(10);
- BOOST_CHECK_EQUAL(text.style().font_size(), 10);
-
- BOOST_CHECK_EQUAL(text.style().font_family(), "");
- text.style().font_family("Lucida Sans Unicode");
- BOOST_CHECK_EQUAL(text.style().font_family(), "Lucida Sans Unicode");
-
- BOOST_CHECK_EQUAL(text.style().font_style(), "");
- text.style().font_style("X");
- BOOST_CHECK_EQUAL(text.style().font_style(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_weight(), "");
- text.style().font_weight("X");
- BOOST_CHECK_EQUAL(text.style().font_weight(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_stretch(), "");
- text.style().font_stretch("X");
- BOOST_CHECK_EQUAL(text.style().font_stretch(), "X");
-
- BOOST_CHECK_EQUAL(text.style().font_decoration(), "");
- text.style().font_decoration("X");
- BOOST_CHECK_EQUAL(text.style().font_decoration(), "X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_size(), 12);
+ text.textstyle().font_size(10);
+ BOOST_CHECK_EQUAL(text.textstyle().font_size(), 10);
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_family(), "");
+ text.textstyle().font_family("Lucida Sans Unicode");
+ BOOST_CHECK_EQUAL(text.textstyle().font_family(), "Lucida Sans Unicode");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_style(), "");
+ text.textstyle().font_style("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_style(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_weight(), "");
+ text.textstyle().font_weight("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_weight(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_stretch(), "");
+ text.textstyle().font_stretch("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_stretch(), "X");
+
+ BOOST_CHECK_EQUAL(text.textstyle().font_decoration(), "");
+ text.textstyle().font_decoration("X");
+ BOOST_CHECK_EQUAL(text.textstyle().font_decoration(), "X");
double string_svg_length(const std::string& s, const text_style& style);
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