Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_colormap3dslice overlays fSaved, fluxrope and AMR levels #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ykempf
Copy link
Contributor

@ykempf ykempf commented Oct 5, 2023

Now done with straight cell edges instead of interpolated contours.
Example:
image

…raight cell edges instead of interpolated contours.
fRmap = np.ma.array(fRmap, mask=XYmask)

# vg_fluxrope goes to the max defined at runtime, set the values above our cutoff to zero for clean results.
fRmap = np.where(fRmap > fluxrope, np.zeros_like(fRmap), fRmap)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least this line is one that's not needed/used by the others, but sure can also be implemented in some function that would do this in a more generic way.

@markusbattarbee
Copy link
Contributor

I think this would be a good place to add some modularity, i.e. make a function which takes the data, contour points, linestyles and axes and then does this by-cell-edges plotting. Then we could re-use it for 2D plotting tools as well, as well as threeslice etc. (and include a check inside that function to return without doing anything if there isn't any points passing that contour value).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants