made plot histogram inline