Skip to content

Commit 66320ff

Browse files
committed
fixed dpi in tests
1 parent 7404325 commit 66320ff

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_amend_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_reverse_align_params(x,
4747
raise RuntimeError(f"Error in parsing Newick format: {e}")
4848
tree_stem = tree.split("/")[-1].split(".")[0]
4949

50-
f = plt.figure(figsize=(10, 20))
50+
f = plt.figure(figsize=(10, 20), dpi=100)
5151
a = f.add_subplot(111)
5252
a.set_xlim(-10, 20)
5353
a.set_ylim(-1, ylim)

tests/test_draw_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_draw_tree_params(x,
4848
raise RuntimeError(f"Error in parsing Newick format: {e}")
4949
tree_stem = tree.split("/")[-1].split(".")[0]
5050

51-
f = plt.figure(figsize=(10, 20))
51+
f = plt.figure(figsize=(10, 20), dpi=100)
5252
a = f.add_subplot(111)
5353
a.set_xlim(-10, 20)
5454
a.set_ylim(-1, ylim)

tests/test_plot_phylo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_plot_phylo_params(xpos,
5151

5252
tree_stem = tree.split("/")[-1].split(".")[0]
5353

54-
f = plt.figure(figsize=(10, 20))
54+
f = plt.figure(figsize=(10, 20), dpi=100)
5555
a = f.add_subplot(111)
5656
plot_phylo.plot_phylo(tree=tree, ax=a,
5757
xpos=xpos,
@@ -121,7 +121,7 @@ def test_bad_tree(xpos,
121121
collapse,
122122
collapse_names,
123123
auto_ax):
124-
f = plt.figure(figsize=(10, 20))
124+
f = plt.figure(figsize=(10, 20), dpi=100)
125125
a = f.add_subplot(111)
126126
with pytest.raises(RuntimeError,
127127
match="Error in parsing Newick"):

0 commit comments

Comments
 (0)