Skip to content

simple uxarray.plot(backend="matplotlib") seems to break subsequent xarray.plot functionality #1537

Description

@wwieder

Version

v2025.6.0

How did you install UXarray?

Conda

What happened?

A simple plotting call of a ux data array works fine:

ds['weights'].plot(backend="matplotlib").opts(
    cmap="viridis", title="Land Weights"
)

But then simple xarray.plot() call won't create a plot (e.g.

global_mean[plotVars[i]].plot() 

NOTE leaving off the backend="matplotlib" seems to prevent this issue from occurring
Sample notebook is here https://github.com/wwieder/CESM-Tutorial/blob/land_diags/notebooks/diagnostics/clm_ctsm/basics_clm.ipynb

What did you expect to happen?

plotting seamlessly between uxarray and basic matplotlib figures in a workflow

Can you provide a MCVE to repoduce the bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    📚 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions