IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29952


Ignore:
Timestamp:
Dec 6, 2010, 12:27:37 PM (15 years ago)
Author:
rhenders
Message:

now using suitable Plotter constructor if saving to file or showing in window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r29862 r29952  
    126126
    127127
    128 my $plotter = new czartool::Plotter(
    129         $gpc1Db,
    130         $czarDb,
    131         "%Y%m%d-%H%M%S",
    132         $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11",
    133         $path,
    134         $save_temps);
     128my $plotter = undef;
     129if ($savingToFile) {
     130
     131    $plotter = czartool::Plotter->new_file(
     132            $gpc1Db,
     133            $czarDb,
     134            $path,
     135            $save_temps);
     136}
     137else {
     138
     139    $plotter = czartool::Plotter->new_display(
     140            $gpc1Db,
     141            $czarDb,
     142            $save_temps);
     143}
    135144
    136145# sort out times
     
    168177elsif ($nebulous) {$plotter->plotDiskUsageHistogram();}
    169178if ($magicMask) {
    170    
     179
    171180    if ($exposureId) {$plotter->plotMagicMaskFractionForThisExposure($exposureId);}
    172181    else {$plotter->plotMagicMaskFraction($begin, $end);}
Note: See TracChangeset for help on using the changeset viewer.