You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/my/path/test.py", line 9, in <module>
ds.plot.scatter(x="dim", y="a", marker="x")
File "/my/path/.venv/lib/python3.9/site-packages/xarray/plot/accessor.py", line 1071, in scatter
return dataset_plot.scatter(self._ds, *args, **kwargs)
File "/my/path/.venv/lib/python3.9/site-packages/xarray/plot/dataset_plot.py", line 916, in scatter
return da.plot.scatter(*locals_.pop("args", ()), **locals_)
File "/my/path/.venv/lib/python3.9/site-packages/xarray/plot/accessor.py", line 305, in scatter
return dataarray_plot.scatter(self._da, *args, **kwargs)
File "/my/path/.venv/lib/python3.9/site-packages/xarray/plot/dataarray_plot.py", line 1002, in newplotfunc
primitive = plotfunc(
File "/my/path/.venv/lib/python3.9/site-packages/xarray/plot/dataarray_plot.py", line 1277, in scatter
primitive = ax.scatter(*[p.to_numpy().ravel() for p in plts], **kwargs)
File "/my/path/.venv/lib/python3.9/site-packages/matplotlib/__init__.py", line 1423, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/my/path/.venv/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 4571, in scatter
_api.warn_external(
File "/my/path/.venv/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external
warnings.warn(message, category, stacklevel)
UserWarning: You passed a edgecolor/edgecolors ('w') for an unfilled marker ('x'). Matplotlib is ignoring the edgecolor in favor of the facecolor. This behavior may change in the future.
What is your issue?
If plotting a scatter plot with an unfilled marker, matplotlib raises a UserWarning. Consider this MWE:
Running this with matplotlib 3.6.2 yields:
Environment:
The text was updated successfully, but these errors were encountered: