import tkinter as ttk from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg root = ttk.Tk() fig = Figure(facecolor='#CCCCFF') canv = FigureCanvasTkAgg(fig, master=root) canv._tkcanvas.pack( side=ttk.BOTTOM, fill=ttk.BOTH, expand=ttk.YES) root.mainloop()
I want in Figure(facecolor='#CCCCFF')
instead of #CCCCFF
transmit the color that the OS uses by default so that the color application is combined with the OS applications. How can I get a system color?