BUG: Fix issue #5245. Calculate vtkXYPlotActor range correctly. Thanks to Patrick Demond for the patch.