Hi to all.

I'm plotting a Trace into a XYGraph. I implemented a update method of the 
provider.

The problem is that i need run twice times the update method because in the 
first run the trace is Overplotting.

Here code my trace is Overplotting.

public void UpdateGraph(double[] datax, double[] datay)
{  dataProvider[0].clearTrace();
  dataProvider[0].setCurrentXDataArray(datax);
  dataProvider[0].setCurrentYDataArray(datay);  
}

Here works fine

public void UpdateGraph(double[] datax, double[] datay)
{  dataProvider[0].clearTrace();
for (int i = 0; i < 2; i++) { dataProvider[0].setCurrentXDataArray(datax);
    dataProvider[0].setCurrentYDataArray(datay);        
  }
}

Thanks.
To participate in the discussion, go here: 
https://www.eclipse.org/forums/index.php?t=rview&frm_id=64
_______________________________________________
nebula-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to