diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-17 15:23:43 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-17 15:23:43 (GMT) |
commit | a7a663ff3862b39b49a7b8930a4fa79629dddd4d (patch) | |
tree | bd18e083d7b40e52c51313ecffcffa71fd8a2cff /tkblt/tests/linepen.tcl | |
parent | 7dd9b970cec6832b8f6118dc2dd91a08d2836648 (diff) | |
parent | 39c6355e46a21c8ccdf7b4e7c24bb7f3259fa3d7 (diff) | |
download | blt-a7a663ff3862b39b49a7b8930a4fa79629dddd4d.zip blt-a7a663ff3862b39b49a7b8930a4fa79629dddd4d.tar.gz blt-a7a663ff3862b39b49a7b8930a4fa79629dddd4d.tar.bz2 |
Merge commit '39c6355e46a21c8ccdf7b4e7c24bb7f3259fa3d7' as 'tkblt'
Diffstat (limited to 'tkblt/tests/linepen.tcl')
-rw-r--r-- | tkblt/tests/linepen.tcl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tkblt/tests/linepen.tcl b/tkblt/tests/linepen.tcl new file mode 100644 index 0000000..e47b243 --- /dev/null +++ b/tkblt/tests/linepen.tcl @@ -0,0 +1,55 @@ +source base.tcl + +set w .line +set graph [bltLineGraph $w] + +$graph pen create foo -color red -showvalues y -symbol circle -dashes {4 4} +$graph element configure data2 -pen foo + +puts stderr "Testing Line Pen..." + +bltTest3 $graph pen foo -color yellow $dops +bltTest3 $graph pen foo -dashes {8 3} $dops +bltTest3 $graph pen foo -errorbarcolor green $dops +bltTest3 $graph pen foo -errorbarwidth 2 $dops +bltTest3 $graph pen foo -errorbarcap 10 $dops +bltTest3 $graph pen foo -fill cyan $dops +bltTest3 $graph pen foo -linewidth 3 $dops +bltTest3 $graph pen foo -offdash black $dops +bltTest3 $graph pen foo -outline green $dops +bltTest3 $graph pen foo -outlinewidth 5 $dops +bltTest3 $graph pen foo -pixels 20 $dops +bltTest3 $graph pen foo -showvalues none $dops +bltTest3 $graph pen foo -symbol arrow $dops +bltTest3 $graph pen foo -symbol cross $dops +bltTest3 $graph pen foo -symbol diamond $dops +bltTest3 $graph pen foo -symbol none $dops +bltTest3 $graph pen foo -symbol plus $dops +bltTest3 $graph pen foo -symbol scross $dops +bltTest3 $graph pen foo -symbol splus $dops +bltTest3 $graph pen foo -symbol square $dops +bltTest3 $graph pen foo -symbol triangle $dops +bltTest3 $graph pen foo -valueanchor nw $dops +bltTest3 $graph pen foo -valueanchor n $dops +bltTest3 $graph pen foo -valueanchor ne $dops +bltTest3 $graph pen foo -valueanchor e $dops +bltTest3 $graph pen foo -valueanchor se $dops +bltTest3 $graph pen foo -valueanchor s $dops +bltTest3 $graph pen foo -valueanchor sw $dops +bltTest3 $graph pen foo -valueanchor w $dops +bltTest3 $graph pen foo -valuecolor cyan $dops +bltTest3 $graph pen foo -valuefont {times 18 bold italic} $dops +bltTest3 $graph pen foo -valueformat "%e" $dops +bltTest3 $graph pen foo -valuerotate 45 $dops + +bltCmd $graph pen cget foo -color +bltCmd $graph pen configure foo +bltCmd $graph pen configure foo -color +bltCmd $graph pen create bar +bltCmd $graph pen delete bar +bltCmd $graph pen names +bltCmd $graph pen type foo + +puts stderr "done" +bltPlotDestroy $w + |