Command: modify

Syntax

modify { <elist> ... } {
    <element>=<value> {, <element>=<value> ...
    ...
}

Description

Modify attributes of entities.

Parameters

Switches

Notes

<element>=<value> phrases may be specified one per input line, or on the same input line separated by commas.

Sub-entities of compounds may be modified in isolation from their parent entities.

An entity can also be modified by a redefinition of its entity structure values.

When entity linestyles are modified (e.g. modify { ls=something } ), only polyline and polygon edges with non-null linestyles are changed, thereby protecting any disjoint edge situations.
If null linestyles need to be changed, the following commands are available:

entity.ls[n]=something;# Change the linestyle of the nth edge of an entity
set entity.ls=something;# Change the linestyles for all edges of an entity
modify_ls group { null => something } # Change null edges for all entities in a group

Examples

Modify the pen color of all entities in the these group.

modify { color=red }

Modify the fill color and linestyle of two entities.

modify fred, my_face {
    fill=blue, ls=dot_dash
}

See Also

Commands:

color, entity, fillstyle, group, linestyle, markerstyle, modify_ls, textstyle

Identifiers:

current_filter (filter), these (group)

Structures:

entity