Backport of #6030. Add features offline validation for71 x

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