예제 #1
0
    def __init__(self,
                 parent,
                 cache_file="data/hilbert.npz",
                 naming_fields=None):
        EGraphicsView.__init__(self, parent, auto_frame=False)
        IVIANVisualization.__init__(self, naming_fields)
        self.naming_fields['plot_name'] = "color_histogram"

        self.has_context_menu = True
        # self.view = EGraphicsView(self, auto_frame=False)
        self.setLayout(QVBoxLayout(self))
        # self.layout().addWidget(self.view)
        self.items = []

        # self.plt = pg.PlotItem()
        # self.view.addItem(self.plt)

        self.qimage = None
        if not os.path.isfile(cache_file):
            self.table, self.colors = create_hilbert_transform(16)
            np.savez(cache_file, table=self.table, colors=self.colors)
        else:
            d = np.load(cache_file)
            self.table = (d['table'][0], d['table'][1], d['table'][2])
            self.colors = d['colors']

        self.raw_data = None

        self.plot_floor = True
        self.plot_zeros = False
        self.normalize = True
        self.draw_grid = False
        self.plot_log = True
예제 #2
0
 def __init__(self, parent, naming_fields=None):
     EGraphicsView.__init__(self, parent)
     IVIANVisualization.__init__(self, naming_fields)
     self.naming_fields['plot_name'] = "palette_barcode_plot"
     self.times = None
     self.palette = None
     self.depth = 0
     self.image = None
     self.show_grid = False
     self.sorting = "Cluster"
     self.setAttribute(Qt.WA_OpaquePaintEvent)
     self.resolution = 1
예제 #3
0
    def __init__(self, parent, max=1.0, allow_hover=True, naming_fields=None):
        EGraphicsView.__init__(self, parent, auto_frame=False)
        IVIANVisualization.__init__(self, naming_fields)
        self.naming_fields['plot_name'] = "matrix_plot"
        self.dot_size = 1.0
        self.total_width = 1000
        self.max = max
        self.items = []
        self.setScene(QGraphicsScene(self))
        self.use_gray = True
        self.hover_frame = None
        self.allow_hover = allow_hover

        self.matrix = None