Skip to content

Conversation

@clewis7
Copy link
Member

@clewis7 clewis7 commented Sep 23, 2022

addressing some of the simplification ideas in #22 , #36

basically adds the ability to name subplots in a gridplot

@kushalkolar
Copy link
Member

I thought about this a bit more and it makes more sense for name to be an attribute of Subplot.

Subplot already has the attribute position which acts similar to GridPlotIndexer.index

more comments in the code

@kushalkolar kushalkolar mentioned this pull request Nov 1, 2022
4 tasks
@kushalkolar
Copy link
Member

Add name as a kwarg to Subplot and names as a kwarg to Gridplot so that the names can be set from the beginning.

@clewis7
Copy link
Member Author

clewis7 commented Nov 7, 2022

naming functionality now works as outlined in #36

take a look and let me know if I need to make any additional changes, or could improve elegancy!!

@kushalkolar
Copy link
Member

can you do this without the heatmap branch being merged into here? that branch Is too rudimentary and I want to merge this first

Copy link
Member

@kushalkolar kushalkolar left a comment

Choose a reason for hiding this comment

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

residual heatmap stuff

@clewis7
Copy link
Member Author

clewis7 commented Nov 7, 2022

still need to implement helpful __repr__ methods for Graphic, GridPlot, and Subplot

@kushalkolar
Copy link
Member

Can you update the example notebooks according to this PR

Copy link
Member

@kushalkolar kushalkolar left a comment

Choose a reason for hiding this comment

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

Minor error handling

for subplot in self._subplots.ravel():
if subplot.name == index:
return subplot
else:
Copy link
Member

Choose a reason for hiding this comment

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

nope this will always raise after the first iteration, you need just a raise after the loop

@kushalkolar kushalkolar merged commit f0b5a36 into master Nov 8, 2022
@kushalkolar
Copy link
Member

great job on your first contribution! :D

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.

3 participants