Skip to content

Commit

Permalink
fix #1159
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s authored Sep 15, 2022
1 parent ba28f03 commit eddb56e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deeptools/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ def plot_correlation(self, plot_filename, plot_title='', vmax=None,
fig = plt.figure(figsize=(plotWidth, plotHeight))
plt.suptitle(plot_title)

axdendro = fig.add_axes([0.02, 0.12, 0.1, 0.66])
axdendro = fig.add_axes([0.015, 0.1, 0.1, 0.7])
axdendro.set_axis_off()
y_var = sch.linkage(corr_matrix, method='complete')
y_var = sch.linkage(corr_matrix, method='centroid')
z_var = sch.dendrogram(y_var, orientation='left',
link_color_func=lambda k: 'darkred')
axdendro.set_xticks([])
Expand All @@ -306,7 +306,7 @@ def plot_correlation(self, plot_filename, plot_title='', vmax=None,

cmap.set_under((0., 0., 1.))
# Plot distance matrix.
axmatrix = fig.add_axes([0.13, 0.1, 0.6, 0.7])
axmatrix = fig.add_axes([0.12, 0.1, 0.6, 0.7])
index = z_var['leaves']
corr_matrix = corr_matrix[index, :]
corr_matrix = corr_matrix[:, index]
Expand Down Expand Up @@ -358,7 +358,7 @@ def plot_correlation(self, plot_filename, plot_title='', vmax=None,
right=False)

# Plot colorbar
axcolor = fig.add_axes([0.13, 0.065, 0.6, 0.02])
axcolor = fig.add_axes([0.12, 0.065, 0.6, 0.02])
cobar = plt.colorbar(img_mat, cax=axcolor, orientation='horizontal')
cobar.solids.set_edgecolor("face")
if plot_numbers:
Expand Down

0 comments on commit eddb56e

Please sign in to comment.