Tutorials showing how to call into rviz internals from python scripts
https://wiki.ros.org/rviz_python_tutorial