summaryrefslogtreecommitdiffstats
path: root/tkblt/tests/crosshairs.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 18:47:42 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 18:47:42 (GMT)
commitb30a3539186f8949407967c4e21f6f36c7acc788 (patch)
treea64b1c8e30c82ca806ed8e3ca17581b2f769996e /tkblt/tests/crosshairs.tcl
parent5536024a26c61550eca4aec9737cd5eba8646ff9 (diff)
parenta488074b144e3eb3b21b1e8439fb36ce064ad6d2 (diff)
downloadblt-b30a3539186f8949407967c4e21f6f36c7acc788.zip
blt-b30a3539186f8949407967c4e21f6f36c7acc788.tar.gz
blt-b30a3539186f8949407967c4e21f6f36c7acc788.tar.bz2
Merge commit 'a488074b144e3eb3b21b1e8439fb36ce064ad6d2' as 'tkblt'
Diffstat (limited to 'tkblt/tests/crosshairs.tcl')
-rw-r--r--tkblt/tests/crosshairs.tcl26
1 files changed, 26 insertions, 0 deletions
diff --git a/tkblt/tests/crosshairs.tcl b/tkblt/tests/crosshairs.tcl
new file mode 100644
index 0000000..c63cea5
--- /dev/null
+++ b/tkblt/tests/crosshairs.tcl
@@ -0,0 +1,26 @@
+source base.tcl
+
+set w .line
+set graph [bltLineGraph $w]
+
+$graph crosshairs on
+$graph crosshairs configure -x 200 -y 200
+
+puts stderr "Testing Crosshairs..."
+
+bltTest2 $graph crosshairs -color green
+bltTest2 $graph crosshairs -dashes "8 3"
+bltTest2 $graph crosshairs -linewidth 3
+bltTest2 $graph crosshairs -x 100
+bltTest2 $graph crosshairs -y 100
+
+bltCmd $graph crosshairs cget -color
+bltCmd $graph crosshairs configure
+bltCmd $graph crosshairs configure -color
+bltCmd $graph crosshairs on
+bltCmd $graph crosshairs off
+bltCmd $graph crosshairs toggle
+
+puts stderr "done"
+bltPlotDestroy $w
+