The nodisp command defines an object without displaying it.
Setting a variable to a graphic object draws the object.
C:=point(1+i) |
nodisp(C:=point(1+i)) |
Here, the point C is defined but not displayed. It is equivalent to following the command with :;,
C:=point(1+i):; |
To define a point as above and display it without the label, enter the point’s name;
C |
Alternatively, you can get the same effect by defining the point within an eval statement:
eval(C:=point(1+i)) |
To later display the point with a label, use the legend command:
legend(C,"C") |
or:
point(affix(C),legend="C") |
In this case, the string “C” can be replaced with any other string as a label. Alternatively, redefine the variable as itself:
C:=C |
prints C with its label.