def _get_dimension_for_pixel(axis_length, edges):
    """
    Returns the dimensions for the given edges.

    Parameters
    ----------
    axis_length : `int`
        The length of the axis
    edges : `bool`
        Boolean to signify whether pixel_edge or pixel_value requested
        False stands for pixel_value, while True stands for pixel_edge
    """
    return axis_length + 1 if edges else axis_length
