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
This issue is a result of trying to plot some common atmospheric simulation data related to PR #2176 - this is where the front end is implemented if testing is desired. Data can be found at
If you specify your transfer function in log space, things tend to plot relatively okay. However, if you specify information in linear space and set log to False, the volume renderer does not have the expected behavior. This could entirely be due to my lack of understanding of how to interface with the volume renderer, but with the broader goal of extending the usage of yt to other domains outside of astro, I think it is worth revisiting this.
Not all fields will be something that are worth plotting in log space, and it should be clear to the user on how to turn that off. Ideally, the two program examples below should produce the same result, but they do not. If having them make the same result is too complicated, at least providing clearer info to the user on how to construct non-log transfer functions would be nice.
The expected outcome is to get a meaningful volume render result when not in log space - so far, the only way to get the volume renderer to behave is to operate in log space for the data.
After some further digging, I received a better result by also setting
source.set_log(False)
This was found by accident in one of the examples. While the behavior of the volume renderer in linear space is still in question, perhaps some of the discussion can be switched to improving the clarity of this option, how it affects the user and the renderer, and how to be consistent with it.
Bug report
Bug summary
Likely related to #1104
This issue is a result of trying to plot some common atmospheric simulation data related to PR #2176 - this is where the front end is implemented if testing is desired. Data can be found at
If you specify your transfer function in log space, things tend to plot relatively okay. However, if you specify information in linear space and set log to False, the volume renderer does not have the expected behavior. This could entirely be due to my lack of understanding of how to interface with the volume renderer, but with the broader goal of extending the usage of yt to other domains outside of astro, I think it is worth revisiting this.
Not all fields will be something that are worth plotting in log space, and it should be clear to the user on how to turn that off. Ideally, the two program examples below should produce the same result, but they do not. If having them make the same result is too complicated, at least providing clearer info to the user on how to construct non-log transfer functions would be nice.
Code for reproduction
This code generates the desired plot...
Test data: http://use.yt/upload/07f558ae
Actual outcome
Expected outcome
The expected outcome is to get a meaningful volume render result when not in log space - so far, the only way to get the volume renderer to behave is to operate in log space for the data.
Version Information
YT was compiled from source (PR #2176)
The text was updated successfully, but these errors were encountered: