Returns the axis instance where the footer will be printed
556922
def footer(self):
        '''
        

        '''

        return self.footer_left(on=False), self.footer_center(on=False), \
               self.footer_right(on=False)
1278119
protected int getInternalDayFromLocation(float x, float y) {
        int dayStart = mEdgePadding;
        if (x < dayStart || x > mWidth - mEdgePadding) {
            return -1;
        }
        // Selection is (x - start) / (pixels/day) == (x -s) * day / pixels
        int row = (int) (y - getMonthHeaderSize()) / mRowHeight;
        int column = (int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mEdgePadding));

        int day = column - findDayOffset() + 1;
        day += row * mNumDays;
        return day;
    }
1371202
def _get_plane_axes(self, axis):
        
        return [self._get_axis(axi)
                for axi in self._get_plane_axes_index(axis)]
435907
public static Polygon getTilePolygon (
        MisoSceneMetrics metrics, int x, int y)
    {
        return getFootprintPolygon(metrics, x, y, 1, 1);
    }
1301659
def display(self):
        
        if self.displayWidth == 0: return
        print("=============================")
        print("Layer '%s': (Kind: %s, Size: %d, Active: %d, Frozen: %d)" % (
            self.name, self.kind, self.size, self.active, self.frozen))
        if (self.type == 'Output'):
            displayArray('Target    ', self.target, self.displayWidth)
        displayArray('Activation', self.activation, self.displayWidth)
        if (self.type != 'Input' and self._verbosity > 1):
            displayArray('Error     ', self.error, self.displayWidth)
        if (self._verbosity > 4 and self.type != 'Input'):
            print("    ", end=" "); displayArray('weight', self.weight)
            print("    ", end=" "); displayArray('dweight', self.dweight)
            print("    ", end=" "); displayArray('delta', self.delta)
            print("    ", end=" "); displayArray('netinput', self.netinput)
            print("    ", end=" "); displayArray('wed', self.wed)
903391
def store_axis(type)   # :nodoc:
    record    = 0x101D         # Record identifier.
    length    = 0x0012         # Number of bytes to follow.
    # type                     # Axis type.
    reserved1 = 0x00000000     # Reserved.
    reserved2 = 0x00000000     # Reserved.
    reserved3 = 0x00000000     # Reserved.
    reserved4 = 0x00000000     # Reserved.

    header = [record, length].pack('vv')
    data  = [type].pack('v')
    data += [reserved1].pack('V')
    data += [reserved2].pack('V')
    data += [reserved3].pack('V')
    data += [reserved4].pack('V')

    append(header, data)
  end
1308250
public Footer getFooter() {
        List<Footer> list = this.getDescendants(Footer.class);
        if (list.size() > 0) {
            return list.get(0);
        } else {
            return null;
        }
    }
296393
def getTopLeft(self):
        
        return (float(self.get_x()), float(self.get_y())+ float(self.get_height()))
1312725
protected void layoutGroupFooterLabels(DJGroup djgroup, JRDesignGroup jgroup, int x, int y, int width, int height) {
		//List footerVariables = djgroup.getFooterVariables();
		DJGroupLabel label = djgroup.getFooterLabel();

		//if (label == null || footerVariables.isEmpty())
			//return;

		//PropertyColumn col = djgroup.getColumnToGroupBy();
		JRDesignBand band =  LayoutUtils.getBandFromSection((JRDesignSection) jgroup.getGroupFooterSection());

//		log.debug("Adding footer group label for group " + djgroup);

		/*DJGroupVariable lmvar = findLeftMostColumn(footerVariables);
		AbstractColumn lmColumn = lmvar.getColumnToApplyOperation();
		int width = lmColumn.getPosX().intValue()  - col.getPosX().intValue();

		int yOffset = findYOffsetForGroupLabel(band);*/

		JRDesignExpression labelExp;
		if (label.isJasperExpression()) //a text with things like "$F{myField}"
			labelExp = ExpressionUtils.createStringExpression(label.getText());
		else if (label.getLabelExpression() != null){
			labelExp = ExpressionUtils.createExpression(jgroup.getName() + "_labelExpression", label.getLabelExpression(), true);
		} else //a simple text
			//labelExp = ExpressionUtils.createStringExpression("\""+ Utils.escapeTextForExpression(label.getText())+ "\"");
			labelExp = ExpressionUtils.createStringExpression("\""+ label.getText() + "\"");
		JRDesignTextField labelTf = new JRDesignTextField();
		labelTf.setExpression(labelExp);
		labelTf.setWidth(width);
		labelTf.setHeight(height);
		labelTf.setX(x);
		labelTf.setY(y);
		//int yOffsetGlabel = labelTf.getHeight();
		labelTf.setPositionType( PositionTypeEnum.FIX_RELATIVE_TO_TOP );
		applyStyleToElement(label.getStyle(), labelTf);
		band.addElement(labelTf);
	}
1171535
function printFloorMap(floorMap) {
  printLine(
    floorMap
      .map(row =>
        row
          .map(({ character, unit }) => {
            if (unit) {
              return getUnitStyle(unit)(character);
            }

            return character;
          })
          .join(''),
      )
      .join('\n'),
  );
}
705869
def get_axis_angle(self):
        
        # Init
        angle = 2 * np.arccos(max(min(self.w, 1.), -1.))
        scale = (self.x**2 + self.y**2 + self.z**2)**0.5    
        
        # Calc axis
        if scale:
            ax = self.x / scale
            ay = self.y / scale
            az = self.z / scale
        else:
            # No rotation, so arbitrary axis
            ax, ay, az = 1, 0, 0
        # Return
        return angle, ax, ay, az
238548
function getSnapOffset(event, axis) {
  var context = event.context,
      shape = event.shape,
      gridSnappingContext = context.gridSnappingContext || {},
      snapLocation = gridSnappingContext.snapLocation;

  if (!shape || !snapLocation) {
    return 0;
  }

  if (axis === 'x') {
    if (/left/.test(snapLocation)) {
      return -shape.width / 2;
    }

    if (/right/.test(snapLocation)) {
      return shape.width / 2;
    }
  } else {
    if (/top/.test(snapLocation)) {
      return -shape.height / 2;
    }

    if (/bottom/.test(snapLocation)) {
      return shape.height / 2;
    }
  }

  return 0;
}
311011
def get_axis(array, axis, slice_num):
    """"""

    slice_list = [slice(None)] * array.ndim
    slice_list[axis] = slice_num
    slice_data = array[tuple(slice_list)].T  # transpose for proper orientation

    return slice_data
1155189
public float getLayoutSize(final Layout.Axis axis) {
        float size = 0;
        for (Layout layout : mLayouts) {
            size = Math.max(size, layout.getSize(axis));
        }
        Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "getLayoutSize [%s] axis [%s] size [%f]", getName(), axis, size);
        return size;
    }
582252
def __map_axis(self, axis):
        """"""
        start_code, start_value = axis
        value = start_value
        code = self.manager.codes['xpad'][start_code]
        return code, value
1110039
def get_axis_grid(self, ind):
        
        ng = self.dim
        num_pts = ng[ind]
        lengths = self.structure.lattice.abc
        return [i / num_pts * lengths[ind] for i in range(num_pts)]
424421
def _get_y_axis(self):
        """"""
        # 0,0 is top/left top top/left pixel. Actual x/y coord of that pixel are (.5,.5).
        y_centers = np.linspace(.5, self.y_size - .5, self.y_size)
        x_centers = y_centers * 0
        return (self.geotransform[3]
                + self.geotransform[4] * x_centers
                + self.geotransform[5] * y_centers)