From df2da4a5dd6fd3b4d77925d0d5281f50856a2d11 Mon Sep 17 00:00:00 2001 From: Brandon B Date: Sat, 9 Mar 2019 17:40:28 -0800 Subject: [PATCH] Fix stacked_violin plot bug `num_rows` was incorrectly calculated when `swap_axes=False`. --- scanpy/plotting/_anndata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpy/plotting/_anndata.py b/scanpy/plotting/_anndata.py index ef6ae9119b..f77c46ed94 100755 --- a/scanpy/plotting/_anndata.py +++ b/scanpy/plotting/_anndata.py @@ -878,7 +878,7 @@ def rename_cols_to_int(value): else: width, height = figsize - num_rows = len(categories) + num_rows = len(var_names) height_ratios = None if has_var_groups: # add some space in case 'brackets' want to be plotted on top of the image