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

def Bio::Graphics::Comparative::ComparativeScatterPlot::_draw_scatter_plot (   self,
  cur_drawing,
  x_start,
  y_start,
  x_end,
  y_end 
) [private]

Draw a scatter plot on the drawing with the given coordinates.

Definition at line 87 of file Comparative.py.

                                        :
        """Draw a scatter plot on the drawing with the given coordinates.
        """
        scatter_plot = LinePlot()

        # set the dimensions of the scatter plot
        scatter_plot.x = x_start
        scatter_plot.y = y_start
        scatter_plot.width = abs(x_start - x_end)
        scatter_plot.height = abs(y_start - y_end)

        scatter_plot.data = self.display_info

        scatter_plot.joinedLines = 0

        # set the axes of the plot
        x_min, x_max, y_min, y_max = self._find_min_max(self.display_info)
        scatter_plot.xValueAxis.valueMin = x_min
        scatter_plot.xValueAxis.valueMax = x_max
        scatter_plot.xValueAxis.valueStep = (x_max - x_min) / 10.0

        scatter_plot.yValueAxis.valueMin = y_min
        scatter_plot.yValueAxis.valueMax = y_max
        scatter_plot.yValueAxis.valueStep = (y_max - y_min) / 10.0

        self._set_colors_and_shapes(scatter_plot, self.display_info)
        
        cur_drawing.add(scatter_plot)

    def _set_colors_and_shapes(self, scatter_plot, display_info):


Generated by  Doxygen 1.6.0   Back to index