Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] New topic in forum Nebula, called bug dataprovider of xygraph, by Esteban Avila

Title: Eclipse Community Forums
Subject: bug dataprovider of xygraph Author: Esteban Avila Date: Wed, 10 September 2014 14:00
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.
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top