Changes between Version 12 and Version 13 of soc/2007/VisualizationOfContainers
- Timestamp:
- Jun 12, 2007, 3:12:45 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
soc/2007/VisualizationOfContainers
v12 v13 32 32 33 33 [[Image(http://www.tcnj.edu/~voytko2/img/1Dtwo_plots_color_demo.svg)]] 34 35 == Using different STL containers == 36 {{{ 37 #!cpp 38 deque<double> data1; 39 vector<double> data2; 40 41 //fill vectors 42 43 svg_plot my_plot("./image.svg"); 44 45 my_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 52 produces the following output: 53 54 [[Image(http://www.tcnj.edu/~voytko2/img/1D_containers_demo.svg)]] 34 55 35 56 = To-Do List =