Name of an object
|Objects||Name Default Values|
Name sets the name of a graphical
object. The object is displayed by this name in the legend and the
interactive object browser of the graphics tool.
Giving a name to a graphical object has no significance whatsoever for the graphical appearance of the object. The main purpose of the name is to make it easier to identify the object in the interactive "object browser" of the MuPAD® graphics tool (see section Viewer, Browser, and Inspector: Interactive Manipulation of this document).
If no name is specified, the type of the object is diplayed in the object browser.
Name has a special technical semantics for
objects of type
The bounding functions or curves of the hatch are referenced via their
name slot. If the bounding function or curve has no name slot, it
is set implicitly by
plot::Hatch to the output
the function/curve. Cf. Example 2Example
The first two of the following function objects are given the
Generate the graphics and doubleclick on the plot. The two function
objects are visible under their names in the object browser. The third
function is just labeled as a 'Function2d' object. Also the legend
uses this labeling:
plot(plot::Function2d(sin(x), x = -PI..PI, Name = "Sin", Color = RGB::Red), plot::Function2d(cos(x), x = -PI..PI, Name = "Cos", Color = RGB::Green), plot::Function2d(x/PI , x = -PI..PI, Color = RGB::Blue), LegendVisible = TRUE)
By default, an object does not have a
f := plot::Function2d(cos(x), x=0..PI): f::Name
When creating a
Name slot is set implicitly for the border
h := plot::Hatch(f): f::Name
We plot the hatch with its bounding function:
Doubleclick on the graphics and observe the way the objects are labeled in the object inspector.
delete f, h: