示例#1
0
    def set_plots(self):
        def get_data(app=self):
            x = app.data["ATS_fp_fc"]['Probe Frequency']
            y = app.data["ATS_fp_fc"]['Coupler Frequency']
            z, e = app.data["ATS_fp_fc"]['P0']
            return x, y, z

        self.plot.add_item(
            image("ATS P0", "Probe Frequency (GHz)", "Coupler Frequency (GHz)",
                  get_data), ["ATS_fp_fc"])

        def get_data(app=self):
            x = app.data["ATS_fp_fc"]['Probe Frequency']
            y = app.data["ATS_fp_fc"]['Coupler Frequency']
            z, e = app.data["ATS_fp_fc"]['P1']
            return x, y, z

        self.plot.add_item(
            image("ATS P1", "Probe Frequency (GHz)", "Coupler Frequency (GHz)",
                  get_data), ["ATS_fp_fc"])

        def get_data(app=self):
            x = app.data["ATS_fp_fc"]['Probe Frequency']
            y = app.data["ATS_fp_fc"]['Coupler Frequency']
            z, e = app.data["ATS_fp_fc"]['P2']
            return x, y, z

        self.plot.add_item(
            image("ATS P2", "Probe Frequency (GHz)", "Coupler Frequency (GHz)",
                  get_data), ["ATS_fp_fc"])
示例#2
0
    def set_plots(self):
        def get_data(app=self):
            x = app.data["Rabi2D"]['Frequency']
            y = app.data["Rabi2D"]['Time']
            z, e = app.data["Rabi2D"]['Amplitude']
            return x, y, z

        self.plot.add_item(
            image("Rabi", "Probe Frequency (GHz)", "Time (ns)", get_data),
            ["Rabi2D"])
示例#3
0
文件: test.py 项目: q03-iop-cas/qulab
 def set_plots(self):
     def get_data(app = self):
         x    = app.data["Rabi2D"]['Frequency']
         y    = app.data["Rabi2D"]['Time']
         z, e = app.data["Rabi2D"]['Amplitude']
         return x, y, z
         
     self.plot.add_item(image("Rabi",
                              "Frequency (GHz)",
                              "Time (ns)",
                              get_data),
                        ["Rabi2D"])
示例#4
0
 def set_plots(self):
     def get_data(app = self):
         x    = app.data["ATS_fp_fc"]['Probe Frequency']
         y    = app.data["ATS_fp_fc"]['Coupler Frequency']
         z, e = app.data["ATS_fp_fc"]['P0']
         return x, y, z
         
     self.plot.add_item(image("EIT P0",
                              "Probe Frequency (GHz)",
                              "Coupler Frequency (GHz)",
                              get_data),
                        ["ATS_fp_fc"])
示例#5
0
 def set_plots(self):
     def get_data(app = self):
         x    = app.data["ATS_pp_pc"]['Probe Frequency']
         y    = app.data["ATS_pp_pc"]['Probe Power']
         z, e = app.data["ATS_pp_pc"]['P0']
         return x, y, z
         
     self.plot.add_item(image("ATS P0",
                              "Probe Frequency (GHz)",
                              "Probe Power (dBm)",
                              get_data),
                        ["ATS_pp_pc"])
                        
     def get_data(app = self):
         x    = app.data["ATS_pp_pc"]['Probe Frequency']
         y    = app.data["ATS_pp_pc"]['Probe Power']
         z, e = app.data["ATS_pp_pc"]['P1']
         return x, y, z
         
     self.plot.add_item(image("ATS P1",
                              "Probe Frequency (GHz)",
                              "Probe Power (dBm)",
                              get_data),
                        ["ATS_pp_pc"])
                        
     def get_data(app = self):
         x    = app.data["ATS_pp_pc"]['Probe Frequency']
         y    = app.data["ATS_pp_pc"]['Probe Power']
         z, e = app.data["ATS_pp_pc"]['P2']
         return x, y, z
         
     self.plot.add_item(image("ATS P2",
                              "Probe Frequency (GHz)",
                              "Probe Power (dBm)",
                              get_data),
                        ["ATS_pp_pc"])
示例#6
0
    def set_plots(self):
        def get_data(app=self):
            x = app.data["CavitySpectrum2D"]['Frequency']
            y = app.data["CavitySpectrum2D"]['Power']
            z, e = app.data["CavitySpectrum2D"]['Amplitude']
            z = 20 * np.log10(z)
            return x, y, z.clip(-25, z.max())

        self.plot.add_item(
            image("Cavity Spectrum",
                  xlabel="Frequency (GHz)",
                  ylabel="Power (dBm)",
                  zlabel="20 log(A/1 mV)",
                  get_data=get_data,
                  cmap='terrain'), ["CavitySpectrum2D"])
示例#7
0
 def set_plots(self):
     
     def get_data(app = self):
         x    = app.data["CavitySpectrum2D"]['Frequency']
         y    = app.data["CavitySpectrum2D"]['Power']
         z, e = app.data["CavitySpectrum2D"]['Amplitude']
         z = 20*np.log10(z)
         return x, y, z.clip(-25,z.max())
         
     self.plot.add_item(image("Cavity Spectrum",
                              xlabel = "Frequency (GHz)",
                              ylabel = "Power (dBm)",
                              zlabel = "20 log(A/1 mV)",
                              get_data = get_data,
                              cmap = 'terrain'),
                        ["CavitySpectrum2D"])