Slightly modify displayEDF to be compatible with older version of matplotlib.