Histogram Plot for Plot 1 and Generation Code