These are chat archives for oxyplot/oxyplot

22nd
Jul 2015
Martin Votruba
@Skokan44
Jul 22 2015 08:41
Hi All, I would like to ask if there is any way how to fit the plot view to the displayed data. My problem is that if I move around the plot before first line is added the data are not automatically centred on the screen. Could anyone help me please?
Xavier Hahn
@Gimly
Jul 22 2015 14:01

@Skokan44 you can try calling

PlotModel.ResetAllAxes();
PlotModel.InvalidatePlot(false);

This should trigger the centering and zooming of your view to your data

Martin Votruba
@Skokan44
Jul 22 2015 14:20
Thanks! The PlotModel.ResetAllAxes(); solved my problem :)