diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-03-01 20:18:37 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-03-01 20:18:37 (GMT) |
commit | 044bafd3e472dda4b075aed97835ba9436ba7a76 (patch) | |
tree | 3e29ac72aed5d04f36b867a747b011b4484b7fb6 /ds9 | |
parent | 885f61c3f6e21f8781771d9b2f4e1962803c62a0 (diff) | |
download | blt-044bafd3e472dda4b075aed97835ba9436ba7a76.zip blt-044bafd3e472dda4b075aed97835ba9436ba7a76.tar.gz blt-044bafd3e472dda4b075aed97835ba9436ba7a76.tar.bz2 |
remove sequence data flag from plot widgets
Diffstat (limited to 'ds9')
-rw-r--r-- | ds9/doc/release/r8.1.html | 1 | ||||
-rw-r--r-- | ds9/library/plot.tcl | 141 | ||||
-rw-r--r-- | ds9/library/plotbar.tcl | 2 | ||||
-rw-r--r-- | ds9/library/plotline.tcl | 2 | ||||
-rw-r--r-- | ds9/library/plotscatter.tcl | 2 |
5 files changed, 24 insertions, 124 deletions
diff --git a/ds9/doc/release/r8.1.html b/ds9/doc/release/r8.1.html index 63d3a9f..e87b39b 100644 --- a/ds9/doc/release/r8.1.html +++ b/ds9/doc/release/r8.1.html @@ -53,6 +53,7 @@ <li><tt>02.15.2019 TCLLIB: updated to version 1.19.</tt></li> <li><tt>02.26.2019 GUI: add command "preserve scale" for backward compatibility.</tt></li> <li><tt>02.28.2019 TKBLT: fixed postscript bounding box issue.</tt></li> +<li><tt>03.01.2019 PLOT: removed old sequence flag from plot widgets.</tt></li> <li><tt><b>xx.xx.2019 RELEASE version 8.1b1</b></tt></li> </ol> </div> diff --git a/ds9/library/plot.tcl b/ds9/library/plot.tcl index 6f9d639..27080db 100644 --- a/ds9/library/plot.tcl +++ b/ds9/library/plot.tcl @@ -268,19 +268,8 @@ proc PlotDataSetOne {varname dim data} { set var(yedata) {} for {} {$ii<$ll} {incr ii 2} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] } $var(xdata) set $x $var(ydata) set $y @@ -295,21 +284,9 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(xedata) for {} {$ii<$ll} {incr ii 3} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend xe [lindex $data [expr $ii+2]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend xe [lindex $data [expr $ii+2]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] + lappend xe [lindex $data [expr $ii+2]] } $var(xdata) set $x $var(ydata) set $y @@ -326,21 +303,9 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(yedata) for {} {$ii<$ll} {incr ii 3} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] + lappend ye [lindex $data [expr $ii+2]] } $var(xdata) set $x $var(ydata) set $y @@ -356,23 +321,10 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(xedata) $var(yedata) for {} {$ii<$ll} {incr ii 4} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend xe [lindex $data [expr $ii+2]] - lappend ye [lindex $data [expr $ii+3]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend xe [lindex $data [expr $ii+2]] - lappend ye [lindex $data [expr $ii+3]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] + lappend xe [lindex $data [expr $ii+2]] + lappend ye [lindex $data [expr $ii+3]] } $var(xdata) set $x $var(ydata) set $y @@ -389,21 +341,9 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(yedata) for {} {$ii<$ll} {incr ii 4} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] + lappend ye [lindex $data [expr $ii+2]] } $var(xdata) set $x $var(ydata) set $y @@ -416,19 +356,8 @@ proc PlotDataSetOne {varname dim data} { set var(yedata) {} for {} {$ii<$ll} {incr ii 4} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+3]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+3]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+3]] } $var(xdata) set $x $var(ydata) set $y @@ -443,21 +372,9 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(yedata) for {} {$ii<$ll} {incr ii 5} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+1]] - lappend ye [lindex $data [expr $ii+2]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+1]] + lappend ye [lindex $data [expr $ii+2]] } $var(xdata) set $x $var(ydata) set $y @@ -473,21 +390,9 @@ proc PlotDataSetOne {varname dim data} { blt::vector create $var(yedata) for {} {$ii<$ll} {incr ii 5} { - set tx [lindex $data $ii] - if {$var(seq)} { - if {$ox<=$tx} { - set ox $tx - lappend x $tx - lappend y [lindex $data [expr $ii+3]] - lappend ye [lindex $data [expr $ii+4]] - } else { - break - } - } else { - lappend x $tx - lappend y [lindex $data [expr $ii+3]] - lappend ye [lindex $data [expr $ii+4]] - } + lappend x [lindex $data $ii] + lappend y [lindex $data [expr $ii+3]] + lappend ye [lindex $data [expr $ii+4]] } $var(xdata) set $x $var(ydata) set $y diff --git a/ds9/library/plotbar.tcl b/ds9/library/plotbar.tcl index 0c9619a..3a1a75c 100644 --- a/ds9/library/plotbar.tcl +++ b/ds9/library/plotbar.tcl @@ -64,8 +64,6 @@ proc PlotDialogBar {varname} { global ds9 - set var(seq) 1 - # Graph $var(mb).graph add separator $var(mb).graph add cascade -label "[msgcat::mc {Mode}]..." \ diff --git a/ds9/library/plotline.tcl b/ds9/library/plotline.tcl index 773ea6a..50b0f40 100644 --- a/ds9/library/plotline.tcl +++ b/ds9/library/plotline.tcl @@ -64,8 +64,6 @@ proc PlotDialogLine {varname} { global ds9 - set var(seq) 1 - # Dataset $var(mb).dataset add checkbutton -label [msgcat::mc {Show}] \ -variable ${varname}(show) \ diff --git a/ds9/library/plotscatter.tcl b/ds9/library/plotscatter.tcl index d634060..3816cea 100644 --- a/ds9/library/plotscatter.tcl +++ b/ds9/library/plotscatter.tcl @@ -64,8 +64,6 @@ proc PlotDialogScatter {varname} { global ds9 - set var(seq) 0 - # Dataset $var(mb).dataset add checkbutton -label [msgcat::mc {Show}] \ -variable ${varname}(show) \ |