#1056 Bug, SymbolAxis not drawing gridband when inverted


Using a SymbolAxis as domain axis on a horizontal plot, the gridband bars are drawn with default setup. But if the axis is set to be inverted, the gridbands do not show up. The bug appears to be that the band heights are computed as negatives so the rectangle does not draw.

A sort-of workaround is to turn off the symbol axis gridbands and set the XYPlot.setDomainTickBandPaint(paint), with the difference being the bands are lined up between tick marks instead of centered on tick marks.

Sample program that shows the problem is attached.


  • Steve Brophy

    Steve Brophy - 2011-10-23

    Program to demonstrate symbol axis bug.

  • David Gilbert

    David Gilbert - 2014-03-19

    Thanks for the demo app to reproduce the bug. I've fixed it for the upcoming 1.0.18 release (better late than never).

    Best regards,


  • David Gilbert

    David Gilbert - 2014-03-19
    • labels: General --> General, 1.0.x
    • status: open --> closed-fixed
    • assigned_to: David Gilbert
    • Group: --> 1.0.x

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks