Sample plotting and fitting.