diff options
Diffstat (limited to 'ds9/library/markeranalysisplot2d.tcl')
-rw-r--r-- | ds9/library/markeranalysisplot2d.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ds9/library/markeranalysisplot2d.tcl b/ds9/library/markeranalysisplot2d.tcl index 121e948..a8fdf1d 100644 --- a/ds9/library/markeranalysisplot2d.tcl +++ b/ds9/library/markeranalysisplot2d.tcl @@ -154,7 +154,11 @@ proc MarkerAnalysisPlot2dCB {frame id} { if {!$ping} { set tt [string totitle [$frame get marker $id type]] - PlotLineDialog $vvarname $tt {} $vvar(system) Counts + set vvar(bunit) [string trim [$frame get fits header keyword BUNIT]] + if {$vvar(bunit)=={}} { + set vvar(bunit) {Counts} + } + PlotLineDialog $vvarname $tt {} $vvar(system) $vvar(bunit) MarkerAnalysisPlot2dXAxisTitle $vvarname MarkerAnalysisPlot2dYAxisTitle $vvarname @@ -240,7 +244,7 @@ proc MarkerAnalysisPlot2dYAxisTitle {vvarname} { global $vvarname # set for plot code - set vvar(axis,y,title) "Counts [string totitle $vvar(method)]" + set vvar(axis,y,title) "$vvar(bunit) [string totitle $vvar(method)]" # update now (may not make it into plot code) $vvar(graph) yaxis configure -title $vvar(axis,y,title) |