Backport of #6030. Add features offline validation for53 x

In offline validation: a bugfix and lots of improvements to automatize
plotting.