Changeset 8767:62dad3ebb688 in orange


Ignore:
Timestamp:
08/24/11 17:40:00 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
369baaaa45ed6a6fd4a2ba861a0148505fd5b2fd
Message:

Add space for distribution bars on the right most column if needed.
Fixes #928.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize/OWParallelGraph.py

    r8042 r8767  
    7979 
    8080            if self.autoUpdateAxes: 
    81                 self.setAxisScale(QwtPlot.xBottom, 0, len(attributes)-1, 1) 
     81                if attributes and isinstance(self.dataDomain[attributes[-1]], orange.EnumVariable): 
     82                    self.setAxisScale(QwtPlot.xBottom, -0.1, len(attributes) - 0.4, 1) 
     83                else: 
     84                    self.setAxisScale(QwtPlot.xBottom, -0.1, len(attributes) - 0.9, 1) 
    8285            else: 
    8386                m = self.axisScaleDiv(QwtPlot.xBottom).interval().minValue() 
Note: See TracChangeset for help on using the changeset viewer.