grid-strategy
grid-strategy copied to clipboard
Library to facilitate the arrangement of matplotlib subplots based on the number of plots
This project came up on the discourse. I'm just curious if it still works well with the constrained_layout rewrite?
This PR removes the dependency on matplotlib for creating plots. I decoupled the functions that created matplotlib figures and moved them into their own class, and had the strategy classes...
In case you decide that passing a figure in is ok (#54), here is an implementation :) Thank you for this project!
Can we add an insert function to let users insert their premade figures into specific grids?
Overall this looks fun. Super happy you are using constrained layout, but suggest you make it optional somehow. There are some times when it'll fail and users will want a...
We should have a few simple examples in the documentation, generated inline with the matplotlib plotting extensions for sphinx. For example, we can use this to generate one of the...
RectangularStrategy, if get_grid takes in prime N, creates a one-row by N cols plots grid. This poses an issue with larger prime numbers (N > 3)
Per my comments in #50, I think we should probably create a version of `SquareStrategy` that allows you to specify a target aspect ratio other than 1:1. The nomenclature is...
There's at least one property test that I think would be useful: we can assert that: ```python def test_arrangement(strategy, n): sum(strategy.get_grid_arrangement(n)) == n ``` Getting a grid arrangement that has...
Right now "fully justified" changes the shape of the plots, we could change that to two different justification modes. In [the original MEP](https://github.com/matplotlib/matplotlib/wiki/MEP30:-Grid-population-strategies), I proposed two "fully justified" modes, `fill-grow`...