added the bones of a plotting function for vars, call, libs and defs