Deleting points from a curve dynamically
hi,
i'm relatively new to programming using qwt. I'm working on a graphical tool that calculates the goodness of fit , as in curve fitting problems.
I am using qwtplotcurve for plotting the points and it is working fine. but i need to implement a functionality that enables the user to select and delete the displayed point(s). Whichever he/she wishes to delete. once that is done , i need to replot and proceed with the algorithm.. Could someone please advice me or post a sample code for the same. thanking you in anticipation !
I need to delete certain points from the screen .. and then replot the remaining points !!
Re: Deleting points from a curve dynamically
What about using picker click machine? Find nearest point of curve to your cursor position, get index of curve's point. Make workaround on curve's Data, set new data to curve and then replot.
Re: Deleting points from a curve dynamically
hey thanks for the reply !! I I tried to use the qwtplotpicker's selected signal for it .. if there is a better way please tell me !! thanks