We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a323f9 commit a3fed3fCopy full SHA for a3fed3f
1 file changed
tests/test_evaluation.py
@@ -391,10 +391,12 @@ class TestSleepStatsAgreementPlotBlandAltman(unittest.TestCase):
391
@classmethod
392
def setUpClass(cls):
393
import matplotlib
394
+
395
matplotlib.use("Agg")
396
397
def test_returns_facetgrid(self):
398
import seaborn as sns
399
400
g = ssa.plot_blandaltman(ci_method="param")
401
assert isinstance(g, sns.FacetGrid)
402
@@ -477,7 +479,9 @@ def test_facetgrid_kwargs_passthrough(self):
477
479
# FacetGrid col_wrap should reflect the override
478
480
assert g._col_wrap == 1
481
482
483
def ax_collections(ax):
484
"""Return PathCollections (scatter plots) from an Axes."""
485
from matplotlib.collections import PathCollection
486
487
return [c for c in ax.collections if isinstance(c, PathCollection)]
0 commit comments