Changeset 8435:4f4a95274e49 in orange


Ignore:
Timestamp:
07/24/11 10:54:21 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
13c5351bb216004e4b7e33474f7acc886a8dc007
Message:

Decrease margins around the graph and remove some debug output

Files:
3 edited

Legend:

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

    r8432 r8435  
    124124    def update(self, zoom_only = False): 
    125125        if not self.graph_line or not self.scene(): 
    126             qDebug('OWAxis.update(): No line or scene') 
    127126            return 
    128127        self.line_item.setLine(self.graph_line) 
     
    206205            item.setTextWidth( QLineF(self.map_to_graph(pos - hs), self.map_to_graph(pos + hs) ).length() ) 
    207206            if self.title_above: 
    208                 label_pos = label_pos + (v.p2() - v.p1())*40 
     207                label_pos = label_pos + (v.p2() - v.p1())*30 
    209208            item.setPos(label_pos) 
    210209            item.setRotation(-self.graph_line.angle()) 
  • orange/OrangeWidgets/plot/owplot.py

    r8431 r8435  
    107107        self._legend.setZValue(1.0) 
    108108        self.axes = dict() 
    109         self.axis_margin = 80 
    110         self.title_margin = 50 
    111         self.graph_margin = 30 
     109        self.axis_margin = 50 
     110        self.title_margin = 40 
     111        self.graph_margin = 20 
    112112        self.mainTitle = None 
    113113        self.showMainTitle = False 
  • source/orangeplot/plot.cpp

    r8433 r8435  
    3434void Plot::removeItem(PlotItem* item) 
    3535{ 
    36     qDebug() << "Removing item" << item << "with parent" << item->parentItem(); 
    3736    if (m_items.contains(item)) 
    3837    { 
Note: See TracChangeset for help on using the changeset viewer.