Skip to content

Plotting Labels

The default labels used in plotting function such as VisualizationModel.plot in the configuration files. The following files are searched for default labels, in the order of precedence:

  1. micromechanical-labels.(toml|yaml|yml|json),
  2. [labels] in micromechanical.toml,
  3. [labels] in micromechanical/config.toml,
  4. [tool.micromechanical.labels] in pyproject.toml.

The following is an example of a configuration file:

micromechanical-labels.toml
# Default labels for plotting
[labels]
p = "Mean stress (kPa)"

# If a label is not found for a key, search for the label of the key in the following section
[defaults]
negp = "p"