You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
Currently,
ax.clear()
is called before each plot, slowing down redraw considerably. This should only happen ininit_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 isself.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 andfig.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()
callscalc_hf()
Rename
draw()
to something likeupdate_data()
Rename
calc_hf()
tocalc_plot()
The text was updated successfully, but these errors were encountered: