Skip to content

Feature: Allow using custom axes in plotting functions#1

Open
Tyrin451 wants to merge 1 commit intofeature/unit-system-selectionfrom
feature/custom-ax-plotting
Open

Feature: Allow using custom axes in plotting functions#1
Tyrin451 wants to merge 1 commit intofeature/unit-system-selectionfrom
feature/custom-ax-plotting

Conversation

@Tyrin451
Copy link
Copy Markdown
Owner

@Tyrin451 Tyrin451 commented Aug 8, 2025

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 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`.
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.

1 participant