incorporating new figure stuff from edf-webapp