Changeset 93

Show
Ignore:
Timestamp:
07/19/08 02:14:30 (4 years ago)
Author:
lgs
Message:

Do not overlap Y axis label with tick labels. Patch by jae_AT_zhar.net. Fixes #11

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES.txt

    r92 r93  
    440.3.1 (unreleased) 
    55------------------ 
    6 - ... 
     6- Do not overlap Y axis label when ticks label are not rotated (John Eikenberry) 
    77 
    880.3.0 (2008-03-22) 
  • trunk/src/chart.py

    r85 r93  
    383383        tickWidth = tickHeight = 0.0 
    384384        if tickExtents: 
    385             tickHeight = tickHeight = self.options.axis.tickSize + 4.0 
     385            tickHeight = self.options.axis.tickSize + 4.0 
     386            tickWidth = self.options.axis.tickSize + 4.0 
    386387            widths, heights = zip(*tickExtents) 
    387388            maxWidth, maxHeight = max(widths), max(heights) 
     
    395396            tickHeight += maxHeight 
    396397        return tickWidth, tickHeight 
    397          
     398 
    398399    def _renderAxisLabel(self, cx, tickWidth, tickHeight, label, x, y, vertical=False): 
    399400        cx.new_path()