Skip to content

Setting matplotlib backend breaks non-tkagg plotting #83

Description

@bwohlberg

Importing mbirjax breaks plotting in any environment that uses a backend (e.g. qtagg) other than tkagg:

# Set backend
if os.environ.get("READTHEDOCS") == "True":
matplotlib.use('Agg')
else:
try:
matplotlib.use('TkAgg')
except ImportError:
matplotlib.use('Agg') # Fallback
warnings.warn("TkAgg not available. Falling back to Agg.")

I suggest removing these and adding the READTHEDOCS test to the sphinx conf.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions