Changeset 949 for trunk/lib


Ignore:
Timestamp:
Dec 4, 2009, 9:21:40 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #416. The legend should not waste memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r948 r949  
    3838      title_(filename), xmin_(0.0), xmax_(0.0), ymin_(0.0), ymax_(0.0)
    3939  {
    40     legend_.reserve(20);
     40    // should match the maximum number of authors plotted, change this
     41    // when the maximum number of authors becomes configurable
     42    legend_.reserve(10);
    4143    // we use color map 0 position 0 for background color
    4244    pls_.scolbga(255,255,255,0);
Note: See TracChangeset for help on using the changeset viewer.