From: Arjen M. <arj...@wl...> - 2005-05-23 06:42:43
|
fred wrote: > > > Thanks for the quick reply. Alan's suggestion does > indeed work. For documentary completeness, wxPlot > overrides plPlot->col, so that > plPlot->col( PLINT ) => col0 > and plPlot->col( PLFLT ) =>col1 > > As for the speed, I was expecting that a function call > such as: > myPlot->poin( NUM_POINTS, x, y, 1 ) > > would be faster than calling poin() individually on > each point. I think that wxWidgets does do a screen > update on each call to myPlot->poin(), and this slows > things down a bit (I'm graphing ~O(10^5)). > Nonetheless, the overhead is certainly acceptable for > my purposes, if not ideal. > With that many data points, a contouring solution would be cumbersome - you would have to interpolate using a lot of points and you would not gain much quality. If the overhead is still acceptable, so much the better! On the other hand, a screen update on every graphics call seems an exaggeration to me ... but I do not know anything in particular about wxWorks. Regards, Arjen |