Example #1
0
    def __init__(self, figure, raw_data, title=""):
        # init tlp pick plot
        TLPPickFigure.__init__(self, figure, raw_data, title)
        # pulses figure
        pulses = raw_data.pulses
        time = np.arange(pulses.pulses_length) * pulses.delta_t
        offseted_time = pulses.offsets_t + time[:, np.newaxis]
        # I and V curves
        v_pulse_plot = figure.add_axes((0.55, 0.55, 0.35, 0.35))
        v_pulse_plot.grid(True)
        v_pulse_plot.set_ylabel("Voltage")

        i_pulse_plot = figure.add_axes((0.55, 0.1, 0.35, 0.35),
                                       sharex=v_pulse_plot)
        i_pulse_plot.grid(True)
        i_pulse_plot.set_xlabel("time (ns)")
        i_pulse_plot.set_ylabel("Current")

        # Init object attributes
        self.offseted_time = offseted_time * 1e9 # time in nanosecond
        self.v_pulse_plot = v_pulse_plot
        self.v_pulse_lines = None
        self.i_pulse_plot = i_pulse_plot
        self.i_pulse_lines = None
        self.pulses = raw_data.pulses
        figure.canvas.mpl_connect('key_press_event', self.on_key_press)
Example #2
0
 def __init__(self, figure, raw_data, title=""):
     # init tlp pick plot
     TLPPickFigure.__init__(self, figure, raw_data, title)
     # init leak-curves plot
     leak_plot = figure.add_axes((0.62, 0.1, 0.35, 0.8))
     leak_plot.set_title("DC Leakage Curves")
     leak_plot.grid(True)
     leak_plot.set_xlabel("Voltage (V)")
     leak_plot.set_ylabel("Current (A)")
     # init object attributes
     self.iv_leak = raw_data.iv_leak
     self.leak_plot_lines = None
     self.leak_plot = leak_plot
     figure.canvas.mpl_connect('key_press_event', self.on_key_press)
 def __init__(self, figure, raw_data, title=""):
     # init tlp pick plot
     TLPPickFigure.__init__(self, figure, raw_data, title)
     # init leak-curves plot
     leak_plot = figure.add_axes((0.62, 0.1, 0.35, 0.8))
     leak_plot.set_title("DC Leakage Curves")
     leak_plot.grid(True)
     leak_plot.set_xlabel("Voltage (V)")
     leak_plot.set_ylabel("Current (A)")
     # init object attributes
     self.iv_leak = raw_data.iv_leak
     self.leak_plot_lines = None
     self.leak_plot = leak_plot
     #Plot the very first leakage curve
     leak_plot.plot(self.iv_leak[0][0],
                    self.iv_leak[0][1],
                    '--k')