I should add that this also happens with pure python. The backend 'backend': 'TkAgg'
leads to this crash. I just double-checked and confirmed this. In Python, I switch to the MacOSX
backend,
import matplotlib.pyplot as plt
plt.switch_backend('MacOSX')
after which matplotlib
plotting works fine without any issues.
EDIT: following the Readme at PyPlot.jl, the following works from Julia:
using PyCall
pygui(:qt5)
using PyPlot
x = range(0,1,length=100);
y = cos.(x);
plot(x,y)
But for practical purposes probably best to fix this in the matplotlibrc file : in ~/.matplotlib/matplotlibrc
just add the following line:
backend: qt5agg