Changeset 8964:04f7f0600f0a in orange


Ignore:
Timestamp:
09/14/11 11:28:31 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
899d8fe56bf219b38a8212c6929d67e56cc828ab
Message:

Determine whether axis label should be rotated according to the plot size rather than a fixed value

File:
1 edited

Legend:

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

    r8963 r8964  
    347347    def should_be_expanded(self): 
    348348        self.update_ticks() 
    349         return self.id in YAxes or self.always_horizontal_text or sum(len(t[1]) for t in self._ticks) > 60 
    350  
     349        return self.id in YAxes or self.always_horizontal_text or sum(len(t[1]) for t in self._ticks) * 12 > self.plot.width() 
     350 
Note: See TracChangeset for help on using the changeset viewer.