The x/y axes was determined from properties of DrawingPanel. The default setting was auto-scale in both dimension. You can adjust xmin,xmax,ymin,ymax values to  achieve whatever you want. As long as the x/y dimension of DrawingPanel and ratio of (xmax-xmin)/(ymax-ymin) is the same , you will get equal size for x and y axes.