I suspect the warning message about MaxPoints for the independent variable is a clue to your problem.
Ok!
Here it goes! Thanks to everybody
Or a notebook file. See the "Add a file to this post" button.
It would be easier to assist you if you put your code into a code sample box.