getTopContainer: Get the top-level g node in an SVG document

Description Usage Arguments Value Author(s) See Also Examples

Description

This function is a marginally convenient way to fetch the top-most g node in the SVG document that contains all the rendered components. This is the element with an id attribute whose value is 'surface0' and whose sub-nodes are typically of interest. The other part of the document is the defs which contain definitions that are used by sub-nodes of this g node.

Usage

1

Arguments

doc

the parsed SVG/XML document

Value

The XMLInternalNode.

Author(s)

Duncan Temple Lang

See Also

svgPlot

Examples

1
2
3
  doc = svgPlot(plot(1:10))
  getTopContainer(doc)
  getTopG(doc)

duncantl/SVGAnnotation documentation built on May 15, 2019, 5:57 p.m.