Implemented gamma plotter function