summaryrefslogtreecommitdiffstats
path: root/ds9/library/plotdata.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-07-12 18:21:17 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-07-12 18:21:17 (GMT)
commitfd32daaff35203c31364a6c7d56448363e81a363 (patch)
tree35be7944c821f9db24ae58d5ba2aad8fce172925 /ds9/library/plotdata.tcl
parent2ad840094419acf996253f402069d6e7f6cccf08 (diff)
downloadblt-fd32daaff35203c31364a6c7d56448363e81a363.zip
blt-fd32daaff35203c31364a6c7d56448363e81a363.tar.gz
blt-fd32daaff35203c31364a6c7d56448363e81a363.tar.bz2
support multiple graphs per plot
Diffstat (limited to 'ds9/library/plotdata.tcl')
-rw-r--r--ds9/library/plotdata.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/ds9/library/plotdata.tcl b/ds9/library/plotdata.tcl
index 6dbd801..d5b632c 100644
--- a/ds9/library/plotdata.tcl
+++ b/ds9/library/plotdata.tcl
@@ -245,6 +245,17 @@ proc PlotExternal {varname} {
set var(graph,ds,name) "Dataset $nn"
PlotAddElement $varname
+
+ global ds9
+ switch $ds9(wm) {
+ x11 {
+ update idletasks
+ wm geometry $var(top) \
+ "[winfo width $var(top)]x[winfo height $var(top)]"
+ }
+ aqua -
+ win32 {}
+ }
}
proc PlotDupDataSet {varname mm} {