Skip to content

Commit

Permalink
Adjust matplotlib backend for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisK92 committed Mar 28, 2024
1 parent 62ef3e4 commit 5f475a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified tests/plotting/test_data/evaluation_plot_confusion_matrix_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/plotting/test_data/masked_dotplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions tests/plotting/test_plotting.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import random
from pathlib import Path

import matplotlib
import matplotlib.pyplot as plt
import pytest
from matplotlib.testing.compare import compare_images

from spapros import pl

# Use universal non-interactive matplotlib backend such that saved images are the same on all systems
matplotlib.use("Agg")

plt.rcParams["figure.dpi"] = 40
plt.rcParams["savefig.dpi"] = 40

Expand Down

0 comments on commit 5f475a2

Please sign in to comment.