[gui.glumpy] fix plotting of constant functions
[gui.glumpy] refactor GlumpyPatchWidget