Skip to content

Importing the unsequa module unconditionally adjusts matplotlib style #758

@peanutfun

Description

@peanutfun

When importing anything from the unsequa module, the file climada/engine/unsequa/unc_output.py is parsed, in which a matplotlib style is set and some configuration parameters are adjusted. This cannot be avoided and affects all following plots, not just the ones created by the unsequa module. Is there a particular reason for that behavior?

If the style is really desired for output of the unsequa module, we can wrap this into a function or context that is only applied when unsequa plotting functions are called.

If not, we can simply remove these lines, see https://github.com/CLIMADA-project/climada_python/blob/main/climada/engine/unsequa/unc_output.py#L67

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions