Skip to content

Commit 959edc3

Browse files
committed
hotfix 2.13.4 Density display colormap set to existing one
1 parent e316c0c commit 959edc3

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

ibllib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.13.3"
1+
__version__ = "2.13.4"
22
import warnings
33

44
from ibllib.misc import logger_config

ibllib/plots/figures.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,17 +477,16 @@ def gain2level(gain):
477477

478478
if plot_backend == 'matplotlib':
479479
_, axs = plt.subplots(1, 2, gridspec_kw={'width_ratios': [.95, .05]}, figsize=(16, 9))
480-
eqcs.append(Density(butt, fs=fs, taxis=1, ax=axs[0], title='highpass', vmin=eqc_levels[0], vmax=eqc_levels[1],
481-
cmap='Greys-r'))
480+
eqcs.append(Density(butt, fs=fs, taxis=1, ax=axs[0], title='highpass', vmin=eqc_levels[0], vmax=eqc_levels[1]))
482481

483482
if destripe:
484483
dest = voltage.destripe(raw, fs=fs, channel_labels=channel_labels)
485484
_, axs = plt.subplots(1, 2, gridspec_kw={'width_ratios': [.95, .05]}, figsize=(16, 9))
486-
eqcs.append(Density(dest, fs=fs, taxis=1, ax=axs[0], title='destripe', vmin=eqc_levels[0], vmax=eqc_levels[1],
487-
cmap='Greys-r'))
485+
eqcs.append(Density(
486+
dest, fs=fs, taxis=1, ax=axs[0], title='destripe', vmin=eqc_levels[0], vmax=eqc_levels[1]))
488487
_, axs = plt.subplots(1, 2, gridspec_kw={'width_ratios': [.95, .05]}, figsize=(16, 9))
489488
eqcs.append(Density((butt - dest), fs=fs, taxis=1, ax=axs[0], title='difference', vmin=eqc_levels[0],
490-
vmax=eqc_levels[1], cmap='Greys-r'))
489+
vmax=eqc_levels[1]))
491490

492491
for eqc in eqcs:
493492
y, x = np.meshgrid(ioutside, np.linspace(0, rl * 1e3, 500))
@@ -618,7 +617,7 @@ def raw_destripe(raw, fs, t0, i_plt, n_plt,
618617
Tplot = Xs.shape[1] / fs
619618

620619
# PLOT RAW DATA
621-
d = Density(-Xs, fs=fs, taxis=1, ax=axs[i_plt], vmin=MIN_X, vmax=MAX_X, cmap='Greys-r') # noqa
620+
d = Density(-Xs, fs=fs, taxis=1, ax=axs[i_plt], vmin=MIN_X, vmax=MAX_X) # noqa
622621
axs[i_plt].set_ylabel('')
623622
axs[i_plt].set_xlim((0, Tplot * 1e3))
624623
axs[i_plt].set_ylim((0, nc))

ibllib/plots/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def insert_zeros(trace):
7272

7373

7474
class Density:
75-
def __init__(self, w, fs=1, cmap='bone', ax=None, taxis=0, title=None, **kwargs):
75+
def __init__(self, w, fs=1, cmap='Greys_r', ax=None, taxis=0, title=None, **kwargs):
7676
"""
7777
Matplotlib display of traces as a density display
7878

release_notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
## Release Notes 2.13
2+
## Release Notes 2.13.4 2022-07-07
3+
- Hotfix: Density displays had unexisting colormaps in snapshots QC tasks
4+
25
## Release Notes 2.13.3 2022-07-01
36
- Hotfix: fix previous hotfix with incorrect package version number
47

0 commit comments

Comments
 (0)