Feature: Allow using custom axes in plotting functions#1
Open
Tyrin451 wants to merge 1 commit intofeature/unit-system-selectionfrom
Open
Feature: Allow using custom axes in plotting functions#1Tyrin451 wants to merge 1 commit intofeature/unit-system-selectionfrom
Tyrin451 wants to merge 1 commit intofeature/unit-system-selectionfrom
Conversation
This change modifies the plotting functions in `ezbolt/plotter.py` to accept an optional `ax` or `axs` argument. - `preview`, `plot_elastic`, `plot_ECR`, and `plot_ICR` now accept an `ax` argument. If provided, the plot is drawn on the given `ax` without the information panel. - `plot_convergence` now accepts an `axs` argument (an array of 4 axes) to allow embedding the convergence plot in other figures. This provides more flexibility for you to create complex figures and embed the plots generated by `ezbolt`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change modifies the plotting functions in
ezbolt/plotter.pyto accept an optionalaxoraxsargument.preview,plot_elastic,plot_ECR, andplot_ICRnow accept anaxargument. If provided, the plot is drawn on the givenaxwithout the information panel.plot_convergencenow accepts anaxsargument (an array of 4 axes) to allow embedding the convergence plot in other figures.This provides more flexibility for you to create complex figures and embed the plots generated by
ezbolt.