Skip to content

Commit bcc3bac

Browse files
committed
updates
1 parent 271b60a commit bcc3bac

File tree

2 files changed

+87
-8
lines changed

2 files changed

+87
-8
lines changed

Diff for: examples/protein_abundance_and_normalization.ipynb

+85-7
Large diffs are not rendered by default.

Diff for: htsimaging/viz/image.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def image_background(
1515
show_scalebar=None,
1616
scalebar_color: str='w',
1717
show_cbar: bool=True,
18+
cbar_label: str='Intensity',
1819
test=False,
1920
ax=None,
2021
**kws_img,
@@ -78,7 +79,7 @@ def image_background(
7879
if not img is None and show_cbar:
7980
cax = ax.figure.add_axes([ax.get_position().x1+0.01,ax.get_position().y0,0.02,ax.get_position().height if ax.figure.get_size_inches()[1]<5 else (2/ax.figure.get_size_inches()[1])])
8081
cbar = ax.figure.colorbar(ax_img,cax=cax)
81-
cbar.ax.set_ylabel('Intensity')
82+
cbar.ax.set_ylabel(cbar_label)
8283
# cbar.ax.hist(img.ravel()) # show histogram in the colorbar
8384
ax.grid(test)
8485
ax.set_aspect('equal')

0 commit comments

Comments
 (0)