diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-09-27 21:19:04 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-09-27 21:19:04 (GMT) |
commit | cc5df79627b75a1fcd807ff73319e1a3d3cb2b63 (patch) | |
tree | cc9a0745bdd56072d15f0cea1b258a8fccf8daba /ds9/library/markeranalysisplot3d.tcl | |
parent | eafc6af129cf5f2c71ee4fde54885e0167dd96e5 (diff) | |
download | blt-cc5df79627b75a1fcd807ff73319e1a3d3cb2b63.zip blt-cc5df79627b75a1fcd807ff73319e1a3d3cb2b63.tar.gz blt-cc5df79627b75a1fcd807ff73319e1a3d3cb2b63.tar.bz2 |
REGION: use BUNIT keyword if available
Diffstat (limited to 'ds9/library/markeranalysisplot3d.tcl')
-rw-r--r-- | ds9/library/markeranalysisplot3d.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ds9/library/markeranalysisplot3d.tcl b/ds9/library/markeranalysisplot3d.tcl index e448249..e26dd0b 100644 --- a/ds9/library/markeranalysisplot3d.tcl +++ b/ds9/library/markeranalysisplot3d.tcl @@ -152,7 +152,11 @@ proc MarkerAnalysisPlot3dCB {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) MarkerAnalysisPlot3dXAxisTitle $vvarname MarkerAnalysisPlot3dYAxisTitle $vvarname @@ -297,7 +301,7 @@ proc MarkerAnalysisPlot3dYAxisTitle {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) |