implement plot spectrum functions