import numpy as npimport matplotlib.pyplot as pltfrom matplotlib.backends.backend_tkagg import FigureCanvasTkAggimport tkinter as tk# 그래프를 그리는 함수def plot_linear_function(a, b): # 기존 그래프를 지우기 위해 초기화 for widget in graph_frame.winfo_children(): widget.destroy() # 그래프를 그릴 x 범위 설정 x = np.linspace(-10, 10, 400) y = a * x + b # matplotlib를 사용하여 그래프 생성 fig, ax = plt.subpl..