Skip to content

Commit

Permalink
replaced import_matplotlib_pyplot with regular plt import to suppor…
Browse files Browse the repository at this point in the history
…t xarray 2023.9.0
  • Loading branch information
veenstrajelmer authored Sep 28, 2023
1 parent 508453a commit b3987fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xugrid/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import functools

import numpy as np
import matplotlib.pyplot as plt
from xarray.plot.facetgrid import _easy_facetgrid
from xarray.plot.utils import (
_add_colorbar,
_ensure_plottable,
_process_cmap_cbar_kwargs,
_update_axes,
get_axis,
import_matplotlib_pyplot,
label_from_attrs,
)

Expand Down Expand Up @@ -251,8 +251,6 @@ def newplotfunc(
allargs["plotfunc"] = globals()[plotfunc.__name__]
return _easy_facetgrid(darray, kind="dataarray", **allargs)

plt = import_matplotlib_pyplot()

# For 3d plot, ensure given ax is a Axes3D object
if (
plotfunc.__name__ == "surface"
Expand Down

0 comments on commit b3987fa

Please sign in to comment.