Open zspasztori opened 2 months ago
it seems that the function get_data_range hasa bug the bool array is not working because of this condition, should I make a PR with fix? pyvista/core/dataset.py:893-894
if arr.size == 0 or not np.issubdtype(arr.dtype, np.number):
return (np.nan, np.nan)
also the scalar color mapping seems to work with :
mesh.set_active_scalars("my_scalar")
actor.mapper.scalar_range = mesh.get_data_range("my_scalar")
most likely the renderer is missing the automatic update of scalar range when after/during the set_active_scalars call
I am working with point cloud data, which has multiple scalars associated. I am changing the active scalar based on user input. However, for some reason the color scale does not change. eg. if first scalar was bool, and next scalar will be float, the maximum color value will still be at 1 after the change