Skip to content

Commit

Permalink
update dask version and fix axes bug in heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Aug 7, 2024
1 parent 76da676 commit 7082470
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "SCIMAP"
version = "2.1.2"
version = "2.1.3"
description = "Spatial Single-Cell Analysis Toolkit"

license = "MIT"
Expand Down
7 changes: 2 additions & 5 deletions scimap/plotting/cluster_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
import seaborn as sns; sns.set(color_codes=True)
sns.set_style("white")

import matplotlib as mpl
mpl.rcParams['pdf.fonttype'] = 42
plt.rcParams['pdf.fonttype'] = 42

def main(argv=sys.argv):
parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -179,9 +178,7 @@ def cluster_plots (adata,
except Exception as exc:
print('Finding differential markers per group cannot be completed')
print (exc)




if __name__ == '__main__':
main()

3 changes: 2 additions & 1 deletion scimap/plotting/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def plot_category_heatmap_vectorized(
ax.set_yticklabels(unique_categories)

# Move the colorbar to the top left corner
cbar_ax = fig.add_axes([0.125, 0.92, 0.2, 0.02]) # x, y, width, height
# cbar_ax = fig.add_axes([0.125, 0.92, 0.2, 0.02]) # x, y, width, height
cbar_ax = ax.inset_axes([-0.5, -1.5, 4, 0.5], transform=ax.transData)
cbar = plt.colorbar(c, cax=cbar_ax, orientation='horizontal')
cbar_ax.xaxis.set_ticks_position('top')
cbar_ax.xaxis.set_label_position('top')
Expand Down

0 comments on commit 7082470

Please sign in to comment.