IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29585


Ignore:
Timestamp:
Oct 27, 2010, 12:37:38 PM (16 years ago)
Author:
rhenders
Message:

improved x-axis ticks

File:
1 edited

Legend:

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

    r29584 r29585  
    4343###########################################################################
    4444#
    45 # Plots a time series for all stages for this label, bith log and linear
     45# Plots a time series for all stages for this label, both log and linear
    4646#
    4747###########################################################################
     
    9292        "set xtics \"$minX\", $divX, \"$maxX\";" .
    9393#        "set xrange [\"$minX\":\"$maxX\"];" .
    94         "set grid;" .
    9594        "set boxwidth;" .
    9695        "set style data histogram;" .
     
    314313        ${$divX} = 86400;
    315314    }
     315    # if less than 1 months's data is data plotted, show weekly ticks
     316    elsif ($timeDiff < 2419200) {
     317
     318        ${$timeFormat} = "%m/%d";
     319        ${$divX} = 604800;
     320    }
    316321    else {
    317322
    318         ${$timeFormat} = "%m/%d";
    319         ${$divX} = 172800;
     323        ${$timeFormat} = "%b";
     324        ${$divX} = 2419200;
    320325    }
    321326}
Note: See TracChangeset for help on using the changeset viewer.