respect passed xmin, xmax in functionplot