Skip to content

Fix .plot error when using positional args with col and row#11111

Merged
jsignell merged 9 commits intopydata:mainfrom
jsignell:plot-warnings
Feb 4, 2026
Merged

Fix .plot error when using positional args with col and row#11111
jsignell merged 9 commits intopydata:mainfrom
jsignell:plot-warnings

Conversation

@jsignell
Copy link
Member

Additional keyword arguments to :py:func:`matplotlib:matplotlib.pyplot.hist`.

"""
assert len(args) == 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this in passing. Just an old way of saying no positional args.

def scatter(
ds: Dataset,
*args: Any,
*,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to add a test for positional args on scatter but it errored out because it immediately tries to use y to make a dataarray from the dataset. We could fix this and add a deprecation cycle, but since the change went in 3 years ago and it hasn't been fixed yet seems fine to just remove the option for positional args.

@jsignell jsignell changed the title Fixes error when from .plot when using positional args with col and row Fix .plot error when using positional args with col and row Jan 30, 2026
@jsignell jsignell enabled auto-merge (squash) February 4, 2026 14:35
@jsignell jsignell merged commit d68c013 into pydata:main Feb 4, 2026
39 checks passed
tonybaloney pushed a commit to tonybaloney/swe-complex-xarray that referenced this pull request Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected keyword error in dataarray_plot.py

2 participants