Skip to content

Commit 3b31ba4

Browse files
author
Hritik Kumar Pradhan
committed
fix(ci): set matplotlib backend to Agg to avoid tkinter error in headless Windows CI
1 parent f035804 commit 3b31ba4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gen_imgs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Generate some plots for the pyGAM repo."""
22

3+
import matplotlib
4+
matplotlib.use("Agg")
35
import matplotlib.pyplot as plt
46
import numpy as np
57
from matplotlib.font_manager import FontProperties
@@ -323,7 +325,6 @@ def chicago_tensor():
323325

324326

325327
def expectiles():
326-
327328
"""Generate expectiles visualization."""
328329
X, y = mcycle(return_X_y=True)
329330

0 commit comments

Comments
 (0)