package documentation
Classes and routines that assist with plotting, specifically plotting the progress of algorithms.
Module | base |
Defines the public facing interface for plot classes, used to interface with hooks in aopp_deconv_tool.algorithm.deconv classes |
Module | plotters |
Contains classes that assist with plotting histograms. |
From __init__.py
:
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | create |
Creates a figure and fills it with subplots |
Function | ensure |
Undocumented |
Function | fig |
Undocumented |
Function | fig |
Undocumented |
Function | figure |
Create a figure with n subplots arranged in a rectangle that has the lowest aspect ratio |
Function | flip |
Undocumented |
Function | flip |
Undocumented |
Function | get |
Undocumented |
Function | lim |
Undocumented |
Function | lim |
Undocumented |
Function | lowest |
Undocumented |
Function | output |
Outputs the passed figure to a file fname , interactively show it, and close it afterwards |
Function | remove |
Undocumented |
Function | remove |
Undocumented |
Function | set |
Undocumented |
def create_figure_with_subplots(nr, nc, nax=None, size=6, squeeze=False, figure=None, flatten=True, fig_kwargs={}, sp_kwargs={}):
¶
Creates a figure and fills it with subplots
- # ARGUMENTS #
- nr
- <int> Number of rows
- nc
- <int> Number of columns
- nax
- <int> Number of axes to create
- size [2]
- <float> Size of figure to create x and y dimension, will be multipled by number of columns and rows
- fig_kwargs [dict]
- Figure keyword arguments. 'figsize' will overwrite passed values for 'size' if present.
- sp_kwargs [dict]
- Subplot keyword arguments. 'squeeze' will overwrite passed values if present.
- # RETURNS #
- f
- Matplotlib figure created
- a [nax]
- List of axes contained in f
def output(show:
bool | float
= False, fname: str | Path | None
= None, figure: mpl.figure.Figure | str | int | None
= None, **kwargs):
¶
Outputs the passed figure to a file fname
, interactively show
it, and close it afterwards