I think this is the reason that sample31.rb's curve is in the wrong place.