コード例 #1
0
ファイル: horizontal_line.py プロジェクト: woozey/hyperspy
 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
ファイル: vertical_line.py プロジェクト: woozey/hyperspy
 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
ファイル: point.py プロジェクト: stloeffler/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'
コード例 #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
ファイル: line_segment.py プロジェクト: gdonval/hyperspy
 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
ファイル: vertical_line.py プロジェクト: lu-chi/hyperspy
 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
ファイル: vertical_line.py プロジェクト: gdonval/hyperspy
 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
ファイル: ellipse.py プロジェクト: jasoncmyers/hyperspy
 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
ファイル: point.py プロジェクト: thomasaarholt/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)