Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::Graphics::Comparative::ComparativeScatterPlot::_find_min_max (   self,
  info 
) [private]

Find the min and max for the x and y coordinates in the given data.

Definition at line 144 of file Comparative.py.

00144                                  :
        """Find the min and max for the x and y coordinates in the given data.
        """
        x_min = info[0][0][0]
        x_max = info[0][0][0]
        y_min = info[0][0][1]
        y_max = info[0][0][1]

        for two_d_list in info:
            for x, y in two_d_list:
                if x > x_max:
                    x_max = x
                if x < x_min:
                    x_min = x
                if y > y_max:
                    y_max = y
                if y < y_min:
                    y_min = y

        return x_min, x_max, y_min, y_max
        return x_min, x_max, y_min, y_max


Generated by  Doxygen 1.6.0   Back to index