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
It would be useful to apply thresholds to vector plots in yt where the threshold is supplied by another field. For instance, if I am applying a quiver plot to wind velocity, I would like to be able to threshold based on the velocity magnitude. This can currently be implemented with a combination of derived fields, such as:
But, this is annoying. And, it's not easy to change the threshold value (20 in this case) on-the-fly. It would be good to have an argument to the quiver annotation call that included thresholding information, such as field and value (or expression).
The text was updated successfully, but these errors were encountered:
I initially thought it'd be cool to implement this by adding a data_source kwarg to annotate_quiver -- you could then use a cut_region to apply the thresholding or use any other data source to, e.g., only add the vectors within a spatial region of the plot (distinct from the data source used by the base plot). But then I looked back at the QuiverCallback and I think that'd be a pretty big refactor... and I'm not sure we can even pixelize a cut_region. So ya, your idea of having a specific threshold argument makes more sense :)
It would be useful to apply thresholds to vector plots in yt where the threshold is supplied by another field. For instance, if I am applying a quiver plot to wind velocity, I would like to be able to threshold based on the velocity magnitude. This can currently be implemented with a combination of derived fields, such as:
But, this is annoying. And, it's not easy to change the threshold value (20 in this case) on-the-fly. It would be good to have an argument to the quiver annotation call that included thresholding information, such as field and value (or expression).
The text was updated successfully, but these errors were encountered: