|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51138 - sandbox/SOC/2007/visualization/boost/svg_plot
From: pbristow_at_[hidden]
Date: 2009-02-09 09:56:16
Author: pbristow
Date: 2009-02-09 09:56:16 EST (Mon, 09 Feb 2009)
New Revision: 51138
URL: http://svn.boost.org/trac/boost/changeset/51138
Log:
re-commit to get the green ticks?
Removed:
sandbox/SOC/2007/visualization/boost/svg_plot/svg_test.cpp
Deleted: sandbox/SOC/2007/visualization/boost/svg_plot/svg_test.cpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/svg_test.cpp 2009-02-09 09:56:16 EST (Mon, 09 Feb 2009)
+++ (empty file)
@@ -1,49 +0,0 @@
-#include "svg_2d_plot.hpp"
-#include "svg_boxplot.hpp"
-
-#include <map>
-#include <cmath>
-
-using std::multimap;
-
-double h(double x)
-{
- return 50 / (x);
-}
-
-double f(double x)
-{
- return 40 + 25 * sin(x * 50);
-}
-
-using std::cout;
-using std::cin;
-
-int main()
-{
- using namespace boost::svg;
- std::multimap<double, double> data1;
-
- svg_boxplot my_plot;
- svg_2d_plot my_2d_plot;
-
- my_2d_plot.background_border_color(black)
- .title("Y axis label experiment")
- .y_major_labels_on(true)
- .y_label_on(true)
- .x_label_on(true)
- .x_major_labels_on(true)
- .plot_window_on(true)
- .y_external_style_on(true);
-
- for(double i=.1; i < 10; i+=.1)
- {
- data1.insert(std::pair<double, double>(i, h(i)));
- }
-
- my_2d_plot.plot(data1, "[50 / x]");
-
- my_2d_plot.write("D:\\axislabel_test.svg");
-
- return 0;
-}
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