P.S. here is an example data
xdata = [12.2872 12.9804 13.3858 13.6735 13.8967 14.0790 14.2331 14.3667 14.4844 14.5898 14.6851 14.7721 14.8522 14.9263 14.9953 15.0598 15.1204 15.1776 15.2317 15.2829 15.3317 15.3783 15.4227 15.4653 15.5061 15.5453 15.5830 15.6194 15.6545 15.6884 15.7212 15.7529 15.7837 15.8136 15.8426 15.8707 15.8981 15.9248 15.9508 15.9761 16.0008 16.0249 16.0484 16.0714 16.0939 16.1159 16.1374 16.1584 16.1790 16.1992 16.2190 16.2385 16.2575 16.2762 16.2945 16.3126 16.3303 16.3477 16.3647 16.3816 16.3981 16.4143 16.4303 16.4461 16.4616 16.4769 16.4919 16.5067 16.5213 16.5357 16.5499 16.5639 16.5777 16.5913 16.6047 16.6179 16.6310 16.6439 16.6567 16.6692 16.6817 16.6939 16.7061 16.7180 16.7299 16.7416 16.7531 16.7645 16.7758 16.7870 16.7981 16.8090 16.8198 16.8305 16.8411 16.8516 16.8619 16.8722 16.8823 16.8924 16.9023 16.9122 16.9219 16.9316 16.9412 16.9507 16.9600 16.9693 16.9786 16.9877 16.9967 17.0057 17.0146 17.0234 17.0321 17.0408 17.0494 17.0579 17.0663]