[reportlab-users] [PATCH] Missing labels from HorizontalBarChart

Matt Folwell mjf at pearson.co.uk
Wed Oct 28 12:14:16 EDT 2009

I had a VerticalBarChart with no ticks drawn on the category axis. When
I replaced it with an otherwise identical HorizontalBarChart, the labels
disappeared from the category axis.

When checking whether the labels should be drawn, the
YCategoryAxis.makeTickLabels tests self.visibleTicks, where it should
test self.visibleTicks (as XCategoryAxis does)

I've attached a trivial patch to fix this.

Matt Folwell

Senior Programmer
Pearson Publishing Ltd
Chesterton Mill, French's Road, Cambridge CB4 3NP
Tel: 01223 350555 Fax: 01223 356484 http://www.pearsonpublishing.co.uk/
Registered in England No 2853229
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: horizontal_bar_graph_labels.patch
Url: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20091028/3ed0146d/attachment.ksh>

More information about the reportlab-users mailing list