Skip to content

Commit

Permalink
fix #838
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Jun 26, 2019
1 parent ecce499 commit abdd70d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.3.1

* Fixed `--plotNumbers` not working in `plotCorrelation`. This was issue #838

3.3.0

* `plotCoverage` now has a `--BED` option, to restrict plots and output to apply to a specific set of regions given by a BED or GTF file or files (issue #829).
Expand Down
4 changes: 2 additions & 2 deletions deeptools/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def plot_correlation(self, plot_filename, plot_title='', vmax=None,
# a good contrast between the correlation numbers that are
# plotted on black.
if plot_numbers:
cmap = cmap.from_list(colormap + "clipped",
cmap(np.linspace(0, 0.9, 10)))
cmap = plt_colors.LinearSegmentedColormap.from_list(colormap + "clipped",
cmap(np.linspace(0, 0.9, 10)))

cmap.set_under((0., 0., 1.))
# Plot distance matrix.
Expand Down
5 changes: 3 additions & 2 deletions deeptools/correlation_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
import scipy.cluster.hierarchy as sch
from matplotlib import rcParams
import matplotlib.colors as pltcolors

rcParams['pdf.fonttype'] = 42
rcParams['svg.fonttype'] = 'none'
Expand Down Expand Up @@ -50,8 +51,8 @@ def plot_correlation(corr_matrix, labels, plotFileName, vmax=None,
# a good contrast between the correlation numbers that are
# plotted on black.
if plot_numbers:
cmap = cmap.from_list(colormap + "clipped",
cmap(np.linspace(0, 0.9, 10)))
cmap = plt_colors.LinearSegmentedColormap.from_list(colormap + "clipped",
cmap(np.linspace(0, 0.9, 10)))

cmap.set_under((0., 0., 1.))
# Plot distance matrix.
Expand Down

0 comments on commit abdd70d

Please sign in to comment.