예제 #1
0
 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'
예제 #2
0
 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'
예제 #3
0
 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'
예제 #4
0
파일: text.py 프로젝트: ytzeng1/hyperspy
 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'
예제 #5
0
 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'
예제 #6
0
 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'
예제 #7
0
파일: text.py 프로젝트: woozey/hyperspy
 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'
예제 #8
0
파일: point.py 프로젝트: woozey/hyperspy
 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'
예제 #9
0
 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'
예제 #10
0
 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'
예제 #11
0
파일: text.py 프로젝트: gdonval/hyperspy
 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)
예제 #12
0
 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'
예제 #13
0
파일: text.py 프로젝트: lu-chi/hyperspy
 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)
예제 #14
0
 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'
예제 #15
0
 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'
예제 #16
0
 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)
예제 #17
0
 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)
예제 #18
0
 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)
예제 #19
0
파일: point.py 프로젝트: lu-chi/hyperspy
 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)
예제 #20
0
파일: point.py 프로젝트: lu-chi/hyperspy
 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)
예제 #21
0
 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)
예제 #22
0
 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'
예제 #23
0
 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'
예제 #24
0
 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)