From 4b156e880c99505656d2f710fda33fea2c92a793 Mon Sep 17 00:00:00 2001 From: Sonny Box Date: Sun, 26 Jul 2026 17:30:44 -0700 Subject: [PATCH] fix tk error on windows --- scheduling/sigmas_graph.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scheduling/sigmas_graph.py b/scheduling/sigmas_graph.py index fd326c0..9f35f93 100644 --- a/scheduling/sigmas_graph.py +++ b/scheduling/sigmas_graph.py @@ -3,6 +3,10 @@ import random from comfy_api.latest import io, ui import folder_paths + +import matplotlib +matplotlib.use("Agg") + import matplotlib.pyplot as plt import matplotlib.ticker as ticker import numpy as np @@ -10,6 +14,7 @@ from PIL import Image import torch + class SigmasGraph(io.ComfyNode): def __init__(self): # Based on PreviewImage logic here to save to the temp directory