chart_test.cxx

Go to the documentation of this file.
00001 #include <cxxtls/ascii_chart.h>
00002 
00003 using namespace std;
00004 using namespace cxxtls;
00005 
00006 
00007 typedef ascii_chart::data_t   data_t;
00008 typedef ascii_chart::point_t  point_t;
00009 typedef ascii_chart::X_t      X_t;
00010 typedef ascii_chart::Y_t      Y_t;
00011 
00012 int main()
00013 {
00014   data_t data;
00015 
00016   int i;
00017 
00018   for(i=0; i < 5; ++i)
00019     data.push_back( point_t(i,-20 + 10 *i) );
00020 
00021 
00022   ascii_chart chart(5,5);
00023 
00024   chart.plot(data);
00025 
00026   cout << chart;
00027 
00028 }
Generated on Wed Feb 29 22:50:05 2012 for CXXUtilities by  doxygen 1.6.3