Initializing help system before first use

svgsetgraphstyle

svgsetgraphstyle


Purpose
Set a style property of a graph.
Synopsis
procedure svgsetgraphstyle(prop: string, val: text|real)
Arguments
prop 
The desired property ( mmsvg constant or SVG property name).
val 
The new value for the property (usually a text, but properties like SVG_OPACITY or SVG_STROKEWIDTH also accept numerical values).
Return value
Value of the property or empty string.
Example
This code retrieves the font family defined for a group and applies it to the entire graph.
svgaddgroup("g", "A group")
svgsetgraphstyle(SVG_FONTFAMILY, svggetstyle("g", SVG_FONTFAMILY))
Further information
This procedure can be used to define a style property of a graph. Use svgsetgraphstylesheet to define the whole set of style properties of a graph.
Related topics