Look for the difference the scale value.
Xscale or Yscale value determines the distance between the ticks on X-axis and Y-axis.
Graph in second figure looks bigger because of the Xscale and Yscale values. These values are set 10 as proportionate to 1 in the first figure. Because of that the distance between ticks increased in comparison to the ticks of first figure.
Axes in second figure can look like that in first figure if the scale value for both the axes is set 1 as in first figure.