improve plotting of offset function and samples
works