grace

Full name: ase2sprkkr.result_files.grace

Module class hierarchy

Inheritance diagram of ase2sprkkr.result_files.grace.GraceDataset, ase2sprkkr.result_files.grace.GraceFile, ase2sprkkr.result_files.grace.GraceGraph


Description

Read Grace/XMGrace .agr projects without a plotting dependency.

The parser preserves graph/set identity, numeric data, common captions and layout parameters, and the original configuration commands. Grace’s text markup is deliberately kept intact; it is not Matplotlib/TeX markup.

Functions

_store_setting(settings, command)

Retain simple Grace attributes; full directives are also preserved.

_value(text)

Remove Grace's outer quotes, preserving its formatting escapes.

read_agr(source)

Read a Grace project from a path or an open text stream.

Classes

GraceDataset(graph_index, index[, type, ...])

One Grace set (e.g. G1.S0), with data in file order.

GraceFile([graphs, settings, commands])

Parsed Grace file; no matplotlib import or dependency.

GraceGraph(index[, datasets, settings, commands])

A Grace graph, containing numbered datasets and plot metadata.

Exceptions

GraceParseError

Malformed or unsupported content in a Grace project.