diagram
Sets the current diagram.
Syntax
-
diagram()
-
diagram(S)
-
S
is a non-empty string
-
Description
diagram(S)
sets the current diagram to the one named S
; if there is no diagram named S
, a new diagram with this name is created.
All subsequent 2D chart drawing and plotting operations will take place in this diagram.
A reference to the diagram is returned.
diagram()
instructs the front-end to put each new 2D chart or plot in its own, newly created, and temporary diagram. It is not possible to add other objects to this diagram later on.
See also
-
scene (3D counterpart)