Пример #1
0
    def _reset(self):

        self.npoint = None
        self.center = None
        self.dimensionPair = None
        if self._type.is3d: self.zdata = None

        super()._reset()
        if not self._type.is3d: self.target = Target()

        self.plot = Struct()
        self.plot.enabled = True
        self.plot.kws = Struct()

        self.colormap = Struct()
        self.colormap.enabled = True
        self.colormap.values = None
        self.colormap.name = None

        self.colorbar = Struct()
        self.colorbar.enabled = True
        self.colorbar.kws = Struct()

        self.title = Struct()
        self.title.enabled = False
        self.title.label = ""
        self.title.kws = Struct()
        self.title.kws.loc = "center"

        self._isdryrun = True
        self.make()
        self._isdryrun = False

        self.legend.enabled = False
        self.legend._labels = None
Пример #2
0
    def _reset(self):

        super()._reset()
        self._indexOffset = 1
        self.xcolumns = None
        self.ycolumns = None
        self.ccolumns = [
        ]  # indicates the use of default column for colormap. To turn off

        self._xlabel = None
        self._ylabel = None
        self._zlabel = None

        self._xlimit = None
        self._ylimit = None
        self._zlimit = None

        self._xscale = None
        self._yscale = None
        self._zscale = None

        if not self._type.is3d: self.target = Target()

        if self._type.isLine:
            self.plot = Struct()
            self.plot.enabled = False
            self.plot.kws = Struct()
            self.lineCollection = Struct()
            self.lineCollection.kws = Struct()
            self.lineCollection.enabled = True

        if self._type.isScatter:
            self.scatter = Struct()
            self.scatter.enabled = True
            self.scatter.kws = Struct()

        if self._type.is3d:
            self.zcolumns = []

        self.colorbar = Struct()
        self.colorbar.kws = Struct()
        if (self._type.isScatter and self.ccolumns is not None) or (
                self._type.isLine and self.lineCollection.enabled):
            self.colorbar.enabled = True
        else:
            self.colorbar.enabled = False

        self._isdryrun = True
        self.make()
        self._isdryrun = False