move to inline plotting?