Skip to content

SWR matplotlib__matplotlib-22696 - #86

Open
richeshgupta wants to merge 1 commit into
swr-base-14090b8from
swr-head-14090b8
Open

richeshgupta wants to merge 1 commit into
swr-base-14090b8from
swr-head-14090b8

Conversation

@richeshgupta

Copy link
Copy Markdown

SWRBench case matplotlib__matplotlib-22696: pinned base 560681c to head 14090b8 of matplotlib#22696. Benchmark replay, not for merge.

@razorpay-slash razorpay-slash Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated code review

Reviewed up to 14090b8.
All 5 reviewers completed.

# super init delayed after own init because array kwarg requires
# self._coordinates and self._shading
super().__init__(**kwargs)
self.set_mouseover(False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[MEDIUM] QuadMesh constructor silently overrides an explicit mouseover=True kwarg

Issue

self.set_mouseover(False) executes after super().init(**kwargs) has already applied user-supplied artist kwargs, so an explicit mouseover=True passed to QuadMesh or Axes.pcolormesh is silently reset to False.

Evidence

SUSPECTED: A test calling ax.pcolormesh([[1, 2], [3, 4]], mouseover=True) and asserting the returned object's get_mouseover() is True fails with this code, because set_mouseover(False) unconditionally overrides the kwarg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants