def _update_estimate_scatterplots(self): """ Update the scatter plot objects that display the previous estimates """ if self._do_plot_scatters: for i in range(self._n_estimates): if self._plot_scatters[i]: ptools.update_3d_scatter( self._estimate_scatters[i], self._estimates[:, :, i].T)
def _update_particle_locs(self, particles): """ Update any strucutres maintaing the particle locations and update the plot so the new set of particles are displayed """ part_norm = np.sum(particles ** 2, axis=1) if np.any(abs(part_norm - 1) > .02): print part_norm particles /= np.sqrt(part_norm[:, np.newaxis]) ptools.update_3d_scatter(self._scatter, particles)