Хочу на удалённом сервере посчитать много всяких графиков и там же их нарисовать matplotlib-ом. Однако, при попытке запустить скрипт получаю:
python3 mkplots.py
Traceback (most recent call last):
File "mkplots.py", line 291, in <module>
plot_distro(components, name = "distro1")
File "mkplots.py", line 97, in plot_distro
fig = plt.figure(figsize=(width/2.54,height/2.54))
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 435, in figure
**kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 81, in new_figure_manager
return new_figure_manager_given_figure(num, figure)
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 89, in new_figure_manager_given_figure
window = Tk.Tk()
File "/usr/lib/python3.4/tkinter/__init__.py", line 1854, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable