enable visualisePDFHistory() to render plots in environments where DISPLAY is undefined