Skip to content

Commit

Permalink
remove plot_illumination_bias
Browse files Browse the repository at this point in the history
  • Loading branch information
Henley13 committed Oct 24, 2020
1 parent b3a2078 commit 2607f36
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions bigfish/plot/plot_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,53 +95,3 @@ def plot_sharpness(focus_measures, labels=None, title=None, framesize=(5, 5),
plt.close()

return


def plot_illumination_surface(illumination_surface, r=0, framesize=(15, 15),
titles=None, path_output=None, ext="png"):
"""Subplot the yx plan of the dimensions of an illumination surface for
all channels.
Parameters
----------
illumination_surface : np.ndarray, np.float
A 4-d tensor with shape (r, c, y, x) approximating the average
differential of illumination in our stack of images, for each channel
and each round.
r : int
Index of the round to keep.
framesize : tuple
Size of the frame used to plot with 'plt.figure(figsize=framesize)'.
titles : List[str]
Titles of the subplots (one per channel).
path_output : str
Path to save the image (without extension).
ext : str or List[str]
Extension used to save the plot. If it is a list of strings, the plot
will be saved several times.
Returns
-------
"""
# TODO add title in the plot and remove axes
# TODO add parameter for vmin and vmax
# check tensor
stack.check_array(illumination_surface,
ndim=4,
dtype=[np.float32, np.float64])

# get the number of channels
nb_channels = illumination_surface.shape[1]

# plot
fig, ax = plt.subplots(1, nb_channels, sharex='col', figsize=framesize)
for i in range(nb_channels):
ax[i].imshow(illumination_surface[r, i, :, :])
if titles is not None:
ax[i].set_title(titles[i], fontweight="bold", fontsize=15)
plt.tight_layout()
save_plot(path_output, ext)
plt.show()

return

0 comments on commit 2607f36

Please sign in to comment.