Hi Greg,
Thanks for your reply.
I tried this
mkdir $HOME/.matplotlib
echo "backend : agg" > $HOME/.matplotlib/matplotlibrc
but this didn’t seem to make any difference. I get the same error.
By the way I am using a local anaconda install of python if that makes any difference
Adam
$ setenv MATPLOTLIBRC ~/.matplotlib
$ less $MATPLOTLIBRC/matplotlibrc
backend : agg
$ python -c "import matplotlib; print(matplotlib.get_backend())"
agg
and it now works ok
thanks again
Adam