Scalar bar doesn't update after plotter.render() or plotter.add() #655
Replies: 5 comments 15 replies
-
hi, if the mesh data is modified there no automatism in place to update the scalarbar (there should be, sorry about that).
|
Beta Was this translation helpful? Give feedback.
-
One quick question, any reason why the 0 is dropped from the axis label ? any workaround I want to show it ? (check the end of the GIF to see what I'm talking about) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Cool, thanks indeed I need to convert my list element into string, I will do that. Thanks for the example I will wait then. |
Beta Was this translation helpful? Give feedback.
-
Perfect! I have the label 0 on Z axe and the scalar up to date in the scalarbar |
Beta Was this translation helpful? Give feedback.
-
Hi
when I update the scalar attach to my mesh with the following the scalar bar isn't updating:
the only thing working is if I first clear the plotter with
plotter.clear()
and then add back the mesh with show()it's weird because when I go into the debug mode an check the TableRange of the scalarbar attached to the mesh the range is -950,850 as expected:
But the TableRange of the scalarbar attached to the plotter instance is still the previous range -950,2113 (it means that the scalarbrs attribute of the plotter has not been updated after the add function)
So should the plotter updates all the actor to show when I call render() ?or when I use add(mesh) I expect the plotter/render to update all mesh properties accordingly
Beta Was this translation helpful? Give feedback.
All reactions