Skip to content

Commit

Permalink
Merge pull request #321 from fidelram/fix_extra_space
Browse files Browse the repository at this point in the history
fixed #309 (Extra space around multiple scatter plot panels)
  • Loading branch information
falexwolf committed Oct 23, 2018
2 parents c98fe31 + 55c64fe commit 76f8c26
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpy/plotting/tools/scatterplots.py
Expand Up @@ -236,7 +236,7 @@ def plot_scatter(adata,
from matplotlib import gridspec
# set up the figure
num_panels = len(color) * len(components_list)
n_panels_x = ncols
n_panels_x = min(ncols, num_panels)
n_panels_y = np.ceil(num_panels / n_panels_x).astype(int)
# each panel will have the size of rcParams['figure.figsize']
fig = pl.figure(figsize=(n_panels_x * rcParams['figure.figsize'][0] * (1 + wspace),
Expand Down
Binary file modified scanpy/tests/_images/master_umap_gene_expr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scanpy/tests/_images/master_violin_multi_panel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 76f8c26

Please sign in to comment.