Esempio n. 1
0
    def _rebuild_contour(self, x, y, z, r, reg):

        g = ContourGraph(container_dict={'kind': 'h'})
        self.graph = g

        p = g.new_plot(xtitle='X', ytitle='Y')

        ito = IrradiationTrayOverlay(component=p,
                                     geometry=self.geometry,
                                     show_labels=self.tool.show_labels)
        self.irradiation_tray_overlay = ito
        p.overlays.append(ito)

        m = self._model_flux(reg, r)
        s, p = g.new_series(z=m,
                            xbounds=(-r, r),
                            ybounds=(-r, r),
                            levels=self.tool.levels,
                            cmap=self.tool.color_map_name,
                            colorbar=True,
                            style='contour')
        g.add_colorbar(s)

        # pts = vstack((x, y)).T
        s = g.new_series(x, y,
                         z=z,
                         style='cmap_scatter',
                         color_mapper=s.color_mapper,
                         marker='circle',
                         marker_size=self.tool.marker_size)
        self.cmap_scatter = s[0]
Esempio n. 2
0
    def _rebuild_contour(self, x, y, z, r, reg):

        g = ContourGraph(container_dict={'kind': 'h'})
        self.graph = g

        p = g.new_plot(xtitle='X', ytitle='Y')

        ito = IrradiationTrayOverlay(component=p,
                                     geometry=self.geometry,
                                     show_labels=self.tool.show_labels)
        self.irradiation_tray_overlay = ito
        p.overlays.append(ito)

        m = self._model_flux(reg, r)
        s, p = g.new_series(z=m,
                            xbounds=(-r, r),
                            ybounds=(-r, r),
                            levels=self.tool.levels,
                            cmap=self.tool.color_map_name,
                            colorbar=True,
                            style='contour')
        g.add_colorbar(s)

        # pts = vstack((x, y)).T
        s = g.new_series(x,
                         y,
                         z=z,
                         style='cmap_scatter',
                         color_mapper=s.color_mapper,
                         marker='circle',
                         marker_size=self.tool.marker_size)
        self.cmap_scatter = s[0]
Esempio n. 3
0
    def _rebuild_contour(self, x, y, r, reg):

        g = ContourGraph(container_dict={'kind': 'h'})
        self.graph = g

        p = g.new_plot(xtitle='X', ytitle='Y')

        ito = IrradiationTrayOverlay(component=p, geometry=self.geometry)
        p.overlays.append(ito)

        g.new_series(x, y, type='scatter', marker='circle')

        m = self._model_flux(reg, r)
        s, p = g.new_series(z=m,
                            xbounds=(-r, r),
                            ybounds=(-r, r),
                            levels=self.tool.levels,
                            cmap=self.tool.color_map_name,
                            colorbar=True,
                            style='contour')
        g.add_colorbar(s)
Esempio n. 4
0
    def _rebuild_contour(self, x, y, r, reg):

        g = ContourGraph(container_dict={'kind': 'h'})
        self.graph = g

        p = g.new_plot(xtitle='X', ytitle='Y')

        ito = IrradiationTrayOverlay(component=p,
                                     geometry=self.geometry)
        p.overlays.append(ito)

        g.new_series(x, y, type='scatter',
                     marker='circle')

        m = self._model_flux(reg, r)
        s, p = g.new_series(z=m,
                            xbounds=(-r, r),
                            ybounds=(-r, r),
                            levels=self.tool.levels,
                            cmap=self.tool.color_map_name,
                            colorbar=True,
                            style='contour')
        g.add_colorbar(s)
    def _graph_contour(self, x, y, z, r, reg, refresh):

        g = self.graph
        if not isinstance(g, ContourGraph):
            g = ContourGraph(container_dict={'kind': 'h',
                                             'bgcolor': self.plotter_options.bgcolor})
            self.graph = g
        else:
            g.clear()

        p = g.new_plot(xtitle='X', ytitle='Y')

        ito = IrradiationTrayOverlay(component=p,
                                     geometry=self.geometry,
                                     show_labels=self.show_labels)
        self.irradiation_tray_overlay = ito
        p.overlays.append(ito)

        m = self._model_flux(reg, r)
        s, p = g.new_series(z=m,
                            xbounds=(-r, r),
                            ybounds=(-r, r),
                            levels=self.levels,
                            cmap=self.color_map_name,
                            colorbar=True,
                            style='contour')
        g.add_colorbar(s)

        # pts = vstack((x, y)).T
        s = g.new_series(x, y,
                         z=z,
                         style='cmap_scatter',
                         color_mapper=s.color_mapper,
                         marker='circle',
                         marker_size=self.marker_size)
        self.cmap_scatter = s[0]
Esempio n. 6
0
 def _graph_default(self):
     g = ContourGraph(container_dict={'kind': 'h'})
     g.new_plot(xtitle='X', ytitle='Y')
     g.add_colorbar()
     return g
Esempio n. 7
0
 def _graph_default(self):
     g = ContourGraph(container_dict={'kind': 'h'})
     g.new_plot(xtitle='X', ytitle='Y')
     g.add_colorbar()
     return g