Skip to content

Commit 2206e20

Browse files
committed
test fixes
1 parent 240f447 commit 2206e20

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/test_cleanfigure.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def test_ylog(self):
531531
num_lines_raw = raw.count("\n")
532532
num_lines_clean = clean.count("\n")
533533
assert num_lines_raw - num_lines_clean == 98
534-
assert num_lines_clean == 25
534+
assert num_lines_clean == 26
535535
plt.close("all")
536536

537537
def test_xlog(self):
@@ -549,7 +549,7 @@ def test_xlog(self):
549549
num_lines_raw = raw.count("\n")
550550
num_lines_clean = clean.count("\n")
551551
assert num_lines_raw - num_lines_clean == 98
552-
assert num_lines_clean == 25
552+
assert num_lines_clean == 26
553553
plt.close("all")
554554

555555
def test_loglog(self):
@@ -567,8 +567,8 @@ def test_loglog(self):
567567
clean = get_tikz_code()
568568
num_lines_raw = raw.count("\n")
569569
num_lines_clean = clean.count("\n")
570-
assert num_lines_raw == 125
571-
assert num_lines_clean == 27
570+
assert num_lines_raw == 126
571+
assert num_lines_clean == 28
572572
plt.close("all")
573573

574574
def test_ylog_2(self):
@@ -585,7 +585,7 @@ def test_ylog_2(self):
585585
num_lines_raw = raw.count("\n")
586586
num_lines_clean = clean.count("\n")
587587
assert num_lines_raw - num_lines_clean == 51
588-
assert num_lines_clean == 71
588+
assert num_lines_clean == 72
589589
plt.close("all")
590590

591591
def test_xlog_2(self):
@@ -620,7 +620,7 @@ def test_loglog_2(self):
620620
num_lines_raw = raw.count("\n")
621621
num_lines_clean = clean.count("\n")
622622
assert num_lines_raw - num_lines_clean == 97
623-
assert num_lines_clean == 27
623+
assert num_lines_clean == 28
624624
plt.close("all")
625625

626626
def test_loglog_3(self):

tests/test_logplot_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def plot():
66
ax = fig.add_subplot(1, 1, 1)
77
ax.semilogy(a, color="blue", lw=0.25, base=2)
88

9-
plt.grid(b=True, which="major", color="g", linestyle="-", linewidth=0.25)
10-
plt.grid(b=True, which="minor", color="r", linestyle="--", linewidth=0.5)
9+
plt.grid(visible=True, which="major", color="g", linestyle="-", linewidth=0.25)
10+
plt.grid(visible=True, which="minor", color="r", linestyle="--", linewidth=0.5)
1111
return fig
1212

1313

0 commit comments

Comments
 (0)