Graphics grap = chart.getGraphics();
grap.setColor(Color.GRAY);
grap.fillRect(0, 0, WIDTH_TOT * model.getMatrix().getNumVariables() + 1, HEIGHT_TOT * model.getMatrix().getNumVariables() + 1);
grap.drawImage(chart, 0, 0, null);
//SwingWorker worker = new SwingWorker()
TimeConsumingWorker worker = new TimeConsumingWorker(new ProgressMonitorShow(DispMatrix.this, "Plotting scatters...", 1)) {
@Override
public Object construct() {
//doWork();
Graphics g = chart.getGraphics();
VariableNumber Elenco[] = model.getMatrix().getVariables();