Ignore:
Timestamp:
06/17/12 14:56:43 (22 months ago)
Author:
mstajdohar
Branch:
default
Message:

Added a margin around graph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/networkcurve.cpp

    r10922 r10923  
    996996            QRectF r1 = plot()->data_rect_for_axes(axes_.first, axes_.second); 
    997997 
     998            double dx = r1.width() / 20.0; 
     999            double dy = r1.height() / 20.0; 
     1000            r1.adjust(-dx, -dy, dx, dy); 
     1001 
    9981002            QTransform tr1 = QTransform().translate(-r1.left(), -r1.top()); 
    9991003            QTransform ts = QTransform().scale(r2.width()/r1.width(), r2.height()/r1.height()); 
Note: See TracChangeset for help on using the changeset viewer.