Data2Dynamics / d2d

a modeling environment tailored to parameter estimation in dynamical systems
https://github.com/Data2Dynamics/d2d
57 stars 28 forks source link

Likelihood in plot not updated during fitting (ar.config.showFitting=1) #85

Closed mschilling10 closed 7 years ago

mschilling10 commented 7 years ago

If ar.config.useNewPlots=1 and ar.config.showFitting=1, the likelihood that is written in the plot of the observation functions is not updated after each iteration. This is working if ar.config.useNewPlots=0. It would be nice if somebody could fix this as I need this feature for teaching purposes.

JoepVanlier commented 7 years ago

I've committed a temporary hotfix for this, which forces a 'slow' redraw of the plot when useNewPlots is set to 1 and a fitting animation is requested. This means that this will result in slower plotting than when using the old plots however. The problem here is that arPlot2 doesn't update the text labels and doesn't store them (so it's not that easily fixed).

JoepVanlier commented 7 years ago

Forced slower plotting when using fitting animation and the new plots.