diff options
author | joye <joye> | 2014-03-18 21:09:38 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-18 21:09:38 (GMT) |
commit | 57329c620b5b44aaf32c8d4d96ca95781a64136e (patch) | |
tree | 539f5fa9ae0501f8bb57ffc6c185dd8925eeeb36 /tests/marker.tcl | |
parent | 381a52e47a7964fc9065bbecfb18e8995a27d24e (diff) | |
download | blt-57329c620b5b44aaf32c8d4d96ca95781a64136e.zip blt-57329c620b5b44aaf32c8d4d96ca95781a64136e.tar.gz blt-57329c620b5b44aaf32c8d4d96ca95781a64136e.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'tests/marker.tcl')
-rw-r--r-- | tests/marker.tcl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/marker.tcl b/tests/marker.tcl new file mode 100644 index 0000000..345654d --- /dev/null +++ b/tests/marker.tcl @@ -0,0 +1,32 @@ +source base.tcl + +set w .line +set graph [bltLineGraph $w] + +set mm [$graph marker create line tt -element data1 \ + -coords {1 50 1.5 100 1 150} -linewidth 5] +set nn [$graph marker create line ss -element data1 \ + -coords {1 150 .5 100 1 50} -linewidth 1 \ + -outline green -dashes 4] + +#bltCmd $graph marker bind marker ?sequence command? +bltCmd $graph marker cget $mm -cap +bltCmd $graph marker configure $mm +bltCmd $graph marker configure $mm -cap +set foo [$graph marker create line] +bltCmd $graph marker delete $foo +set foo [$graph marker create line foo] +bltCmd $graph marker delete $foo +bltCmd $graph marker exists $mm +bltCmd $graph marker find enclosed 0 0 2 200 +bltCmd $graph marker get name current +bltCmd $graph marker lower $mm +bltCmd $graph marker lower $mm $nn +bltCmd $graph marker names +bltCmd $graph marker raise $mm +bltCmd $graph marker raise $mm $nn +bltCmd $graph marker type $mm + +echo "done" +bltPlotDestroy $w + |