Skip to content

Add a simple plot_image() function#1

Open
mrakitin wants to merge 1 commit intodeprecated-masterfrom
add_plot_image_func
Open

Add a simple plot_image() function#1
mrakitin wants to merge 1 commit intodeprecated-masterfrom
add_plot_image_func

Conversation

@mrakitin
Copy link
Contributor

@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
Contributor 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