gfx: structure and supports plotting