%load_ext autoreload
%autoreload 2

add_colorbar[source]

add_colorbar(im, aspect=20, pad_fraction=0.5, **kwargs)

Add a vertical color bar to an image plot
im = plt.imshow(np.random.normal(size=[50,50]))
add_colorbar(im)
<matplotlib.colorbar.Colorbar at 0x7fe3bb71de10>

sl_plot[source]

sl_plot(x, xsim, pred_df, target_df, background, res)

gt_plot[source]

gt_plot(x, pred_df, gt_df, px_size, gt_rec=None, psf=None, fig_size=(24, 6))

plot_3d_projections[source]

plot_3d_projections(volume, proj_func=amax, size=6, vmax=None, display=True)

scat_3d_projections[source]

scat_3d_projections(axes, dfs, px_size_zyx=[1.0, 1.0, 1], s_fac=1.0)

plot_prob_hist[source]

plot_prob_hist(res_dict)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-0a8df1503633> in <module>
    105 #     return axes
    106 
--> 107 def plot_3d_projections(volume, proj_func=np.max, size=6, vmax=None):
    108 
    109     if torch.is_tensor(volume):

NameError: name 'np' is not defined

combine_figures[source]

combine_figures(figures, titles, nrows=1, ncols=2, figsize=(10, 5))

!nbdev_build_lib