with_invalid_raises_RuntimeError -> raises_ValueError, re #8419
Merge branch 'bugfix/8419_better_input_check_for_python_plots' into develop