Skip to content

Commit

Permalink
Fix bug in pymaf.MafFrame.plot_waterfall (#67):
Browse files Browse the repository at this point in the history
* :issue:`67`: Fix bug in :meth:`pymaf.MafFrame.plot_waterfall` method 
where ``count=1`` was causing color mismatch.
  • Loading branch information
sbslee committed Mar 23, 2023
1 parent fddeb64 commit 5ae6623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
0.37.0 (in development)
-----------------------

* :issue:`67`: Fix bug in :meth:`pymaf.MafFrame.plot_waterfall` method where ``count=1`` was causing color mismatch.

0.36.0 (2022-08-12)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion fuc/api/pymaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3263,7 +3263,7 @@ def plot_waterfall(
colors = list(reversed(NONSYN_COLORS + ['k', 'lightgray']))

sns.heatmap(df, cmap=colors, ax=ax, xticklabels=False,
cbar=False, **kwargs)
cbar=False, vmin=0, vmax=len(colors), **kwargs)

ax.set_xlabel('Samples')
ax.set_ylabel('')
Expand Down

0 comments on commit 5ae6623

Please sign in to comment.