Ticket #11 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Y axis label overlaps tick labels

Reported by: jae@… Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

The Y axis label overlaps the tick labels if the tick labels are NOT rotated. You can replicate this bug by simply removing the Y axis rotation in the barchart.py example. After running you can see it in vbarchart.png.

The problem appears to be not taking the ticksize and padding into account for the width calculations in _getTickSize(). You do it for height, which is why this doesn't happen for the X axis label, but not the width.

I've attached a simple patch that does this for the width.

The patch also removes a double variable (tickHeight was set twice).

Attachments

pycha-0.3.0.patch (0.7 kB) - added by jae@… 4 years ago.
Patch against pycha 0.3.0 chart.py

Change History

Changed 4 years ago by jae@…

Patch against pycha 0.3.0 chart.py

Changed 4 years ago by lgs

  • status changed from new to closed
  • resolution set to fixed

Thanks for the patch!

It's commited in revision [93]

Note: See TracTickets for help on using tickets.