Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge for v7.3.2 #193

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion eomaps/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "7.3.1"
__version__ = "7.3.2"
10 changes: 8 additions & 2 deletions eomaps/eomaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3478,7 +3478,11 @@
try:
from IPython.display import display

display(Image.fromarray(sn, "RGBA"), display_id=True, clear=clear)
display(

Check warning on line 3481 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L3481

Added line #L3481 was not covered by tests
Image.fromarray(sn, "RGBA").convert("RGB"),
display_id=True,
clear=clear,
)
except Exception:
_log.exception(
"Unable to display the snapshot... is the script "
Expand Down Expand Up @@ -4090,6 +4094,8 @@
_handle_backends()

self._f = plt.figure(**kwargs)
# to hide canvas header in jupyter notebooks (default figure label)
self._f.canvas.header_visible = False

# override Figure.savefig with Maps.savefig but keep original
# method accessible via Figure._mpl_orig_savefig
Expand Down Expand Up @@ -4567,7 +4573,7 @@
bins = [vmin, *bins]

if vmax > max(bins):
bins[np.argmax(bins)] = vmax
bins = [*bins, vmax]

cbcmap = cmap
norm = mpl.colors.BoundaryNorm(bins, cmap.N)
Expand Down
Loading
Loading