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

Add gnomonic circles as patches to axes in EBSDDetector.plot() #445

Merged
merged 2 commits into from
Sep 10, 2021

Conversation

hakonanes
Copy link
Member

Signed-off-by: Håkon Wiik Ånes hwaanes@gmail.com

Description of the change

Progress of the PR

Minimal example of the bug fix or new feature

>>> import kikuchipy as kp
>>> detector = kp.detectors.EBSDDetector(shape=(80, 60))
>>> _, ax = detector.plot(coordinates="gnomonic", draw_gnomonic_circles=True, return_fig_ax=True)
>>> ax.artists  # Previous location of circles
<Axes.ArtistList of 0 artists>
>>> ax.patches  # Current location of circles
<Axes.ArtistList of 8 patches>
>>> ax.patches[:]
[<matplotlib.patches.Circle at 0x7fcdf85f9eb0>,
 <matplotlib.patches.Circle at 0x7fcdf85f9f10>,
 <matplotlib.patches.Circle at 0x7fcdf85f9a90>,
 <matplotlib.patches.Circle at 0x7fcdf85f90d0>,
 <matplotlib.patches.Circle at 0x7fcdf85f9430>,
 <matplotlib.patches.Circle at 0x7fcdf8571bb0>,
 <matplotlib.patches.Circle at 0x7fcdf8567520>,
 <matplotlib.patches.Circle at 0x7fcdf85679d0>]

For reviewers

  • The PR title is short, concise, and will make sense 1 year later.
  • New functions are imported in corresponding __init__.py.
  • New features, API changes, and deprecations are mentioned in the unreleased
    section in doc/changelog.rst.
  • New contributors are added to .all-contributorsrc and the table is regenerated.

Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
@hakonanes hakonanes added this to the v0.5.2 milestone Sep 10, 2021
@hakonanes hakonanes merged commit 4e36e8a into pyxem:main Sep 10, 2021
@hakonanes hakonanes deleted the fix-442 branch September 10, 2021 11:33
@hakonanes hakonanes changed the title Fix 442 Add gnomonic circles as patches to axes in EBSDDetector.plot() Sep 10, 2021
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