def __init__(self, y, **kwargs): MarkerBase.__init__(self) lp = {'linewidth': 1, 'color': 'black'} self.marker_properties = lp self.set_data(y1=y) self.set_marker_properties(**kwargs) self.name = 'horizontal_line'
def __init__(self, x, **kwargs): MarkerBase.__init__(self) lp = {'linewidth': 1, 'color': 'black'} self.marker_properties = lp self.set_data(x1=x) self.set_marker_properties(**kwargs) self.name = 'vertical_line'
def __init__(self, x1, y1, x2, y2, **kwargs): MarkerBase.__init__(self) lp = {'color': 'black', 'fill': None, 'linewidth': 1} self.marker_properties = lp self.set_data(x1=x1, y1=y1, x2=x2, y2=y2) self.set_marker_properties(**kwargs) self.name = 'rectangle'
def __init__(self, x, y, text, **kwargs): MarkerBase.__init__(self) lp = {'color': 'black'} self.marker_properties = lp self.set_data(x1=x, y1=y, text=text) self.set_marker_properties(**kwargs) self.name = 'text'
def __init__(self, x, y1, y2, **kwargs): MarkerBase.__init__(self) lp = {'color': 'black', 'linewidth': 1} self.marker_properties = lp self.set_data(x1=x, y1=y1, y2=y2) self.set_marker_properties(**kwargs) self.name = 'vertical_line_segment'
def __init__(self, x, y, size=20, **kwargs): MarkerBase.__init__(self) lp = {'color': 'black', 'linewidth': None} self.marker_properties = lp self.set_data(x1=x, y1=y, size=size) self.set_marker_properties(**kwargs) self.name = 'point'
def __init__(self, x1, x2, y, **kwargs): MarkerBase.__init__(self) lp = {'color': 'black', 'linewidth': 1} self.marker_properties = lp self.set_data(x1=x1, x2=x2, y1=y) self.set_marker_properties(**kwargs) self.name = 'horizontal_line_segment'
def __init__(self, x, y, text, **kwargs): MarkerBase.__init__(self) lp = {} lp['color'] = 'black' self.marker_properties = lp self.set_data(x1=x, y1=y, text=text) self.set_marker_properties(**kwargs)
def __init__(self, x1, y1, x2, y2, **kwargs): MarkerBase.__init__(self) lp = {} lp['color'] = 'black' lp['linewidth'] = 1 self.marker_properties = lp self.set_data(x1=x1, y1=y1, x2=x2, y2=y2) self.set_marker_properties(**kwargs)
def __init__(self, x, **kwargs): MarkerBase.__init__(self) lp = {} lp['linewidth'] = 1 lp['color'] = 'black' self.marker_properties = lp self.set_data(x1=x) self.set_marker_properties(**kwargs)
def __init__(self, x, y, size=20, **kwargs): MarkerBase.__init__(self) lp = {} lp['color'] = 'black' lp['linewidth'] = None self.marker_properties = lp self.set_data(x1=x, y1=y, size=size) self.set_marker_properties(**kwargs)
def __init__(self, x, y, size=20, **kwargs): MarkerBase.__init__(self) lp = {} lp["color"] = "black" lp["linewidth"] = None self.marker_properties = lp self.set_data(x1=x, y1=y, size=size) self.set_marker_properties(**kwargs)
def __init__(self, x1, x2, y, **kwargs): MarkerBase.__init__(self) lp = {} lp['color'] = 'black' lp['linewidth'] = 1 self.marker_properties = lp self.set_data(x1=x1, x2=x2, y1=y) self.set_marker_properties(**kwargs)
def __init__(self, x, y, width, height, **kwargs): MarkerBase.__init__(self) lp = { 'edgecolor': 'black', 'facecolor': None, 'fill': None, 'linewidth': 1 } self.marker_properties = lp self.set_data(x1=x, y1=y, x2=width, y2=height) self.set_marker_properties(**kwargs) self.name = 'ellipse'
def __init__(self, x1, y1, x2, y2, **kwargs): MarkerBase.__init__(self) lp = {'edgecolor': 'black', 'facecolor': None, 'fill': None, 'linewidth': 1} self.marker_properties = lp self.set_data(x1=x1, y1=y1, x2=x2, y2=y2) self.set_marker_properties(**kwargs) mp = self.marker_properties if 'color' in mp: # for backward compatibility mp['edgecolor'] = mp['color'] # in contrast to matplotlib.patches.Rectangle, # color property in hyperspy do not change facecolor del mp['color'] self.name = 'rectangle'
def __init__(self, x, y, size=20, **kwargs): MarkerBase.__init__(self) lp = {"color": "black", "linewidth": None} self.marker_properties = lp self.set_data(x1=x, y1=y, size=size) self.set_marker_properties(**kwargs)