summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bltGrElemBar.C4
-rw-r--r--src/bltGrElemLine.C4
-rw-r--r--tests/base.tcl7
3 files changed, 7 insertions, 8 deletions
diff --git a/src/bltGrElemBar.C b/src/bltGrElemBar.C
index a6b2c81..f5547b5 100644
--- a/src/bltGrElemBar.C
+++ b/src/bltGrElemBar.C
@@ -261,7 +261,7 @@ static Tk_OptionSpec barElemOptionSpecs[] = {
{TK_OPTION_PIXELS,"-errorbarwidth", "errorBarWidth", "ErrorBarWidth",
"1", -1, Tk_Offset(BarElement, builtinPen.errorBarLineWidth), 0, NULL, 0},
{TK_OPTION_PIXELS, "-errorbarcap", "errorBarCap", "ErrorBarCap",
- "1", -1, Tk_Offset(BarElement, builtinPen.errorBarCapWidth), 0, NULL, 0},
+ "2", -1, Tk_Offset(BarElement, builtinPen.errorBarCapWidth), 0, NULL, 0},
{TK_OPTION_SYNONYM, "-fg", NULL, NULL, NULL, -1, 0, 0, "-foreground", 0},
{TK_OPTION_SYNONYM, "-fill", NULL, NULL, NULL, -1, 0, 0, "-background", 0},
{TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
@@ -346,7 +346,7 @@ static Tk_OptionSpec barPenOptionSpecs[] = {
{TK_OPTION_PIXELS, "-errorbarwidth", "errorBarWidth","ErrorBarWidth",
"1", -1, Tk_Offset(BarPen, errorBarLineWidth), 0, NULL, 0},
{TK_OPTION_PIXELS, "-errorbarcap", "errorBarCap", "ErrorBarCap",
- "1", -1, Tk_Offset(BarPen, errorBarCapWidth), 0, NULL, 0},
+ "2", -1, Tk_Offset(BarPen, errorBarCapWidth), 0, NULL, 0},
{TK_OPTION_SYNONYM, "-fg", NULL, NULL, NULL, -1, 0, 0, "-foreground", 0},
{TK_OPTION_SYNONYM, "-fill", NULL, NULL, NULL, -1, 0, 0, "-background", 0},
{TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index 2ead2d6..72c98d5 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -522,7 +522,7 @@ static Tk_OptionSpec lineElemOptionSpecs[] = {
{TK_OPTION_PIXELS,"-errorbarwidth", "errorBarWidth", "ErrorBarWidth",
"1", -1, Tk_Offset(LineElement, builtinPen.errorBarLineWidth), 0, NULL, 0},
{TK_OPTION_PIXELS, "-errorbarcap", "errorBarCap", "ErrorBarCap",
- "1", -1, Tk_Offset(LineElement, builtinPen.errorBarCapWidth), 0, NULL, 0},
+ "2", -1, Tk_Offset(LineElement, builtinPen.errorBarCapWidth), 0, NULL, 0},
{TK_OPTION_COLOR, "-fill", "fill", "Fill",
NULL, -1, Tk_Offset(LineElement, builtinPen.symbol.fillColor),
TK_OPTION_NULL_OK, NULL, 0},
@@ -624,7 +624,7 @@ static Tk_OptionSpec linePenOptionSpecs[] = {
{TK_OPTION_PIXELS, "-errorbarwidth", "errorBarWidth", "ErrorBarWidth",
"1", -1, Tk_Offset(LinePen, errorBarLineWidth), 0, NULL, 0},
{TK_OPTION_PIXELS, "-errorbarcap", "errorBarCap", "ErrorBarCap",
- "1", -1, Tk_Offset(LinePen, errorBarCapWidth), 0, NULL, 0},
+ "2", -1, Tk_Offset(LinePen, errorBarCapWidth), 0, NULL, 0},
{TK_OPTION_COLOR, "-fill", "fill", "Fill",
NULL, -1, Tk_Offset(LinePen, symbol.fillColor), TK_OPTION_NULL_OK, NULL, 0},
{TK_OPTION_PIXELS, "-linewidth", "lineWidth", "LineWidth",
diff --git a/tests/base.tcl b/tests/base.tcl
index d69e609..179850d 100644
--- a/tests/base.tcl
+++ b/tests/base.tcl
@@ -66,12 +66,11 @@ proc bltCmd {graph args} {
proc bltElements {graph} {
$graph element create data1 \
-xdata { 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 } \
- -ydata { 13 25 36 46 55 64 70 75 80 90}\
- -color blue
+ -ydata { 13 25 36 46 55 64 70 75 80 90}
$graph element create data2 \
-xdata { 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 } \
- -ydata { 26 50 72 92 110 128 140 150 160 180}\
- -yerror {10 10 10 10 10 10 10 10 10 10 10} \
+ -ydata { 26 50 72 92 110 128 140 150 160 180} \
+ -yerror {10 10 10 10 10 10 10 10 10 10 10} \
-color red
$graph legend configure -title "Legend"
}