Skip to content
Snippets Groups Projects
Commit e845e203 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

docs/feat(imageviewer):add outline transparency

parent 7138fdc7
No related branches found
No related tags found
No related merge requests found
...@@ -274,10 +274,50 @@ class remoteImageViewer: ...@@ -274,10 +274,50 @@ class remoteImageViewer:
skip_outlines: bool = False, skip_outlines: bool = False,
norm: str = None, norm: str = None,
ncols: int = None, ncols: int = None,
local_colours: bool = True,
img_plot_kwargs: dict = {}, img_plot_kwargs: dict = {},
lbl_plot_kwargs: dict = {}, lbl_plot_kwargs: dict = {"alpha": 0.8},
**kwargs, **kwargs,
): ):
"""Wrapper to plot time-lapses of individual traps
Use Cells and Tiler to generate images of cells with their resulting
outlines.
Parameters
----------
trap_id : int
Identifier of trap
channels : Union[str, int]
Channels to use
trange : t.Union[range, t.Collection[int]]
Range or collection indicating the time-points to use.
remove_axis : bool
None, "off", or "x". Determines whether to remove the x-axis, both
axes or none.
savefile : str
Saves file to a location.
skip_outlines : bool
Do not add overlay with outlines
norm : str
Normalise signals
ncols : int
Number of columns to plot.
local_colours : bool
Bypass label indicators to guarantee that colours are not repeated
(TODO implement)
img_plot_kwargs : dict
Arguments to pass to plt.imshow used for images.
lbl_plot_kwargs : dict
Keyword arguments to pass to label plots.
**kwargs : dict
Additional keyword arguments passed to ImageViewer.get_images.
Examples
--------
FIXME: Add docs.
"""
if ncols is None: if ncols is None:
ncols = len(trange) ncols = len(trange)
nrows = int(np.ceil(len(trange) / ncols)) nrows = int(np.ceil(len(trange) / ncols))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment