init plot script