Adds gfx.plot function, ported from MapHarness..