def initFrame(self):
     self.m_App = wx.App(redirect=False)
     self.m_PlotFrame = cPlotEPA3D.cPlotFrame(None, title="Bayesact Simulator", size=(700, 550))
     self.m_PlotFrame.initPanel(iXAxisItem=eEPA.evaluation,
                                iYAxisItem=eEPA.potency,
                                iZAxisItem=eEPA.activity,
                                style=wx.SIMPLE_BORDER, pos=(0, 0), size=(700, 550))
     return self.m_PlotFrame.m_PlotPanel
Пример #2
0
 def onMake3D(self, iEvent):
     frame = cPlotEPA3D.cPlotFrame(self, title="Plot{}".format(len(self.m_PlotFrames) + 1), size=(700, 550))
     frame.initPanel(iXAxisItem=eEPA.evaluation,
                     iYAxisItem=eEPA.potency,
                     iZAxisItem=eEPA.activity,
                     style=wx.SIMPLE_BORDER, pos=(0, 0), size=(700, 550))
     frame.Show()
     #frame.m_PlotPanel.m_Axes.figure.canvas.draw()
     self.m_PlotFrames.append(frame)
     self.switchFocus(frame)