Esempio n. 1
0
    def _init_ctrls(self, parent):
        fnb.FlatNotebook.__init__(self,
                                  id=wxID_TABPLOTS,
                                  name=u'tabPlots',
                                  parent=parent,
                                  pos=wx.Point(0, 0),
                                  size=wx.Size(491, 288),
                                  agwStyle=fnb.FNB_NODRAG | fnb.FNB_HIDE_TABS)
        # style |= fnb.FNB_HIDE_TABS
        # self.book.SetAGWWindowStyleFlag(style)

        self.pltTS = plotTimeSeries.plotTimeSeries(id=wxID_PAGETIMESERIES,
                                                   name='pltTS',
                                                   parent=self,
                                                   pos=wx.Point(0, 0),
                                                   size=wx.Size(605, 458),
                                                   style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltTS, 'TimeSeries')

        self.pltProb = plotProbability.plotProb(id=wxID_PAGEPROB,
                                                name='pltProb',
                                                parent=self,
                                                pos=wx.Point(0, 0),
                                                size=wx.Size(605, 458),
                                                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltProb, 'Probablity')

        self.pltHist = plotHistogram.plotHist(id=wxID_PAGEHIST,
                                              name='pltHist',
                                              parent=self,
                                              pos=wx.Point(0, 0),
                                              size=wx.Size(605, 458),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltHist, 'Histogram')

        self.pltBox = plotBoxWhisker.PlotBox(id=wxID_PAGEBOX,
                                             name='pltBox',
                                             parent=self,
                                             pos=wx.Point(0, 0),
                                             size=wx.Size(605, 458),
                                             style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltBox, 'Box/Whisker')

        self.pltSum = plotSummary.plotSummary(id=wxID_PAGESUMMARY,
                                              name=u'pltSum',
                                              parent=self,
                                              pos=wx.Point(784, 256),
                                              size=wx.Size(437, 477),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltSum, 'Summary')

        self._seriesPlotInfo = None
        self.editID = None
        self.legendVisible = False
Esempio n. 2
0
    def _init_ctrls(self, parent):
        fnb.FlatNotebook.__init__(self, id=wxID_TABPLOTS, name=u'tabPlots',
              parent=parent, pos=wx.Point(0, 0), size=wx.Size(491, 288),
              agwStyle=fnb.FNB_NODRAG | fnb.FNB_HIDE_TABS)
        # style |= fnb.FNB_HIDE_TABS
        # self.book.SetAGWWindowStyleFlag(style)

        self.pltTS = plotTimeSeries.plotTimeSeries(id=wxID_PAGETIMESERIES, name='pltTS',
                parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltTS, 'TimeSeries')

        self.pltProb = plotProbability.plotProb(id=wxID_PAGEPROB, name='pltProb',
                parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltProb, 'Probablity')

        self.pltHist = plotHistogram.plotHist(id=wxID_PAGEHIST, name='pltHist',
                parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltHist, 'Histogram')

        self.pltBox = plotBoxWhisker.plotBox(id=wxID_PAGEBOX, name='pltBox',
                parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltBox, 'Box/Whisker')

        self.pltSum = plotSummary.plotSummary( id = wxID_PAGESUMMARY, name=u'pltSum',
              parent=self, pos=wx.Point(784, 256), size=wx.Size(437, 477),
              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltSum, 'Summary')



        Publisher.subscribe(self.onDateChanged, ("onDateChanged"))
        Publisher.subscribe(self.OnPlotType, ("onPlotType"))
        Publisher.subscribe(self.OnShowLegend, ("OnShowLegend"))
        Publisher.subscribe(self.OnNumBins, ("OnNumBins"))
        Publisher.subscribe(self.OnRemovePlot, ("removePlot"))
        Publisher.subscribe(self.OnChangeSelection, ("changePlotSelection"))
        Publisher.subscribe(self.OnChangeSelectionDT, ("changePlotSelectionDT"))
        Publisher.subscribe(self.onUpdateValues, ("updateValues"))


        self.selectedSerieslist = []
        self._seriesPlotInfo= None
        self.editID = None
Esempio n. 3
0
    def _init_ctrls(self, parent):
        fnb.FlatNotebook.__init__(self, id=wxID_TABPLOTS, name=u'tabPlots',
                                  parent=parent, pos=wx.Point(0, 0), size=wx.Size(491, 288),
                                  agwStyle=fnb.FNB_NODRAG | fnb.FNB_HIDE_TABS)
        # style |= fnb.FNB_HIDE_TABS
        # self.book.SetAGWWindowStyleFlag(style)

        self.pltTS = plotTimeSeries.plotTimeSeries(id=wxID_PAGETIMESERIES, name='pltTS',
                                                   parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                                                   style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltTS, 'TimeSeries')

        self.pltProb = plotProbability.plotProb(id=wxID_PAGEPROB, name='pltProb',
                                                parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                                                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltProb, 'Probablity')

        self.pltHist = plotHistogram.plotHist(id=wxID_PAGEHIST, name='pltHist',
                                              parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltHist, 'Histogram')

        self.pltBox = plotBoxWhisker.PlotBox(id=wxID_PAGEBOX, name='pltBox',
                                             parent=self, pos=wx.Point(0, 0), size=wx.Size(605, 458),
                                             style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltBox, 'Box/Whisker')

        self.pltSum = plotSummary.plotSummary(id=wxID_PAGESUMMARY, name=u'pltSum',
                                              parent=self, pos=wx.Point(784, 256), size=wx.Size(437, 477),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltSum, 'Summary')


        self._seriesPlotInfo = None
        self.editID = None
        self.legendVisible = False
Esempio n. 4
0
    def _init_ctrls(self, parent):
        fnb.FlatNotebook.__init__(self,
                                  id=wxID_TABPLOTS,
                                  name=u'tabPlots',
                                  parent=parent,
                                  pos=wx.Point(0, 0),
                                  size=wx.Size(491, 288),
                                  agwStyle=fnb.FNB_NODRAG | fnb.FNB_HIDE_TABS)
        # style |= fnb.FNB_HIDE_TABS
        # self.book.SetAGWWindowStyleFlag(style)

        self.pltTS = plotTimeSeries.plotTimeSeries(id=wxID_PAGETIMESERIES,
                                                   name='pltTS',
                                                   parent=self,
                                                   pos=wx.Point(0, 0),
                                                   size=wx.Size(605, 458),
                                                   style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltTS, 'TimeSeries')

        self.pltProb = plotProbability.plotProb(id=wxID_PAGEPROB,
                                                name='pltProb',
                                                parent=self,
                                                pos=wx.Point(0, 0),
                                                size=wx.Size(605, 458),
                                                style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltProb, 'Probablity')

        self.pltHist = plotHistogram.plotHist(id=wxID_PAGEHIST,
                                              name='pltHist',
                                              parent=self,
                                              pos=wx.Point(0, 0),
                                              size=wx.Size(605, 458),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltHist, 'Histogram')

        self.pltBox = plotBoxWhisker.plotBox(id=wxID_PAGEBOX,
                                             name='pltBox',
                                             parent=self,
                                             pos=wx.Point(0, 0),
                                             size=wx.Size(605, 458),
                                             style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltBox, 'Box/Whisker')

        self.pltSum = plotSummary.plotSummary(id=wxID_PAGESUMMARY,
                                              name=u'pltSum',
                                              parent=self,
                                              pos=wx.Point(784, 256),
                                              size=wx.Size(437, 477),
                                              style=wx.TAB_TRAVERSAL)
        self.AddPage(self.pltSum, 'Summary')

        Publisher.subscribe(self.onDateChanged, ("onDateChanged"))
        Publisher.subscribe(self.OnPlotType, ("onPlotType"))
        Publisher.subscribe(self.OnShowLegend, ("OnShowLegend"))
        Publisher.subscribe(self.OnNumBins, ("OnNumBins"))
        Publisher.subscribe(self.OnRemovePlot, ("removePlot"))
        Publisher.subscribe(self.OnChangeSelection, ("changePlotSelection"))
        Publisher.subscribe(self.OnChangeSelectionDT,
                            ("changePlotSelectionDT"))
        Publisher.subscribe(self.onUpdateValues, ("updateValues"))

        self.selectedSerieslist = []
        self._seriesPlotInfo = None
        self.editID = None