code: public void zoom(boolean inout) {
          for (int i = 0; i < base.dimension; i++) {
              int s = baseGrid.getAxis(i).getLinearSlices();
              double r = inout ? -1.0 / s : 1.0 / s;
              double d = (base.upperBound[i] - base.lowerBound[i]) * r;
              base.lowerBound[i] -= d;
              base.upperBound[i] += d;
          }
  
          for (int i = 0; i < base.dimension; i++) {
              base.setPrecisionUnit(i);
          }
  
          base.initBaseCoord();
          graphics.projection.reset();
          baseGrid.setBase(base);
  
          canvas.repaint();
      }
docs: Zooms in/out the plot.
  @param inout true if zoom in. Otherwise, zoom out.