GeezerVison is showing github.com — `Gridplot` -> `Figure` by kushalkolar · Pull Request #479 · fastplotlib/fastplotlib
Conversation
kushalkolar
commented
Apr 7, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 🥳
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
almarklein reacted with rocket emoji
|
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 😄
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this 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
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* 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 <[email protected]>
kushalkolar
commented
Apr 12, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
clewis7
clewis7 left review comments
almarklein
Awaiting requested review from almarklein
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|