Exemplo n.º 1
0
            ax.set_ylabel(r'(nAm $\times$ ' + str(scalefctr) + ')')
            if tstop != -1: ax.set_xlim((0, tstop))
            # ax.set_ylim(yl)
            ax.set_ylim((-100, 100))

            if i == 2 and len(ddat['dpltrials']) > 0: ax.legend(handles=lpatch)

            ax.set_facecolor('k')
            ax.grid(True)
            ax.set_title(title)

            gdx += 1

        self.figure.subplots_adjust(bottom=0.06,
                                    left=0.06,
                                    right=1.0,
                                    top=0.97,
                                    wspace=0.1,
                                    hspace=0.09)

    def plot(self):
        self.drawdipole(self.figure)
        self.draw()


if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = DataViewGUI(DipoleCanvas, paramf, ntrial, 'Dipole Viewer')
    sys.exit(app.exec_())
Exemplo n.º 2
0
                              cmap=plt.get_cmap('jet'))
            else:
                ms = ddat['spec'][(self.index - 1, nlfp)]
                ax.imshow(ms.TFR,
                          extent=[ms.tmin, tvec[-1], ms.f[-1], ms.f[0]],
                          aspect='auto',
                          origin='upper',
                          cmap=plt.get_cmap('jet'))
            ax.set_xlim(minwavet, tvec[-1])
            if nlfp == maxlfp: ax.set_xlabel('Time (ms)')
            if not laminar: ax.set_ylabel('Frequency (Hz)')

        if laminar: self.drawCSD(fig, G)

        self.figure.subplots_adjust(bottom=0.04,
                                    left=0.04,
                                    right=1.0,
                                    top=0.99,
                                    wspace=0.1,
                                    hspace=0.01)

    def plot(self):
        self.drawLFP(self.figure)
        self.draw()


if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = DataViewGUI(LFPCanvas, paramf, ntrial, 'HNN LFP Viewer')
    sys.exit(app.exec_())