int plotSizex = w / nx;
int plotSizey = h / ny;
Rectangle2D rect = new Rectangle2D.Double();
// Plot each variable
for( Variable var : fb.variablesSorted() ) {
// Rectangle2D rect = new Rectangle2D.Double(posx, posy, plotSizex, plotSizey); // Define where this variable should be plotted
rect.setFrame(posx, posy, plotSizex, plotSizey);
JFreeChart chart = var.chart(false);
chart.draw((Graphics2D) g, rect);