Getting this error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_2168/3526586652.py in <module>
1 _, ax = plt.subplots()
----> 2 prior_checks.prior.plot.scatter(x="ITEM_NUMBER", y="a", color="k", alpha=0.2, ax=ax, coords = {'ITEM_NUMBER':['100179', '100186', 'WHU9922']}, flatten=[])
3 plt.xticks(rotation=45)
4
5 ax.set_ylabel("Mean log Sales(eaches)");
/opt/conda/lib/python3.7/site-packages/xarray/plot/dataset_plot.py in plotmethod(_PlotMethods_obj, x, y, u, v, hue, hue_style, col, row, ax, figsize, col_wrap, sharex, sharey, aspect, size, subplot_kws, add_guide, cbar_kwargs, cbar_ax, vmin, vmax, norm, infer_intervals, center, levels, robust, colors, extend, cmap, **kwargs)
470 for arg in ["_PlotMethods_obj", "newplotfunc", "kwargs"]:
471 del allargs[arg]
--> 472 return newplotfunc(**allargs)
473
474 # Add to class _PlotMethods
/opt/conda/lib/python3.7/site-packages/xarray/plot/dataset_plot.py in newplotfunc(ds, x, y, u, v, hue, hue_style, col, row, ax, figsize, size, col_wrap, sharex, sharey, aspect, subplot_kws, add_guide, cbar_kwargs, cbar_ax, vmin, vmax, norm, infer_intervals, center, levels, robust, colors, extend, cmap, **kwargs)
385 hue_style=hue_style,
386 cmap_params=cmap_params_subset,
--> 387 **kwargs,
388 )
389
/opt/conda/lib/python3.7/site-packages/xarray/plot/dataset_plot.py in scatter(ds, x, y, ax, **kwargs)
533
534 primitive = ax.scatter(
--> 535 data["x"].values.ravel(), data["y"].values.ravel(), **cmap_params, **kwargs
536 )
537
/opt/conda/lib/python3.7/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
1410 def inner(ax, *args, data=None, **kwargs):
1411 if data is None:
-> 1412 return func(ax, *map(sanitize_sequence, args), **kwargs)
1413
1414 bound = new_sig.bind(ax, *args, **kwargs)
/opt/conda/lib/python3.7/site-packages/matplotlib/axes/_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, edgecolors, plotnonfinite, **kwargs)
4466 )
4467 collection.set_transform(mtransforms.IdentityTransform())
-> 4468 collection.update(kwargs)
4469
4470 if colors is None:
/opt/conda/lib/python3.7/site-packages/matplotlib/artist.py in update(self, props)
1062 func = getattr(self, f"set_{k}", None)
1063 if not callable(func):
-> 1064 raise AttributeError(f"{type(self).__name__!r} object "
1065 f"has no property {k!r}")
1066 ret.append(func(v))
AttributeError: 'PathCollection' object has no property 'coords'
I used coords in my model. I even see them correctly in my summary.