Skip to content

Commit c856329

Browse files
committed
Updates legend formatting in ASCII plotter output
1 parent 1e86e20 commit c856329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/easydiffraction/plotting/plotters/plotter_ascii.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def plot(self,
3333
height=None):
3434

3535
title = paragraph(title)
36-
legend = " | ".join([self._get_legend_item(label) for label in labels])
36+
legend = "\n".join([self._get_legend_item(label) for label in labels])
3737

3838
if height is None:
3939
height = DEFAULT_HEIGHT
@@ -45,5 +45,5 @@ def plot(self,
4545

4646
print(f"{title}")
4747
print(f"Displaying data for selected x-range from {x[0]} to {x[-1]} ({len(x)} points)")
48-
print(f"Legend: {legend}")
48+
print(f"Legend:\n{legend}")
4949
print(chart)

0 commit comments

Comments
 (0)