def __init__(self,
input_pv: MutableMapping[Path, float],
axes, # todo: make optional argument?
origin=(0., 0.),
cmap=plt.get_cmap('autumn'),
base_ring_width=0.4,
base_edge_color=(0, 0, 0, 1),
base_line_width=0.75,
plot_center=False,
plot_minimal_angle=0,
label_minimal_angle=0,
order="value reverse",
base_textbox_props = None):
# *** Input & Config *** (emph)
self.input_pv = input_pv
self.axes = axes
self.cmap = cmap
self.origin = origin
self.base_wedge_width = base_ring_width
self.base_edge_color = base_edge_color
self.base_line_width = base_line_width
self.plot_center = plot_center
self.plot_minimal_angle = plot_minimal_angle
self.label_minimal_angle = label_minimal_angle
self.order = order
self.base_textbox_props = base_textbox_props
if not base_textbox_props:
self.base_textbox_props = dict(boxstyle="round, pad=0.2",
fc=(1, 1, 1, 0.8),
ec=(0.4, 0.4, 0.4, 1),
lw=0.)
# *** Variables used for computation *** (emph)
self._completed_pv = None # type: Dict[Path, float]
self._completed_paths = None # type: List[Path]
self._max_level = None # type: int
self._structured_paths = None # type: List[List[List[Path]]]
self._angles = None # type: Dict[Path, Angles]
# *** "Output" *** (emph)
self.wedges = {} # type: Dict[Path, Wedge]
评论列表
文章目录