Skip to content

Commit

Permalink
FIX SequencePlotter: labels only
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Nov 25, 2021
1 parent ee6335e commit fee2dde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eelbrain/plot/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,8 @@ def plot_table(
hemis.append('lh')
if any(ss.rh_n for ss in sss):
hemis.append('rh')
assert hemis, "Data in neither hemisphere"
if not hemis:
hemis = ('lh', 'rh')
elif hemi == 'both':
hemis = ('lh', 'rh')
elif hemi in ('lh', 'rh'):
Expand Down Expand Up @@ -1591,7 +1592,7 @@ def plot_table(
hemi_shift = int(round(figure._layout.dpi * hemi_magnet))

ims = self._generate_ims(figure._res_w, figure._res_h, views, mode, antialiased, hemi_shift, hemis)
cmap_params, cmap_data = ims.pop('cmap')
cmap_params, cmap_data = ims.pop('cmap', (None, None))

# reshape im-order
row_pattern = list(product(*[axis_sequences[key] for key in rows]))
Expand Down

0 comments on commit fee2dde

Please sign in to comment.