~ubuntu-branches/ubuntu/trusty/guiqwt/trusty

« back to all changes in this revision

Viewing changes to guiqwt/tests/mandelbrot.py

  • Committer: Bazaar Package Importer
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2011-04-07 22:41:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110407224150-kkhppnq7rp2c8b3c
Tags: 2.1.0-1
* Imported Upstream version 2.1.0
* debian/patches/
  - 0001-features-01_bts614083.patch (delete)
  - 0001-feature-fix-the-documentation-build.patch (new)
* add and install the sift desktop file
* recommends python-dicom (Closes: #621421)
  thanks Junqian Gordon Xu for the report

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
from guiqwt.config import _
17
17
from guiqwt.plot import ImageDialog
18
 
from guiqwt.image import ImageItem
 
18
from guiqwt.image import RawImageItem
19
19
from guiqwt.tools import ToggleTool
20
20
 
21
21
from guiqwt._mandel import mandel
39
39
    def update_status(self, plot):
40
40
        self.action.setChecked(self.image.IMAX == self.maxprec)
41
41
 
42
 
class MandelItem(ImageItem):
 
42
class MandelItem(RawImageItem):
43
43
    def __init__(self, xmin, xmax, ymin, ymax):
44
44
        super(MandelItem, self).__init__(np.zeros((1, 1), np.int16, order='F'))
45
45
        self.bounds = QRectF(QPointF(xmin, ymin),
86
86
 
87
87
if __name__ == "__main__":
88
88
    import guidata
89
 
    guidata.qapplication()
 
89
    _app = guidata.qapplication()
90
90
    mandel()