Adds histogram function to Plot