Changeset 1327 for trunk/lib/Graph.h


Ignore:
Timestamp:
Jan 27, 2011, 2:23:15 AM (11 years ago)
Author:
Peter Johansson
Message:

refs #489 and #490. Use default tickspacing provided by plplot. With
current implementation, v6.9.6, it means range 6-15 -> spacing=2;
range 15-30 -> spacing=5; range 30-60 -> spacing=10 and similarly for
other order of magnitudes. For dates it is similar, but the unit
changes dynamically depending on the range. Basically they choose the
largest unit of seconds, minutes, hours, days, weeks, and years, such
that range is at least 3 in that unit. So when the range is more than
3 years we're counting in years and when the range is between 3 weeks
and 3 years we're counting in weeks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.h

    r1287 r1327  
    127127
    128128    /**
    129        \brief Set x-axis tick value format to \a format. The format is
    130        only used when dates are used.
    131129    */
    132     void timeformat(const std::string& format);
    133 
    134130    static const std::vector<time_t>& xticks(void);
    135131
     
    168164    static svn_revnum_t rev_min_;
    169165    static svn_revnum_t rev_max_;
    170     std::string timeformat_;
    171166    std::string title_;
    172167    static std::vector<time_t> xticks_;
Note: See TracChangeset for help on using the changeset viewer.