Ticket #11: pycha-0.3.0.patch

File pycha-0.3.0.patch, 0.7 kB (added by jae@…, 4 years ago)

Patch against pycha 0.3.0 chart.py

  • src/chart.py

    diff -r -u pycha-0.3.0.orig/src/chart.py pycha-0.3.0/src/chart.py
    old new  
    382382        tickExtents = [cx.text_extents(unicode(tick[1]))[2:4] for tick in ticks] 
    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) 
    388389            if rotate: