Ok, thanks. If there are no further complications, I think I should be able to deal with this tomorrow.I am attaching a test script. For case 3 it works, but not for case 4, and as Sven said, nor for case 2.
P.S. In what concerns editing the plots, I did not find anything to change the color or he area in the GUI plot editor.