def __init__(self, A2B, label=None, s=1.0, **kwargs): self.x_label = Text3D(0, 0, 0, text="", zdir="x") self.y_label = Text3D(0, 0, 0, text="", zdir="x") self.z_label = Text3D(0, 0, 0, text="", zdir="x") super(LabeledFrame, self).__init__(A2B, label=None, s=1.0, **kwargs)
def __init__(self, A2B, label=None, s=1.0, **kwargs): super(Frame, self).__init__() if "c" in kwargs: kwargs.pop("c") if "color" in kwargs: kwargs.pop("color") self.s = s self.x_axis = Line3D([], [], [], color="r", **kwargs) self.y_axis = Line3D([], [], [], color="g", **kwargs) self.z_axis = Line3D([], [], [], color="b", **kwargs) self.draw_label = label is not None self.label = label if self.draw_label: self.label_indicator = Line3D([], [], [], color="k", **kwargs) self.label_text = Text3D(0, 0, 0, text="", zdir="z") self.set_data(A2B, label)