Index: trunk/ippMonitor/raw/czartool_getplot.php
===================================================================
--- trunk/ippMonitor/raw/czartool_getplot.php	(revision 29072)
+++ trunk/ippMonitor/raw/czartool_getplot.php	(revision 29260)
@@ -15,9 +15,10 @@
 $label = $_GET[label];
 $stage = $_GET[stage];
+$plottype = $_GET[plottype];
 
 if ($type=="t")
-$filePath = "/tmp/czarplot_".$label."_".$stage."_".$type.".png";
+$filePath = "/tmp/czarplot_".$plottype."_".$label."_".$stage."_".$type.".png";
 else if ($type=="h")
-$filePath = "/tmp/czarplot_".$label."_all_stages_".$type.".png";
+$filePath = "/tmp/czarplot_".$plottype."_".$label."_all_stages_".$type.".png";
 else if ($type=="s")
 $filePath = "/tmp/czarplot_hosts_space.png";
@@ -29,4 +30,5 @@
 }
 
+
 exit();
 
Index: trunk/ippMonitor/raw/czartool_labels.php
===================================================================
--- trunk/ippMonitor/raw/czartool_labels.php	(revision 29072)
+++ trunk/ippMonitor/raw/czartool_labels.php	(revision 29260)
@@ -35,10 +35,14 @@
 $selectedRevertStage = $_GET[revertstage];
 $selectedRevertMode = $_GET[revertmode];
+$plotType = $_GET[plottype];
 
 if ($selectedLabel == "") { $selectedLabel = "all_stdscience_labels"; }
 if ($selectedStage == "") { $selectedStage = "all_stages"; }
+if ($plotType == "") { $plotType = "linear"; }
 
 $nsStatus = getNightlyScienceStatus($czardb);
-echo "<p  align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus</p>";
+$plotTypeLink = ($plotType == "linear") ? "log" : "linear";
+$link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $selectedStage . "&revertstage=" . $stage . "&plottype=$plotTypeLink";
+echo "<p  align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus<br>Use <a href=\"$link\"> $plotTypeLink</a> plots </p>";
 
 
@@ -93,9 +97,9 @@
   echo "<tr>\n";
     echo "<td>\n";
-      echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage\"><br>";
+      echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>";
     echo "</td>\n";
 
     echo "<td> \n";
-      createLabelsTable($pass, $proj, $czardb, "stdscience", $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage);
+      createLabelsTable($pass, $proj, $czardb, "stdscience", $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType);
     echo "</td>\n";
   echo "</tr>\n";
@@ -103,9 +107,9 @@
   echo "<tr>\n";
     echo "<td>\n";
-      echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage\"><br>";
+      echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>";
     echo "</td>\n";
 
     echo "<td> \n";
-      createLabelsTable($pass, $proj, $czardb, "update", $updateLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage);
+      createLabelsTable($pass, $proj, $czardb, "update", $updateLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType);
     echo "</td>\n";
   echo "</tr>\n";
@@ -118,5 +122,5 @@
         echo "</td>\n";
         echo "<td>\n";
-          createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage);
+          createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage, $plotType);
         echo "</td>\n";
 
@@ -225,5 +229,5 @@
 #
 ###########################################################################
-function createLabelsTable($pass, $proj, $db, $server, $labels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage) {
+function createLabelsTable($pass, $proj, $db, $server, $labels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage, $plotType) {
 
     // set up table columns
@@ -241,5 +245,5 @@
         if ($stage == "burntool") continue;
         $reverting = getRevertStatus($db, $stage);
-        $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $selectedStage . "&revertstage=" . $stage . "&revertmode=";
+        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&revertstage=".$stage."&revertmode=";
         if(!$reverting) {$label =  "Start";$link = $link . "on";}
         if($reverting) {$label = "Stop";$link = $link . "off";}
@@ -256,10 +260,10 @@
         
         if ($stage == $selectedStage) $link = "";
-        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $stage;
+        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=".$stage."&plottype=".$plotType;
         write_table_cell($class, '%s', $link, $stage);
     }
 
     if ($selectedStage=="all_stages") $link = "";
-    else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=all_stages";
+    else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=all_stages"."&plottype=".$plotType;
     write_table_cell($class, '%s', $link, "All stages");
 
@@ -267,5 +271,5 @@
     echo "<tr><td></td>\n";
 
-    $defaultlink = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj;
+    $defaultlink = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType;
 
     // write rows
@@ -285,5 +289,5 @@
         // create link to label summary page for each label
         if ($thisLabel == $selectedLabel) $link = "";
-        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $thisLabel . "&stage=" . $selectedStage;
+        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $thisLabel . "&stage=" . $selectedStage."&plottype=".$plotType;
 
         echo "<tr><td></td>\n";
@@ -342,5 +346,5 @@
 
     if ($selectedLabel == "all_".$server."_labels") $link = "";
-    else  $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_".$server."_labels&stage=".$selectedStage;
+    else  $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_".$server."_labels&stage=".$selectedStage."&plottype=".$plotType;
 
     echo "<tr><td></td>\n";
@@ -437,5 +441,5 @@
 #
 ###########################################################################
-function createServersTable($pass, $proj, $db, $servers, $selectedLabel, $selectedStage) {
+function createServersTable($pass, $proj, $db, $servers, $selectedLabel, $selectedStage, $plotType) {
 
     // set up table columns
@@ -450,5 +454,5 @@
     foreach ($servers as &$server) {
 
-        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&server=".$server."&label=".$selectedLabel."&stage=".$selectedStage;
+        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&server=".$server."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType;
         //      $link = "";
 
