Show/Hide

Shows or hides the legend. Value can be displayed on top of each bar for bar charts only.

Syntax

<Curve Editor Object> Show legend

<Curve Editor Object> Hide legend

For bar charts only:

<Curve Editor Object> Show value

<Curve Editor Object> Hide value

Description

Arguments

None.

Returns

None.

Example

set editor [::hw::CurveEditor .t]
$editor Add -x 0:5:0.1 -x 0:10:0.1 -y 50*sin(x) -y 50*cos(x) -linethickness 2
Figure 1. $editor Hide legend


Figure 2. $editor Show legend


set editor [::hw::CurveEditor .t]
$editor SetType bar
$editor Add -category [list Jan Feb Mar Apr] -y [list 10 15 30 52 26] -y 0:25:5
Figure 3. $editor Show value