Details
Description
The text alignment code in graphlib has a bug that messes up the alignment of x axis lables when some have descenders, like 'May', and others don't, like 'Jun'.
The issue is that gd draws text base-line aligned, but the graphlib measurement code measures to the bottom of the bounding box, not the baseline of the text.
I think the attached simple patch is the correct fix.
Attachments
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
Looks good, if it works for you I say check it in! Thanks!