add a decorator for PortHamiltonianSystem, center labels