Skip to content

REF: Remove un-used attribute-pinning in plotting #55944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

xref #54485

@tacaswell can you confirm that matplotlib doesn't use any of these internally? Removing these doesn't break any of our tests locally, but a lot of our plotting tests are basically smoke-tests.

@mroeschke mroeschke added the Visualization plotting label Nov 14, 2023
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

I think these are our custom attributes so these should be safe to remove. Mind merging main?

@tacaswell
Copy link
Contributor

I also believe that these are attributes that Pandas monkey-patches onto Matplotlib objects.

If you want to stash state related to unit conversion you can use the Axis.units attribute (best vias Axis.set_units(...).

attn @ksunden

@mroeschke mroeschke added this to the 2.2 milestone Nov 21, 2023
@mroeschke mroeschke merged commit 772d285 into pandas-dev:main Nov 21, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@ba05
Copy link

ba05 commented Jun 12, 2024

This commit appears to be causing an order of magnitude performance issue when plotting with a DatetimeIndex. See #57035

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants