Use same import order as matplotlib for PySide/PyQT

This ensures that the same backend is used, otherwise objects from both will try to combine.