Skip to content

pyvista scripts for compositional field visualizations#7006

Open
c1th wants to merge 5 commits into
geodynamics:mainfrom
c1th:compositional-fields-pyvista-visualizations
Open

pyvista scripts for compositional field visualizations#7006
c1th wants to merge 5 commits into
geodynamics:mainfrom
c1th:compositional-fields-pyvista-visualizations

Conversation

@c1th

@c1th c1th commented Jun 10, 2026

Copy link
Copy Markdown

adds python scripts to create the visualizations for the compositional field cookbooks (passive, active, active w/ reaction).

haven't added a YAML file to build conda environment

@JarettBakerDunn

JarettBakerDunn commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Thank you for all the work!
I think the figures look good. I'll leave some comments as well.

Also, it turns out that there is already a YAML file which builds a conda environment for ASPECT, but it has some problems. I have opened an issue relating to that. For now, we can just create a YAML file which works for your scripts. I think that the one included in #6993 should work, but please feel free to make your own if you need to. If you do make your own YAML file please share it with me.

pad_inches=0.01,
facecolor="white"
)
plt.close(fig) No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like the end of this script is missing a newline at the end after line 130. You should be able to see a red symbol on github showing that a newline is missing. I think you can just hit enter in vscode at the end of the file to create a newline there.


# save final figure
plt.savefig(output_png, dpi=300, bbox_inches="tight", pad_inches=0.01, facecolor="white")
plt.close(fig) No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A newline is also needed here


# save final figure
plt.savefig(output_png, dpi=300, bbox_inches="tight", pad_inches=0.01, facecolor="white")
plt.close(fig) No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A newline is also needed here

Comment thread cookbooks/composition_passive/visit0017.png Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like the color in this figure are different than the earlier time steps it gets much blacker at the edges. Did something change when making tis figure, or is it just because the range is changing.

@c1th c1th Jun 16, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@mibillen The original figure is "zoom-in on the center" (Fig. 33 from documentation). Would it be better to change the figure to a zoomed in version or change the caption in the documentation (I would imagine that this would lessen confusion).

@bobmyhill bobmyhill self-requested a review June 29, 2026 15:46
@JarettBakerDunn

Copy link
Copy Markdown
Contributor

Hello, I talked to some of the ASPECT developers at the user meeting and their recommendation was to move the plotting scripts out of the doc directory so that they are easier to find. So moving the whole plotting_scripts directory up one level. I think after that is done it will probably be ready for a final review and to get merged.

@JarettBakerDunn

Copy link
Copy Markdown
Contributor

@bobmyhill Hello, I think this is ready to be reviewed whenever you get the chance.

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.

3 participants