Exemple #1
0
 def _build_frames(self, *args, **kwargs):
     # Function automatically called at initialization, thanks to the
     # decorator. It will be called after "_init_data" given that it is
     # declared after
     # create a graph frame
     self.mygraph = self.add_frame(
         jk.GraphMulti(name="test",
                       size=(500, 500),
                       pos=(50, 50),
                       xnpts=15,
                       freq_up=7,
                       bgcol="w",
                       nlines=2,
                       xlabel='t',
                       ylabel='rnd'))
     # create a text frame
     self.mytext = self.add_frame(
         jk.Text(name="Y-overflow",
                 size=(500, 250),
                 pos=(600, 50),
                 freq_up=1))
     self.myscatter = self.add_frame(
         jk.Scatter(name="scatter",
                    size=(500, 500),
                    pos=(600, 350),
                    xnpts=15,
                    freq_up=7,
                    bgcol="k",
                    cmap='Reds',
                    s=80,
                    xylim=(0, 10, 0, 1),
                    grid='w'))
 def _build_frames(self, *args, **kwargs):
     self.tiptilt = self.add_frame(
         jk.GraphMulti(name="tip-tilt",
                       size=(500, 500),
                       pos=(50, 50),
                       fmt="ko",
                       xnpts=len(core.FIRSTSEGS),
                       nlines=len(core.FIRSTSEGS),
                       freq_up=5,
                       bgcol="w",
                       numbering=True,
                       lbls=core.FIRSTSEGS,
                       legend=False,
                       xylim=(core.TIPTILTMIN, core.TIPTILTMAX,
                              core.TIPTILTMIN, core.TIPTILTMAX),
                       xlabel='tip',
                       ylabel='tilt'))
     self.piston = self.add_frame(
         jk.Graph(name="Piston",
                  size=(500, 500),
                  pos=(650, 50),
                  fmt="rs",
                  xnpts=len(core.FIRSTSEGS),
                  freq_up=5,
                  bgcol="w",
                  xylim=(-1, np.max(core.FIRSTSEGS) + 1, core.PISTONMIN,
                         core.PISTONMAX),
                  xlabel='segment',
                  ylabel='piston'))
     self.mems = Mems()