Add simple plotting function (closes #47).