final double xoff = (dmax > 1) ? .1 : 0.;
final double hheight = .5;
final double lheight = .1;
PlotItem master = new PlotItem(dmax + xoff, hheight + lheight, null);
for(int d1 = 0; d1 < dmax; d1++) {
Projection1D proj = new Simple1D(scales, d1 + 1);
final PlotItem it = new PlotItem(d1 + xoff, lheight, 1., hheight, proj);
it.visualizations = tasks;
master.subitems.add(it);
}
layout.add(master);