Backport of #6030. Add features offline validation for70 x

In offline validation: two bugfixes and lots of improvements to automatize plotting.