Changeset 8620:c47e436a8c3a in orange


Ignore:
Timestamp:
08/05/11 18:14:21 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
61ead7d84446403114c36c0cfc116e2c0318866f
Message:

Port Parallel Coordinates to OWPlot

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owtools.py

    r8617 r8620  
    229229        self._item.setFont(f) 
    230230        self._item.setPos(x, y) 
    231         if color: 
    232             self._item.setPen(QPen(color)) 
    233         if brushColor: 
    234             self._item.setBrush(QBrush(brushColor)) 
    235231             
    236232    def update_properties(self): 
     
    349345                path.lineTo(rect.right(), pos) 
    350346        self._path_item.setPath(self.graph_transform().map(path)) 
     347         
  • source/orangeplot/curve.cpp

    r8615 r8620  
    1212Curve::Curve(const QList< double >& x_data, const QList< double >& y_data, QGraphicsItem* parent, QGraphicsScene* scene): PlotItem(parent, scene) 
    1313{ 
    14     m_autoUpdate = true; 
     14    // Don't make any calls to update_properties() until the constructor is finished 
     15    // Otherwise, the program hangs if this is called from a subclass constructor 
     16    m_autoUpdate = false;  
     17     
    1518    m_style = NoCurve; 
    1619    m_continuous = false; 
     
    1821    m_needsUpdate = UpdateAll; 
    1922    set_data(x_data, y_data); 
    20     checkForUpdate(); 
     23     
     24    m_autoUpdate = true; 
    2125} 
    2226 
Note: See TracChangeset for help on using the changeset viewer.