pKa/analyse_pKa_values.py
def plot_matrix(self,matrix,canvas,tagname,diffmode=None):
        """Plot the data in the matrix on the canvas"""
        groups=matrix.keys()
        groups.sort()
        xstep=canvas.get_x_spacing(len(groups))
        ystep=canvas.get_y_spacing(len(groups))
        #
        # Set the axis labels
        #
        x_end=len(groups)
        y_end=x_end
        canvas.set_x_label('Removed group',x_end)
        canvas.set_y_label('Monitored group',y_end)
        for removed_group in groups:
            canvas.set_x_label(removed_group,groups.index(removed_group))
            canvas.set_y_label(removed_group,groups.index(removed_group))
            for group2 in groups:
                x=groups.index(removed_group)
                y=groups.index(group2)

                if not matrix[removed_group].has_key(group2):
                    value=None
                else:
                    value=matrix[removed_group][group2]
                plotted=None
                if diffmode:
                    if type(value) is type(' '):
                        canvas.plot_value(x,y,value,colour=value)
                        plotted=1
                if not plotted:
                    canvas.plot_value(x,y,value)
        return
Plot the data in the matrix on the canvas
Plot the data in the matrix on the canvas
Plot the data in the matrix on the canvas
def plot_matrix(self,matrix,canvas,tagname,diffmode=None):
        groups=matrix.keys()
        groups.sort()
        xstep=canvas.get_x_spacing(len(groups))
        ystep=canvas.get_y_spacing(len(groups))
         Set the axis labels
        x_end=len(groups)
        y_end=x_end
        canvas.set_x_label('Removed group',x_end)
        canvas.set_y_label('Monitored group',y_end)
        for removed_group in groups:
            canvas.set_x_label(removed_group,groups.index(removed_group))
            canvas.set_y_label(removed_group,groups.index(removed_group))
            for group2 in groups:
                x=groups.index(removed_group)
                y=groups.index(group2)
                if not matrix[removed_group].has_key(group2):
                    value=None
                else:
                    value=matrix[removed_group][group2]
                plotted=None
                if diffmode:
                    if type(value) is type(' '):
                        canvas.plot_value(x,y,value,colour=value)
                        plotted=1
                if not plotted:
                    canvas.plot_value(x,y,value)
        return
def plot_matrix ( self , matrix , canvas , tagname , diffmode = None ) : groups = matrix . keys ( ) groups . sort ( ) xstep = canvas . get_x_spacing ( len ( groups ) ) ystep = canvas . get_y_spacing ( len ( groups ) ) x_end = len ( groups ) y_end = x_end canvas . set_x_label ( 'Removed group' , x_end ) canvas . set_y_label ( 'Monitored group' , y_end ) for removed_group in groups : canvas . set_x_label ( removed_group , groups . index ( removed_group ) ) canvas . set_y_label ( removed_group , groups . index ( removed_group ) ) for group2 in groups : x = groups . index ( removed_group ) y = groups . index ( group2 ) if not matrix [ removed_group ] . has_key ( group2 ) : value = None else : value = matrix [ removed_group ] [ group2 ] plotted = None if diffmode : if type ( value ) is type ( ' ' ) : canvas . plot_value ( x , y , value , colour = value ) plotted = 1 if not plotted : canvas . plot_value ( x , y , value ) return
Plot the data in the matrix on the canvas
Plot the data in the matrix on the canvas
"""Plot the data in the matrix on the canvas""" # # Set the axis labels #
self
matrix
canvas
tagname
diffmode