plot buf of too many lines fixed

This commit is contained in:
Lorenzo Volpi 2023-10-23 08:27:35 +02:00
parent 2e1c30a297
commit 10daf1e723
1 changed files with 15 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from quacc.environ import env
def _get_markers(n: int): def _get_markers(n: int):
return [ ls = [
"o", "o",
"v", "v",
"x", "x",
@ -18,7 +18,20 @@ def _get_markers(n: int):
"h", "h",
"*", "*",
"^", "^",
][:n] "1",
"2",
"3",
"4",
"X",
">",
"<",
".",
"P",
"d",
]
if n > len(ls):
ls = ls * (n / len(ls) + 1)
return ls[:n]
def plot_delta( def plot_delta(