Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed-up and restructure plotting #105

Open
5 tasks
chipmuenk opened this issue Dec 30, 2017 · 0 comments
Open
5 tasks

Speed-up and restructure plotting #105

chipmuenk opened this issue Dec 30, 2017 · 0 comments

Comments

@chipmuenk
Copy link
Owner

chipmuenk commented Dec 30, 2017

  • Currently, ax.clear() is called before each plot, slowing down redraw considerably. This should only happen in init_axes() which needs to be called during initialization and when important plot settings (like the number of data points or subplots) have changed. Current status is
    self.ax.clear() # need to clear, doesn't overwrite
    line_phi, = self.ax.plot(F, phi_plt)
    A better solution would be using
    set_ydata(...) together with restoring the background and fig.canvas.blit(...)
    See e.g. https://stackoverflow.com/questions/8955869/why-is-plotting-with-matplotlib-so-slow

  • When only the view has changed (lin / log, units, min/max), use update_view()

  • When the filter has been updated, use draw() calls calc_hf()

  • Rename draw() to something like update_data()

  • Rename calc_hf() to calc_plot()

@chipmuenk chipmuenk added this to the 0.2 milestone Dec 30, 2017
@chipmuenk chipmuenk modified the milestones: 0.2, 0.1.1 Jan 26, 2018
@chipmuenk chipmuenk reopened this Jan 26, 2018
@chipmuenk chipmuenk changed the title Improve / restructure plotting Speed-up and restructure plotting Jan 29, 2018
@chipmuenk chipmuenk modified the milestones: 0.1.1, 0.1.2 Feb 5, 2018
@chipmuenk chipmuenk modified the milestones: 0.1.2, 0.2 Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant