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 a simple plot_image() function #1

Open
wants to merge 1 commit into
base: deprecated-master
Choose a base branch
from

Conversation

mrakitin
Copy link
Member

@mrakitin mrakitin commented Apr 3, 2018

Here is a simple plotting function for visualizing the images. Usage:

plot_image('/SHARE/user_data/2018-1/302316/bgsub/Ni_Standard_PDF_DataSet_1_0.1653_83_21.15925_bgsub.tiff', clim=(0, 100))

Attn @jrmlhermitte @milinda2014

@jrmlhermitte
Copy link

this looks good! Do we still need this with the image plotter?
If we use it, I might suggest using a tool to choose min max according to a histogram. I usually use something like this here.
I think in general it would be nice to have a histogram widget that plots a histogram of an image that would allow a user to select limits themselves, like pyqtgraph. I wonder if it's worth adding in matplotlib, or do some searching

@mrakitin
Copy link
Member Author

I think my implementation is too simple 😃. We may need to use the CrossSection class from xray-vision, which would add a color bar, and cross-hair with corresponding interactive plots. vmin/vmax can be supplied either via the kwargs, or via a menu in the MPL window. Your option may be a useful addition! But it's probably worth to add it to xray-vision rather than to this beamline-specific profile.

CJ-Wright pushed a commit to CJ-Wright/profile_collection that referenced this pull request Apr 18, 2019
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.

2 participants