Changeset 8318:fc1dfafce9e0 in orange


Ignore:
Timestamp:
06/14/11 18:28:10 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
c45903b64a697622e7bd156dbf66b124a9f3f358
Message:

Prevent flickering during zoom animation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGraphQt.py

    r8316 r8318  
    3232        This method is not defined here, it is up to subclasses to implement it.  
    3333        It should send selected examples to the next widget 
     34         
     35    .. method add_curve(name, attributes, ...) 
     36        Attributes is a map of { point_property: ("data_property", value) }, for example  
     37            { PointColor : ("building_type", "house"), PointSize : ("age", 20) } 
    3438""" 
    3539 
     
    6266Star2 = 13 
    6367Hexagon = 14 
    64 UserStyle = 1000  
     68UserStyle = 1000 
     69 
     70PointColor = 1 
     71PointSize = 2 
     72PointSymbol = 4 
    6573 
    6674from Graph import * 
     
    129137        self.curves = [] 
    130138        self.data_range = {xBottom : (0, 1), yLeft : (0, 1)} 
    131         self.addAxis(xBottom, False) 
    132         self.addAxis(yLeft, True) 
     139        self.add_axis(xBottom, False) 
     140        self.add_axis(yLeft, True) 
    133141         
    134142        self.map_transform = QTransform() 
     
    287295        return c 
    288296         
    289     def addAxis(self, axis_id, title_above = False): 
     297    def plot_data(self, xData, yData, colors, labels, shapes, sizes): 
     298        pass 
     299         
     300    def add_axis(self, axis_id, title_above = False): 
    290301        self.axes[axis_id] = axis.Axis(axis_id, title_above) 
    291302     
     
    386397        for item, region in self.selection_items: 
    387398            item.setTransform(self.zoom_transform) 
    388         self.setSceneRect(self.canvas.itemsBoundingRect()) 
    389          
    390399         
    391400    def update_axes(self, axis_rects): 
Note: See TracChangeset for help on using the changeset viewer.