Skip to content

Commit f0c1d7b

Browse files
committed
Fix: Gene expression plot title with location
1 parent c1e246c commit f0c1d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

siibra/features/tabular/gene_expression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def plot(self, *args, backend="matplotlib", **kwargs):
239239
"""
240240
wrapwidth = kwargs.pop("textwrap") if "textwrap" in kwargs else 40
241241
kwargs["title"] = kwargs.pop("title", None) \
242-
or "\n".join(wrap(f"{self.modality} measured in {self.anchor._regionspec}", wrapwidth))
242+
or "\n".join(wrap(f"{self.modality} measured in {self.anchor._regionspec or self.anchor.location}", wrapwidth))
243243
kwargs["kind"] = "box"
244244
if backend == "matplotlib":
245245
for arg in ['yerr', 'y', 'ylabel', 'xlabel', 'width']:

0 commit comments

Comments
 (0)