示例#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'
 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'
 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'
 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)