Grid settings
default_plot_axes_in_grid(nrows, ncols, total=None, day_labeler=None, time_labeler=None)
Additional layer on the display_settings_in_grid in order to modify the settings.
Yields:
Type | Description |
---|---|
PlotAxes
|
PlotAxes instance with appropriate display settings based on the position in the grid. |
Source code in latent_calendar/plot/grid_settings.py
display_settings_in_grid(nrows, ncols, total=None)
Helper for display logic in a grid.
Can be used with zip since zip function will stop at the shorts of the iterators
Yields:
Type | Description |
---|---|
DisplaySettings
|
DisplaySettings instance with the appropriate settings based on position in the grid. |
Source code in latent_calendar/plot/grid_settings.py
get_rows_and_cols(n, max_cols)
Return the number of rows and cols.
Source code in latent_calendar/plot/grid_settings.py
grid_axes(nrows, ncols, total)
Yields a grid of size nrow, ncols with total cap.
Using this instead of plt.subplots(ncols, nrows) and deleting