Skip to content

Gridplot -> Figure #479

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 30 commits into from
Apr 12, 2024
Merged

Gridplot -> Figure #479

merged 30 commits into from
Apr 12, 2024

Conversation

kushalkolar
Copy link
Member

@kushalkolar kushalkolar commented Apr 7, 2024

closes #457

This PR breaks everything 😄

  • Gridplot renamed to Figure
  • Plot is removed in favor of just doing Figure() since the default shape=(1, 1), i.e. "gridplot" with a single subplot
  • Frame merged into Figure
  • RecordMixin -> FigureRecorder
    • record is now an instance of Figure, use composition instead of inheritance, I haven't tested that this works yet, right now it's still a very experimental feature
  • _frame module renamed to output, some reorganization of what is public/private within that module to make it more logical
  • updated all the examples and tests
  • update ImageWidget

Still need to do this for ImageWidget, waiting for #459 , rest of it is good to go and tests are passing on my end 🥳

@kushalkolar
Copy link
Member Author

when reviewing don't be scared by the size of the diff, it's mostly stuff being moved around, and the changes to the examples are mostly renaming stuff from plot -> figure, gridplot -> figure 😄

clewis7
clewis7 previously approved these changes Apr 9, 2024
Copy link
Member

@clewis7 clewis7 left a comment

Choose a reason for hiding this comment

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

LGTM, mostly just a big refactor but I think this cleans up a lot of the soup and better organizes the repo

kushalkolar and others added 13 commits April 12, 2024 00:39
Co-authored-by: Caitlin Lewis <69729525+clewis7@users.noreply.github.com>
* fefactor imwidget, restrict to tzxy, txy, xy, added RGB(A) support (#459)

* add new iw test screenshots

* update api docs

---------

Co-authored-by: Amol Pasarkar <amolpasarkar@gmail.com>
@kushalkolar kushalkolar marked this pull request as ready for review April 12, 2024 05:15
@kushalkolar
Copy link
Member Author

kushalkolar commented Apr 12, 2024

Idea: if figure.shape == (1, 1), should be make figure.__getitem__ just pass to subplot.__getitem__ so the user doesn't have to do figure[0, 0] 🤔

edit: No, keep things consistent

@kushalkolar kushalkolar merged commit 25aa9e3 into main Apr 12, 2024
@kushalkolar kushalkolar deleted the figure branch April 12, 2024 18:50
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.

GridPlot -> Figure as the only user-facing layout
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy