Skip to content

Mg/features plot #404

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Mg/features plot #404

wants to merge 5 commits into from

Conversation

mirjagranfors
Copy link
Collaborator

Updated the docs of feature/plot() and added examples

@mirjagranfors mirjagranfors requested review from JChonpca and Pwhsky July 30, 2025 08:27
Generate a grayscale image using torch and plot it:
>>> import torch
>>> img = torch.randint(0, 256, size=(64, 64))
>>> feature.plot(img, cmap='gray');

Copy link
Collaborator

Choose a reason for hiding this comment

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

A more advanced example of the usage that I think should be included would be to plot a sphere resolved in brightfield, something like:

>>> particle = dt.Sphere()
>>> optics = dt.Brightfield()
>>> imaged_particle = optics(particle)
>>> imaged_particle.plot()

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.

3 participants