Skip to content

Conversation

@j-fu
Copy link
Member

@j-fu j-fu commented Jun 13, 2025

Address #19

@j-fu j-fu requested a review from Copilot June 13, 2025 21:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates the old plotting functionality in favor of using the new GridVisualize plotting APIs. Key changes include the introduction of a deprecation warning in plot_triangulateio, removal of the doplot helper in Pluto examples, and updates to dependency and documentation files to reflect the change.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

File Description
src/plot.jl Added a global deprecation flag and warning message in the plotting function.
examples/pluto-examples.jl Removed doplot and refactored plotting calls to use the new plot_in_out function.
examples/Project.toml Included GridVisualize in the dependencies.
CHANGELOG.md Updated the changelog to document the deprecation of plotting code.
Comments suppressed due to low confidence (1)

examples/pluto-examples.jl:229

  • The removal of the doplot helper means that the previous figure layout adjustments may no longer be applied. Verify that plot_in_out now handles the figure configuration as intended.
return plot_in_out(

# plot(Plotter, tio; kwargs...) = plot_triangulateio(Plotter, tio; kwargs...)


global depwarned::Bool = false
Copy link

Copilot AI Jun 13, 2025

Choose a reason for hiding this comment

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

Using a global variable to track deprecation warnings might lead to issues in concurrent scenarios or when the module is reloaded. Consider encapsulating this state in a more controlled manner or within a module-level structure.

Copilot uses AI. Check for mistakes.
@j-fu j-fu merged commit 32d105a into master Jun 13, 2025
14 checks passed
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