Exemple #1
0
    def _get_image(self):
        arr = numpy.zeros(
            dtype=numpy.uint32,
            shape=(self.size_x, self.size_y))

        rslt = mandelbrot(
            arr,
            self.x_lbound,
            self.x_ubound,
            self.y_lbound,
            self.y_ubound,
            1000)

        return arr
Exemple #2
0
    def __init__(self):
        super(LinePlot, self).__init__()

        self.size_x = 800
        self.size_y = 600

        arr = numpy.zeros(dtype=numpy.uint32, shape=(self.size_x, self.size_y))
        rslt = mandelbrot(
            arr,
            self.x_lbound,
            self.x_ubound,
            self.y_lbound,
            self.y_ubound,
            1000)

        self.plotdata = ArrayPlotData(imagedata=self._get_image())

        plot = Plot(self.plotdata)
        plot.img_plot("imagedata", colormap=jet)

        self.plot = plot