How to enable grid lines in combined xy plots.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kumar

How to enable grid lines in combined xy plots.

Post by kumar » Fri Aug 16, 2002 5:52 pm

Hi,

I have created a combined xy plot with x axis being HorizonatlDateAxis and y axis being VerticalNumberAxis. But, I could not see the grid lines for the date axis. How to enble them?. ( Though I did setgridLinesVisible(true) for HorizontalDateAxis, It's not solved).

Thanks,
Kumar

David Mechner

Re: How to enable grid lines in combined xy plots.

Post by David Mechner » Sun Aug 18, 2002 11:02 pm

Hi,

I'm having the same problem. I also noticed that the vertical grid lines seem to be drawn /behind/ the two plot areas (at any rate, I can see them in the gap between the two vertically aranged subplots, but not on the plots themselves). You can see this more clearly by setting the combined plot's gap to be wide.

Any help would be much appreciated.

Thanks,
-David Mechner

David Gilbert

Re: How to enable grid lines in combined xy plots.

Post by David Gilbert » Mon Aug 19, 2002 9:04 am

A workaround has been committed to CVS already, that draws the grid lines in front of the plot backgrounds. But this still draws over the gaps between the subplots.

In the longer term, the code will get modified so that the subplots draw the gridlines themselves rather than leaving this to the (shared) axis.

Regards,

DG.

Locked