plot macro from CERN