Fix bottom axis

The x-axis now keeps the same range when the mode is changed. In addition, the x-axis mode is now persistent.