Skip to content

Commit 4ef810b

Browse files
committed
update collect_legends
1 parent 252cebc commit 4ef810b

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

PyComplexHeatmap/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ def plot(self, ax=None, axis=1): # add self.gs,self.fig,self.ax,self.axes
573573
orientation = "up"
574574
elif axis == 1:
575575
orientation = "down"
576-
elif axis == 0 and i <= 0.5:
576+
elif axis == 0 and i <= 0.5: #anno_label is on the top (left)
577577
orientation = "left"
578-
else:
578+
else: # on the bottom (right)
579579
orientation = "right"
580580
self.orientation = orientation
581581
self.set_plot_kws(axis)

PyComplexHeatmap/clustermap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,7 @@ def collect_legends(self):
23252325
or self.legend_anchor == "ax_heatmap"
23262326
):
23272327
self.label_max_width = heatmap_label_max_width # * 1.1
2328-
self.get_legend_list() #self.legend_list will be created
2328+
self.get_legend_list() #self.legend_list will be created
23292329

23302330
def plot_legends(self, ax=None):
23312331
if self.verbose >= 1:

notebooks/composite_heatmaps.ipynb

Lines changed: 24 additions & 9 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)