summaryrefslogtreecommitdiffstats
path: root/ds9/library/plotline.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/library/plotline.tcl')
-rw-r--r--ds9/library/plotline.tcl7
1 files changed, 5 insertions, 2 deletions
diff --git a/ds9/library/plotline.tcl b/ds9/library/plotline.tcl
index e5b0a05..f61f456 100644
--- a/ds9/library/plotline.tcl
+++ b/ds9/library/plotline.tcl
@@ -51,9 +51,12 @@ proc PlotLineDialog {varname wtt title xaxis yaxis} {
PlotDialog $varname $wtt $title $xaxis $yaxis
PlotAddGraph $varname
+ set tt $var(graph,total)
+ set cc $var(graph,current)
+
# Data
$var(mb).data add checkbutton -label [msgcat::mc {Show}] \
- -variable ${varname}(show) \
+ -variable ${varname}(graph$cc,show) \
-command [list PlotLineUpdateElement $varname]
$var(mb).data add separator
$var(mb).data add cascade -label [msgcat::mc {Shape}] \
@@ -268,7 +271,7 @@ proc PlotLineUpdateElement {varname} {
}
$var(graph$cc) element configure "d-${nn}" \
- -label $var(name) -hide [expr !$var(show)] \
+ -label $var(graph$cc,name) -hide [expr !$var(graph$cc,show)] \
-symbol $var(shape,symbol) -fill $clr -scalesymbols no \
-pixels 5 -outline $var(shape,color) \
-smooth $var(smooth) \