Beispiel #1
0
 def plot_streams(self):
     try:
         xlim1 = self.ax1.get_xlim()
         xlim2 = self.ax2.get_xlim()
         flag = True
     except AttributeError:
         flag = False
     self.fig.clear()
     self.ax1 = self.fig.add_subplot(121)
     self.ax2 = self.fig.add_subplot(122, sharey=self.ax1)
     self.pl1 = self.st1s[self.ind1:self.ind2].plot_(
         ax=self.ax1,
         component='Z',
         plotinfo=('sum', ),
         plotinfowhere=('top', ),
         plotinfodicts=[dict(pad=0, size=0.4)])
     self.pl2 = self.st2s[self.ind1:self.ind2].plotRF(ax=self.ax2)
     plotRFmarks(self.st2s[self.ind1:self.ind2:3],
                 self.ax1,
                 t1=t1,
                 t2=t2,
                 options='r',
                 lw=2)
     plotRFmarks(self.st2s[self.ind1:self.ind2:3],
                 self.ax2,
                 t1=t3,
                 t2=t4,
                 options='r',
                 lw=2)
     if flag:
         self.ax1.set_xlim(xlim1)
         self.ax2.set_xlim(xlim2)
Beispiel #2
0
 def plot_streams(self):
     try:
         xlim1 = self.ax1.get_xlim()
         xlim2 = self.ax2.get_xlim()
         flag = True
     except AttributeError:
         flag = False
     self.fig.clear()
     self.ax1 = self.fig.add_subplot(121)
     self.ax2 = self.fig.add_subplot(122, sharey=self.ax1)
     self.pl1 = self.st1s[self.ind1:self.ind2].plot_(
                    ax=self.ax1, component='Z', plotinfo=('sum',),
                    plotinfowhere=('top',), plotinfodicts=[dict(pad=0,
                                                                size=0.4)])
     self.pl2 = self.st2s[self.ind1:self.ind2].plotRF(ax=self.ax2)
     plotRFmarks(self.st2s[self.ind1:self.ind2:3], self.ax1,
                 t1=t1, t2=t2, options='r', lw=2)
     plotRFmarks(self.st2s[self.ind1:self.ind2:3], self.ax2,
                 t1=t3, t2=t4, options='r', lw=2)
     if flag:
         self.ax1.set_xlim(xlim1)
         self.ax2.set_xlim(xlim2)
Beispiel #3
0
 def draw_mark(self, which='both'):
     imaging.plotRFmarks(self.st2, self.ax1)
     if self.ui.check_display2.isChecked() and which in ['both', 'rf']:
         imaging.plotRFmarks(self.st2, self.ax2, -10, -5, 'g', 3)
Beispiel #4
0
 def draw_mark(self, which='both'):
     imaging.plotRFmarks(self.st2, self.ax1)
     if self.ui.check_display2.isChecked() and which in ['both', 'rf']:
         imaging.plotRFmarks(self.st2, self.ax2, -10, -5, 'g', 3)