Fix a plotting bug, draw line to the last point available

[#64376104]
Fix examples

[#64376104]

Most of them didn't work because of the wrong initial data format.