Changeset 8567:95dbb907a02e in orange


Ignore:
Timestamp:
08/02/11 09:23:50 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
a0cf078648a00769f476f8ac39b5074251875f7d
Message:

Temporarily fixed zooming jittered data, needs refactoring

Location:
orange/OrangeWidgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWScatterPlot3D.py

    r8566 r8567  
    197197        self.data = None 
    198198        self.subsetData = None 
     199        self.data_array_jittered = None 
    199200        self.resize(1100, 600) 
    200201 
     
    246247                self.plot.remove_all_selections() 
    247248                return 
    248             X, Y, Z = self.data_array[:, self.x_attr],\ 
    249                       self.data_array[:, self.y_attr],\ 
    250                       self.data_array[:, self.z_attr] 
     249            # TODO: refactor this properly 
     250            if self.data_array_jittered: 
     251                X, Y, Z = self.data_array_jittered 
     252            else: 
     253                X, Y, Z = self.data_array[:, self.x_attr],\ 
     254                          self.data_array[:, self.y_attr],\ 
     255                          self.data_array[:, self.z_attr] 
    251256            X = [X[i] for i in indices] 
    252257            Y = [Y[i] for i in indices] 
     
    516521            if self.z_attr_discrete or self.jitter_continuous: 
    517522                Z += (numpy.random.random(len(Z))-0.5) * (self.jitter_size * z_range / 100.) 
     523            self.data_array_jittered = (X, Y, Z) 
    518524        return X, Y, Z, None 
    519525 
  • orange/OrangeWidgets/plot/owprimitives3d.py

    r8566 r8567  
    102102    file_name = symbol_edge_map[symbol] 
    103103    file_name = os.path.join(os.path.dirname(__file__), file_name) 
    104     print(file_name) 
    105104    lines = open(file_name).readlines() 
    106105    vertices_lines = filter(lambda line: line.startswith('v'), lines) 
Note: See TracChangeset for help on using the changeset viewer.