def test_annotations(): # Check calls to display.annotate() # In particular, exercise some of the keyword arguments for scale bars orthoslicer = OrthoSlicer(cut_coords=(None, None, None)) orthoslicer.annotate(size=10, left_right=True, positions=False) orthoslicer.annotate(size=12, left_right=False, positions=False, scalebar=True, scale_size=2.5, scale_units='cm', scale_loc=3)
def test_annotations(): # Check calls to display.annotate() # In particular, exercise some of the keyword arguments for scale bars orthoslicer = OrthoSlicer(cut_coords=(None, None, None)) orthoslicer.annotate(size=10, left_right=True, positions=False) orthoslicer.annotate(size=12, left_right=False, positions=False, scalebar=True, scale_size=2.5, scale_units='cm', scale_loc=3) orthoslicer.close()
def test_annotations(): """Tests for ``display.annotate()``. In particular, exercise some of the keyword arguments for scale bars. """ orthoslicer = OrthoSlicer(cut_coords=(None, None, None)) orthoslicer.annotate(size=10, left_right=True, positions=False) orthoslicer.annotate(size=12, left_right=False, positions=False, scalebar=True, scale_size=2.5, scale_units='cm', scale_loc=3, frameon=True) orthoslicer.close()
def test_position_annotation_with_decimals(): """Test of decimals position annotation with precision of 2.""" orthoslicer = OrthoSlicer(cut_coords=(0, 0, 0)) orthoslicer.annotate(positions=True, decimals=2) orthoslicer.close()