corrected arguments to canvas.rect in plot
fixed bug in plot creation in ui that created multiple plots at once