Changeset 1331 for trunk


Ignore:
Timestamp:
Jan 27, 2011, 3:04:21 AM (10 years ago)
Author:
Peter Johansson
Message:

remove function tick_spacing, which is not used anymore

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r1330 r1331  
    217217
    218218
    219   unsigned int Graph::tick_spacing(const double range) const
    220   {
    221     // range = msn * 10^characteristic = msn * power
    222     unsigned char characteristic= static_cast<unsigned char>(std::log10(range));
    223     double power = std::pow(10.0, characteristic);
    224     double msn = range/power;
    225     if (msn>=5.0)
    226       return power;
    227     if (msn>=2.0)
    228       return 0.5 * power;
    229     return 0.2 * power;
    230   }
    231 
    232 
    233219  const std::vector<time_t>& Graph::dates(void)
    234220  {
  • trunk/lib/Graph.h

    r1330 r1331  
    157157    void print_legend(void);
    158158    void staircase(svn_revnum_t rev0, PLFLT y0, svn_revnum_t rev1, PLFLT y1);
    159     unsigned int tick_spacing(const double range) const;
    160159
    161160    std::vector<legend_data> legend_;
Note: See TracChangeset for help on using the changeset viewer.