Hi,
Just starting to use Mayavi, and noticed few minor issues: image_plane_widget and vector_cut_plane are not fully updated after data source update, when new array dimensions differs from old, via self.our_scalar_field_src = newdata and self.our_vector_field_src = new_vec
Screenshot shows, that while vectors updated to new dimensions, ImplicitPlane widget of vector_cut_plane, does not. Also, image_plane_widget dimensions not updated.
Hi, Just starting to use Mayavi, and noticed few minor issues: image_plane_widget and vector_cut_plane are not fully updated after data source update, when new array dimensions differs from old, via
self.our_scalar_field_src = newdata
andself.our_vector_field_src = new_vec
Screenshot shows, that while vectors updated to new dimensions, ImplicitPlane widget of vector_cut_plane, does not. Also, image_plane_widget dimensions not updated.![image](https://user-images.githubusercontent.com/29224758/174802146-76343867-30d3-4f53-a1a5-2e467f168083.png)
However I noticed such workarounds:
To update image_plane_widget:
To update vector_cut_plane:
This gives correct result, but makes code less readable:![image](https://user-images.githubusercontent.com/29224758/174802852-daff9f42-b326-48cf-9839-7dd4ffd3f150.png)
Question: how to update plot data source correctly? Is it best way to remove object from pipeline
module_manager1.children[0:1] = []
?