swift - How to insert a symbol at previous index for CorePlot real-time plotting? -
as title, want insert symbol @ previous index real-time plotting image below.
i have computation in order location of peak value symbol index(e.g. index = 1) , real-time scatter index (e.g. idx = 5) not same.
how add symbol in previous index?
please me, thanks!!
use plot's -insertdataatindex:numberofrecords:
method add data. starting index can between 0 (to add data before of existing data) , number of existing data points (to add data @ end). if add new points before existing ones, existing ones shifted on make room. keep in mind if reload plot data after inserting new points—the indices of old points change.
Comments
Post a Comment