Fix plot.append (Issue #7140)

Hello, please take a look at the patch which aims to fix #7140. I hope I have understood what was the expected behaviour of append() correctly.