Beispiel #1
0
 def DrawWaitingPlot(self):
     self.resetGraph()
     if not hasattr(self, 'staticImage'):
         self.staticImage = NP.random.random((50, 50))
     wg = Graphs.DrawSimpleImage("Waiting for data...",
                                 self.staticImage,
                                 "Waiting for data...",
                                 extent=None)
     rax = wg.drawPlot(self.figure, self.axes)
     if rax != None:  # This allows the graph to reconfigure its own axes, instead of allowing the panel to handle it
         self.axes = rax
     self.mycanvas.draw()
Beispiel #2
0
 def showSimpleImage(self,
                     name,
                     data,
                     text,
                     extent=(),
                     labl=("", ""),
                     title=None,
                     early=None,
                     ticks_scale=None,
                     norm='Log'):
     if not self.isGraphing(name):
         return
     if early is not None:
         self.graphBeforeEndOfFF(name, early)
     dv1 = Graphs.DrawSimpleImage(name,
                                  data,
                                  text,
                                  extent=extent,
                                  labl=labl,
                                  title=title,
                                  ticks_scale=ticks_scale,
                                  norm=norm)
     self._sendplot(dv1)