IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29727


Ignore:
Timestamp:
Nov 9, 2010, 3:33:11 PM (16 years ago)
Author:
rhenders
Message:

improved time ticks spacing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/Plotter.pm

    r29712 r29727  
    304304    my ($self, $timeDiff, $divX, $timeFormat) = @_;
    305305
     306    # if less than a few mins of data, show 1 minute tics
     307    if ($timeDiff < 300) {
     308        ${$timeFormat} = "%H:%M";
     309        ${$divX} = 60;
     310    }
     311    # if less than a few mins of data, show 5 minute tics
     312    elsif ($timeDiff < 1800) {
     313        ${$timeFormat} = "%H:%M";
     314        ${$divX} = 300;
     315    }
     316    # if less than an hour of data, show 15 minute tics
     317    elsif ($timeDiff < 3600) {
     318        ${$timeFormat} = "%H:%M";
     319        ${$divX} = 900;
     320    }
    306321    # if less than a couple of hour's data plotted, show 30 mins tics
    307     if ($timeDiff < 7200) {
     322    elsif ($timeDiff < 7200) {
    308323        ${$timeFormat} = "%H:%M";
    309324        ${$divX} = 1800;
Note: See TracChangeset for help on using the changeset viewer.