Seperated plotting and dimension creation logic