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 List of Examples #954

Open
CSSFrancis opened this issue Sep 26, 2023 · 1 comment
Open

Add List of Examples #954

CSSFrancis opened this issue Sep 26, 2023 · 1 comment

Comments

@CSSFrancis
Copy link
Member

Is your feature request related to a problem? Please describe.

I think that while the complete workflows are nice examples of how to do certain things in pyxem, it would be good to add in shorter examples for how to do small functions in hyperspy.

Describe the solution you'd like

I propose that we break the examples into:

  1. Preprocessing Data

    • Centering the zero beam
    • Finding peaks
    • Calibrating from a standard
    • Azimuthal Integration
    • Real Space Alignment
  2. Visualization

    • Move Template matching Euler angle reference frame #925 here or into user guide
    • Plotting clustering results on navigation (using new Polygons Marker)
    • Showing diffraction peaks (using new Points Marker)
    • Visualizing peaks shift (using Points Marker and Scalar Mappable)
    • Visualizing Orientation Mapping results on signal/navigation (
    • Setting the navigator before plotting
@hakonanes
Copy link
Member

Good idea. I suggest to restrict the examples to short recipes for common tasks in pyxem. I find the lengths of the Matplotlib examples a good reference when adding them to the kikuchipy docs and the orix docs.

I find that examples lower the bar for adding snippets to the docs. A common pattern I've used is to add snippets I myself use regularly in a workflow or someone posts in an issue or PR. We might not have the time to add them as functionality to the API, or they might not be ready for that yet. But by adding them to the examples gallery, they are there for people to see and use. And we can later on easily add them to the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants