-
Notifications
You must be signed in to change notification settings - Fork 206
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
Documentation: Add Examples for overlaying quad mesh. #3333
base: RELEASE_next_minor
Are you sure you want to change the base?
Documentation: Add Examples for overlaying quad mesh. #3333
Conversation
@magnunor You might find this fun/interesting :) @ericpre We might want to think about adding a special class for I also realize this is a weird way to do this in Matplotlib but still kind of fun. |
df0543d
to
b777ca5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## RELEASE_next_minor #3333 +/- ##
===================================================
Coverage 80.55% 80.55%
===================================================
Files 147 147
Lines 21871 21871
Branches 5144 5144
===================================================
Hits 17618 17618
Misses 3036 3036
Partials 1217 1217 ☔ View full report in Codecov by Sentry. |
This is really cool! I tried them, and they indeed work! Having these as examples is nice, and I think they potentially could be useful for other visualization features. For example, one thing I've been thinking about for a while, is having a Maybe using the transparent overlay would be a way to do this. |
There is a variant of the colour wheel where the colour intensity increase from the center to the edge, for example: I am wondering if this would be more simple using a polar transform in matplotlib? |
I also tested both saving and loading these markers with |
A similar colorwheel style is implemented in pyxem: https://github.com/pyxem/pyxem/blob/main/pyxem/utils/pixelated_stem_tools.py#L214 |
Cool I was wondering if that was going to work :) I thought it should but always good to check. |
@ericpre Probably would be a bit easier but stacking transforms in |
Sorry, I use the wrong terminology: it is polar projection that I meant: https://matplotlib.org/stable/gallery/pie_and_polar_charts/polar_demo.html The one in pyxem looks good: https://pyxem.readthedocs.io/en/stable/tutorials/pyxem-demos/10%20STEM%20DPC%20Analysis%20of%20Magnetic%20Sample.html |
@ericpre I wonder if you could make this interactive using hs.interactive? For example could you link the data from some inset quad mesh to an ROI? That might be useful if you wanted to integrate part of a navigator and plot the integrated signal as something like a call out. I guess this is just a different way of handling something like #3325 but that might be a good first step to see how we could make #3325 a bit more flexible. |
Description of the change
Added an example for overlaying images. Kind of a fun example with lots of implications if people are interested in running with this. Also I'm kind of loving the Marker change for little things like this. :)
Progress of the PR
upcoming_changes
folder (seeupcoming_changes/README.rst
),readthedocs
doc build of this PR (link in github checks)Minimal example of the bug fix or the new feature
See documentation