Skip to content

Commit

Permalink
Merge pull request #453 from u6052029/dendrogram-scale-bar-text
Browse files Browse the repository at this point in the history
Dendrogram scale bar text re-aligned, fixes #444
  • Loading branch information
GavinHuttley committed Dec 12, 2019
2 parents 679bf32 + 3773b1b commit e6c16e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cogent3/draw/dendrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,11 @@ def _get_scale_bar(self):
"line": {"color": self._line_color, "width": self._line_width},
}
annotation = UnionDict(
x=x + scale + (0.5 * scale),
x=x + (0.5 * scale),
y=y,
xref="x",
yref="y",
yshift=10,
text=text,
showarrow=False,
ax=0,
Expand Down

0 comments on commit e6c16e1

Please sign in to comment.