Used to draw graphics on Xamarin Oxyplot.Forms . The graph is drawn correctly and the content is updated. However, I can not completely clean the content. The InvalidatePlot(true) method perfectly updates the interface if new points are added, but how can I reset the built Axies ?

I delete all points from the model, add new ones, call InvalidatePlot(true) , add new points, but the previous Axies remains.

    1 answer 1

    To update completely smash sorts the schedule itself. Those. not specific points, but the whole model.

    • When you re-enter the page, I re-create the model and plotview, but a new plotview with the old axies is created - user2700126
    • If the memory is not deceiving, there is a Plot property that contains both axes, plus the actual points of the graph. This is exactly the Plot you need to kill, in the case of WPF, to notify the form. In WinForm how it is done - without a clue. - Monk
    • Here is my question on the gita with them. The code is transparent. github.com/oxyplot/oxyplot/issues/676 - user2700126
    • > Then I should reset all plotview, clear chart and start new graphic. I do this. Instead, simply re-create plotview. - Monk
    • Yes, as far as I understand, the creation of a new control should not save the parameters of the old one. What should I do? - user2700126