d17c95dd266ae47b9bc552165319405ef7f90f51,examples/basic/scatter_custom_marker.py,PlotFrame,_create_window,#PlotFrame#,32

Before Change


        marker = self.make_custom_marker()

        // Create a plot data obect and give it this data
        pd = ArrayPlotData()
        pd.set_data("index", x)
        pd.set_data("value", y)

        // Create the plot
        plot = Plot(pd)
        plot.plot(("index", "value"),
                  type="scatter",
                  marker="custom",
                  custom_symbol=marker,
                  index_sort="ascending",
                  color="orange",
                  marker_size=3,
                  bgcolor="white")

        // Tweak some of the plot properties
        plot.title = "Scatter plot with custom markers"
        plot.line_width = 0.5
        plot.padding = 50

        // Attach some tools to the plot
        plot.tools.append(PanTool(plot, constrain_key="shift"))
        zoom = ZoomTool(component=plot, tool_mode="box", always_on=False)
        plot.overlays.append(zoom)

        // Return a window containing our plots
        return Window(self, -1, component=plot, bg_color="lightgray")

After Change



    def _create_window(self):
        // Return a window containing our plots
        return Window(self, -1, component=_create_plot_component(),
                      bg_color=bg_color)
    
if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: enthought/chaco
Commit Name: d17c95dd266ae47b9bc552165319405ef7f90f51
Time: 2009-01-29
Author: vibha@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/basic/scatter_custom_marker.py
Class Name: PlotFrame
Method Name: _create_window


Project Name: enthought/chaco
Commit Name: d17c95dd266ae47b9bc552165319405ef7f90f51
Time: 2009-01-29
Author: vibha@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/basic/scatter.py
Class Name: PlotFrame
Method Name: _create_window


Project Name: enthought/chaco
Commit Name: d17c95dd266ae47b9bc552165319405ef7f90f51
Time: 2009-01-29
Author: vibha@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/basic/scatter_custom_marker.py
Class Name: PlotFrame
Method Name: _create_window


Project Name: enthought/chaco
Commit Name: d17c95dd266ae47b9bc552165319405ef7f90f51
Time: 2009-01-29
Author: vibha@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/basic/regression.py
Class Name: PlotFrame
Method Name: _create_window