Combined plot for more than 3 plots

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mfalcon
Posts: 1
Joined: Tue Feb 06, 2018 7:08 pm
antibot: No, of course not.

Combined plot for more than 3 plots

Post by mfalcon » Tue Feb 06, 2018 8:44 pm

Hello

I need to make a combined plot for 6 different plots. I have searched for any tutorial about how to make this. the only tutorial that I found was this:
http://www.java2s.com/Code/Java/Chart/J ... tDemo3.htm

but there are 2 problems in this
1- I need 6 plots, 3 in the first row and 3 in the second row, while the tutorial shows only 3 plots in one row.
2- The plots that are made in tutorial are all having same vertical axis name, which is not my case, as every plot has different vertical axis name.

Is there some tutorial to help me in what I want to do? or it is a limitation that is in jFreechart and can not be avoided?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Combined plot for more than 3 plots

Post by John Matthews » Wed Feb 07, 2018 7:06 pm

Add your charts to a container having a suitable layout: GridPane is shown here, and GridLayout is shown here.

Locked