Modified to call gfx.plot