Changes between Version 12 and Version 13 of soc/2007/VisualizationOfContainers


Ignore:
Timestamp:
Jun 12, 2007, 3:12:45 AM (15 years ago)
Author:
jakevoytko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • soc/2007/VisualizationOfContainers

    v12 v13  
    3232
    3333[[Image(http://www.tcnj.edu/~voytko2/img/1Dtwo_plots_color_demo.svg)]]
     34
     35== Using different STL containers ==
     36{{{
     37#!cpp
     38deque<double> data1;
     39vector<double> data2;
     40
     41//fill vectors
     42
     43svg_plot my_plot("./image.svg");
     44
     45my_plot << image_size(500, 200) << x_scale(-7, 9) << draw_axis()
     46        << plot_range(data1.begin(), data1.end(), orange)
     47        << plot_range(data2.begin(), data2.end(), blue)
     48        << write();
     49
     50}}}
     51
     52produces the following output:
     53
     54[[Image(http://www.tcnj.edu/~voytko2/img/1D_containers_demo.svg)]]
    3455
    3556= To-Do List =