Merge branch 'fix-plotlegend-blinking' into 'master'

Fix blinking regulation plot legend

Closes #2743

See merge request !3684
10 jobs for master in 58 minutes and 16 seconds (queued for 2 seconds)