What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-10 02:49:13
_tkinter.tclerror: no display name and no $display environment variable
Matplotlib chooses Xwindows backend by default. You need to set matplotlib to not use the Xwindows backend. Add this code to the start of your script (before importing pyplot) and try again: import matplotlib matplotlib.use('Agg') Or add to .config/matp... Add solution -
Python 2021-09-06 03:39:01
python tkinter plot points
from tkinter import * from tkinter.ttk import * import matplotlib matplotlib.use("TkAgg") from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg root = Tk() figure = Figure(figsize=(5, 4), dpi=10... Add solution