IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30253


Ignore:
Timestamp:
Jan 12, 2011, 4:15:36 PM (15 years ago)
Author:
rhenders
Message:

Fixed time-range of plots to use value from config

File:
1 edited

Legend:

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

    r30250 r30253  
    519519    GP->autoflush(1);
    520520
     521    my $datFile = $tmpFile->filename;
    521522    if ($self->{_outputFormat} ne "X11") {print GP "set output \"$outputFile\";";}
    522     print GP
    523         "set term $self->{_outputFormat};" .
    524         "set title \"Total available cluster space over time\\nFrom $fromTime to $toTime HST\";" .
    525         "set key left top;" .
    526         "set xdata time;" .
    527         "set timefmt \"$self->{_dateFormat}\";" .
    528         "set format x \"$timeFormat\";" .
    529         "set xtics \"$minX\", $divX, \"$maxX\";" .
    530         "set grid xtics;" .
    531         "set xlabel \"Time\";" .
    532         "set ylabel \"Available (TB)\";" .
    533         "plot " .
    534         "'".$tmpFile->filename."' using 1:2 title \"Available\" with lines lt 2 lw 2\n";
     523    print GP <<PLOT;
     524        set term $self->{_outputFormat}
     525        set title "Total available cluster space over time\\nFrom $fromTime to $toTime HST"
     526        set key left top
     527        set xdata time
     528        set timefmt "$self->{_dateFormat}"
     529        set format x "$timeFormat"
     530        set xtics "$minX", $divX, "$maxX"
     531        set grid xtics
     532        set xlabel "Time"
     533        set ylabel "Available (TB)"
     534        plot "$datFile" using 1:2 title "Available" with lines lt 2 lw 2
     535PLOT
    535536
    536537    print GP "\n";
Note: See TracChangeset for help on using the changeset viewer.