Skip to main content



      Home
Home » Eclipse Projects » Nebula » bug dataprovider of xygraph
bug dataprovider of xygraph [message #1420937] Wed, 10 September 2014 14:00
Eclipse UserFriend
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.
Previous Topic:Grid row height with image in last column
Next Topic:Grid: Open event only on the first column
Goto Forum:
  


Current Time: Fri May 02 14:59:30 EDT 2025

Powered by FUDForum. Page generated in 0.03504 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top