Element 'plot creation function'