Refactor of 1-d plotting widget to push common behavior into common.py

ready for merge