Fixed bug with plot dimensions from GUI