Changeset 885
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Graph.cc
r884 r885 24 24 #include "Date.h" 25 25 26 #include <algorithm> 26 27 #include <cmath> 27 28 #include <sstream> … … 124 125 PLFLT dy=0.003*yrange_; 125 126 unsigned int row=0; 127 std::reverse(legend_.begin(), legend_.end()); 126 128 for (std::vector<legend_data>::const_iterator i=legend_.begin(); 127 129 i!=legend_.end(); i++, ++row) { -
trunk/lib/Graph.h
r883 r885 59 59 60 60 /** 61 \brief Plot \a data using \a timeformat for x-axis values when 62 dates are used. 61 \brief Plot \a data and use \a lines and \a label to compose 62 the legend label. 63 64 The legend will be a coloured line followed by \a lines 65 followed by \a label. 66 67 The label order in the legend is reverse to the plot order, 68 i.e., the last plotted line will get the top entry in the 69 legend, the second to last plotted line will be the second 70 legend entry, and so on. 63 71 */ 64 72 void plot(const std::vector<unsigned int>& data, const std::string& label,
Note: See TracChangeset
for help on using the changeset viewer.