| PlotColor | TCL UTILITIES USER MANUAL | PlotColor |
|---|
| PlotColor  |
|
| lStyle | - | The current line style. This
can also set in the LineStyle procedure and is
also included here for historical reasons. The recognized
inputs are:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lColor | - | The current line color. Value must be between 0 and 255. Set to HOLD to keep the current value. When fColor is set this is the color which outlines the filled area. Set to the fcolor value if you don't want to see the outline. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fColor | - | The current fill color. Value must be between 0 and 255. Set to OFF to turn off filling or set to HOLD to keep the current value. |
# INITIALIZE the default gui settings
GUIprefsRead
# SET a window size
set GphInfo(xsScrL) 600
set GphInfo(ysScrL) 500
set GphInfo(xScrL) 600
set GphInfo(yScrL) 500
# START graphics
GraphicsOn TK RainBow
# ESTABLISH a graphics window coverting the whole canvas
GenWindow 0 0.0 0.0 0.0 1.0 1.0 1.0 -6.0 -6.0 0.0 6.0 6.0 0.0
# SET the text size to 10
TextProp 10 HOLD HOLD
# OUTPUT lines of different line styles and label them
PlotColor DASH1 $GphInfo(White) HOLD
Line 0 -6.0 5.0 0.0 2.5 5.0 0.0
TexT 0 3.0 5.0 0.0 right DASH1 $GphInfo(White)
PlotColor DASH2 $GphInfo(White) HOLD
Line 0 -6.0 4.5 0.0 2.5 4.5 0.0
TexT 0 3.0 4.5 0.0 right DASH2 $GphInfo(White)
PlotColor DASH3 $GphInfo(White) HOLD
Line 0 -6.0 4.0 0.0 2.5 4.0 0.0
TexT 0 3.0 4.0 0.0 right DASH3 $GphInfo(White)
PlotColor DASH4 $GphInfo(White) HOLD
Line 0 -6.0 3.5 0.0 2.5 3.5 0.0
TexT 0 3.0 3.5 0.0 right DASH4 $GphInfo(White)
PlotColor SPDASH1 $GphInfo(Red) HOLD
Line 0 -6.0 3.0 0.0 2.5 3.0 0.0
TexT 0 3.0 3.0 0.0 right SPDASH1 $GphInfo(Red)
PlotColor SPDASH2 $GphInfo(Red) HOLD
Line 0 -6.0 2.5 0.0 2.5 2.5 0.0
TexT 0 3.0 2.5 0.0 right SPDASH2 $GphInfo(Red)
PlotColor SPDASH3 $GphInfo(Red) HOLD
Line 0 -6.0 2.0 0.0 2.5 2.0 0.0
TexT 0 3.0 2.0 0.0 right SPDASH3 $GphInfo(Red)
PlotColor SPDASH4 $GphInfo(Red) HOLD
Line 0 -6.0 1.5 0.0 2.5 1.5 0.0
TexT 0 3.0 1.5 0.0 right SPDASH4 $GphInfo(Red)
PlotColor DASHDOT1 $GphInfo(Green) HOLD
Line 0 -6.0 1.0 0.0 2.5 1.0 0.0
TexT 0 3.0 1.0 0.0 right DASHDOT1 $GphInfo(Green)
PlotColor DASHDOT2 $GphInfo(Green) HOLD
Line 0 -6.0 0.5 0.0 2.5 0.5 0.0
TexT 0 3.0 0.5 0.0 right DASHDOT2 $GphInfo(Green)
PlotColor DASHDOT3 $GphInfo(Green) HOLD
Line 0 -6.0 0.0 0.0 2.5 0.0 0.0
TexT 0 3.0 0.0 0.0 right DASHDOT3 $GphInfo(Green)
PlotColor DASH2DOT1 $GphInfo(Cyan) HOLD
Line 0 -6.0 -0.5 0.0 2.5 -0.5 0.0
TexT 0 3.0 -0.5 0.0 right DASH2DOT1 $GphInfo(Cyan)
PlotColor DASH2DOT2 $GphInfo(Cyan) HOLD
Line 0 -6.0 -1.0 0.0 2.5 -1.0 0.0
TexT 0 3.0 -1.0 0.0 right DASH2DOT2 $GphInfo(Cyan)
PlotColor DASH2DOT3 $GphInfo(Cyan) HOLD
Line 0 -6.0 -1.5 0.0 2.5 -1.5 0.0
TexT 0 3.0 -1.5 0.0 right DASH2DOT3 $GphInfo(Cyan)
PlotColor DASHSPDOT1 $GphInfo(Blue) HOLD
Line 0 -6.0 -2.0 0.0 2.5 -2.0 0.0
TexT 0 3.0 -2.0 0.0 right DASHSPDOT1 $GphInfo(Blue)
PlotColor DASHSPDOT2 $GphInfo(Blue) HOLD
Line 0 -6.0 -2.5 0.0 2.5 -2.5 0.0
TexT 0 3.0 -2.5 0.0 right DASHSPDOT2 $GphInfo(Blue)
PlotColor DASHSPDOT3 $GphInfo(Blue) HOLD
Line 0 -6.0 -3.0 0.0 2.5 -3.0 0.0
TexT 0 3.0 -3.0 0.0 right DASHSPDOT3 $GphInfo(Blue)
PlotColor "{_....}" $GphInfo(Yellow) HOLD
Line 0 -6.0 -3.5 0.0 2.5 -3.5 0.0
TexT 0 3.0 -3.5 0.0 right "USER DEFINED" $GphInfo(Yellow)
# DRAW a red filled box outlines in yellow
PlotColor SOLID $GphInfo(Yellow) $GphInfo(Red)
Box 0 3.0 -5.5 0.0 4.0 -4.0 0.0
# DRAW a purple filled box outlines in purple
PlotColor SOLID $GphInfo(Purple) $GphInfo(Purple)
Box 0 -4.0 -5.5 0.0 -3.0 -4.0 0.0
# DRAW a solid green line
PlotColor SOLID $GphInfo(Green) OFF
Line 0 -2.75 -4.75 0.0 2.70 -4.75 0.0
TexT 0 0.0 -4.75 0.0 center "SOLID" $GphInfo(Green)
| Feb 15, 2007 |
|---|