def test_contour_fillings_levels_in_add_contours(): oslicer = OrthoSlicer(cut_coords=(0, 0, 0)) img = load_mni152_template() # levels should be atleast 2 # If single levels are passed then we force upper level to be inf oslicer.add_contours(img, filled=True, colors='r', alpha=0.2, levels=[0.]) # If two levels are passed, it should be increasing from zero index # In this case, we simply omit appending inf oslicer.add_contours(img, filled=True, colors='b', alpha=0.1, levels=[0., 0.2]) # without passing colors and alpha. In this case, default values are # chosen from matplotlib oslicer.add_contours(img, filled=True, levels=[0., 0.2]) # levels with only one value oslicer.add_contours(img, filled=True, levels=[0.]) # without passing levels, should work with default levels from # matplotlib oslicer.add_contours(img, filled=True)
def test_contour_fillings_levels_in_add_contours(): oslicer = OrthoSlicer(cut_coords=(0, 0, 0)) img = load_mni152_template() # levels should be atleast 2 # If single levels are passed then we force upper level to be inf oslicer.add_contours(img, filled=True, colors='r', alpha=0.2, levels=[0.]) # If two levels are passed, it should be increasing from zero index # In this case, we simply omit appending inf oslicer.add_contours(img, filled=True, colors='b', alpha=0.1, levels=[0., 0.2])
def test_contour_fillings_levels_in_add_contours(): oslicer = OrthoSlicer(cut_coords=(0, 0, 0)) img = load_mni152_template() # levels should be atleast 2 # If single levels are passed then we force upper level to be inf oslicer.add_contours(img, filled=True, colors='r', alpha=0.2, levels=[0.]) # If two levels are passed, it should be increasing from zero index # In this case, we simply omit appending inf oslicer.add_contours(img, filled=True, colors='b', alpha=0.1, levels=[0., 0.2])
def test_contour_fillings_levels_in_add_contours(): oslicer = OrthoSlicer(cut_coords=(0, 0, 0)) img = load_mni152_template() # levels should be atleast 2 # If single levels are passed then we force upper level to be inf oslicer.add_contours(img, filled=True, colors='r', alpha=0.2, levels=[0.]) # If two levels are passed, it should be increasing from zero index # In this case, we simply omit appending inf oslicer.add_contours(img, filled=True, colors='b', alpha=0.1, levels=[0., 0.2]) # without passing colors and alpha. In this case, default values are # chosen from matplotlib oslicer.add_contours(img, filled=True, levels=[0., 0.2]) # levels with only one value oslicer.add_contours(img, filled=True, levels=[0.]) # without passing levels, should work with default levels from # matplotlib oslicer.add_contours(img, filled=True)