visualize/Visualize.py
def format_plot(self, ax):
        ''' Formats plots for decision choice with 50% and 0 lines
        '''
       # meta data
        try:
            xlims = [self.xlim[0],self.xlim[1]]
        except:
            xlims = [-self.window+1,0]

        ylims = [0.4,1.0]
        ax.plot([0,0],
                 [ylims[0],ylims[1]],
                 '--',
                linewidth=3,
                 color='black',
                alpha=.5)

        ax.plot([xlims[0],xlims[1]],
                 [0.5,0.5],
                 '--',
                linewidth=3,
                 color='black',
                alpha=.5)

        ax.set_xlim(xlims[0],xlims[1])
        ax.set_ylim(0.4,1.0)
 Formats plots for decision choice with 50% and 0 lines
        
Formats plots for decision choice with 50% and 0 lines
Formats plots for decision choice with 50% and 0 lines
def format_plot(self, ax):
        try:
            xlims = [self.xlim[0],self.xlim[1]]
        except:
            xlims = [-self.window+1,0]
        ylims = [0.4,1.0]
        ax.plot([0,0],
                 [ylims[0],ylims[1]],
                 '--',
                linewidth=3,
                 color='black',
                alpha=.5)
        ax.plot([xlims[0],xlims[1]],
                 [0.5,0.5],
                 '--',
                linewidth=3,
                 color='black',
                alpha=.5)
        ax.set_xlim(xlims[0],xlims[1])
        ax.set_ylim(0.4,1.0)
def format_plot ( self , ax ) : try : xlims = [ self . xlim [ 0 ] , self . xlim [ 1 ] ] except : xlims = [ - self . window + 1 , 0 ] ylims = [ 0.4 , 1.0 ] ax . plot ( [ 0 , 0 ] , [ ylims [ 0 ] , ylims [ 1 ] ] , '--' , linewidth = 3 , color = 'black' , alpha = .5 ) ax . plot ( [ xlims [ 0 ] , xlims [ 1 ] ] , [ 0.5 , 0.5 ] , '--' , linewidth = 3 , color = 'black' , alpha = .5 ) ax . set_xlim ( xlims [ 0 ] , xlims [ 1 ] ) ax . set_ylim ( 0.4 , 1.0 )
Formats plots for decision choice with 50% and 0 lines
Formats plots for decision choice with 50% and 0 lines
''' Formats plots for decision choice with 50% and 0 lines
        ''' # meta data
self
ax