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

New plot_sigma() plotting function #541

Merged
merged 3 commits into from
Dec 12, 2022
Merged

New plot_sigma() plotting function #541

merged 3 commits into from
Dec 12, 2022

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Dec 11, 2022

Given a Σ-matrix defining a 6-dimensional ellipsoid, the plot_sigma() function allows plotting its projection on any plane.

For this, a new utility function axis_descr() is added to utils.py: for an axis defined either by a string in {'x', 'xp', 'y', 'yp', 'dp', 'ct'} or by in integer in 0:6, it returns its index in the AT coordinate vector, its label and its unit for plotting.

Sorry for reviewers: in utils.py I also rewrote most of the docstrings to follow some conventions taken from numpy and matplotlib. I'm thinking of updating at/docs/README.rst to summarise this…

Copy link
Contributor

@lcarver lcarver left a comment

Choose a reason for hiding this comment

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

Works as described. Fine for me.

@lfarv lfarv merged commit 4be768b into master Dec 12, 2022
@lfarv lfarv deleted the plot_sigma branch December 12, 2022 15:25
@lfarv lfarv mentioned this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants