Skip to content

Clean up p9GridSpec: fix axes ownership, inline update, remove dead code#1044

Merged
has2k1 merged 1 commit intomainfrom
cleanup-p9gridspec
Apr 3, 2026
Merged

Clean up p9GridSpec: fix axes ownership, inline update, remove dead code#1044
has2k1 merged 1 commit intomainfrom
cleanup-p9gridspec

Conversation

@has2k1
Copy link
Copy Markdown
Owner

@has2k1 has2k1 commented Apr 3, 2026

  • Add _axes property that filters by gridspec identity, fixing _update_axes_position which previously iterated all figure axes without ownership checks and passed self as the figure argument
  • Inline update() into init (direct SubplotParams construction) and update_params_and_artists (explicit field access)
  • Remove unused parent_gridspec cached_property
  • Replace nested hasattr check with explicit _nested bool flag

- Add _axes property that filters by gridspec identity, fixing
  _update_axes_position which previously iterated all figure axes
  without ownership checks and passed self as the figure argument
- Inline update() into __init__ (direct SubplotParams construction)
  and update_params_and_artists (explicit field access)
- Remove unused parent_gridspec cached_property
- Replace nested hasattr check with explicit _nested bool flag
@has2k1 has2k1 merged commit a1193ad into main Apr 3, 2026
14 checks passed
@has2k1 has2k1 deleted the cleanup-p9gridspec branch April 3, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant