New bug in Origin 2022.
Double click Function plot to open Plot Details. Change number of points on Function tab e.g. from 100 to 200.
==> The x range changes.
Right click the function plot and choose Make dataset copy of F1
==> the number of points is still the old number e.g. 100.