added capability for plotting metadata