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

Option to add a common colorbar for all images in ImageGrid #237

Closed
SarthakJariwala opened this issue Jul 20, 2021 · 7 comments
Closed

Option to add a common colorbar for all images in ImageGrid #237

SarthakJariwala opened this issue Jul 20, 2021 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@SarthakJariwala
Copy link
Owner

No description provided.

@SarthakJariwala SarthakJariwala added the enhancement New feature or request label Jul 20, 2021
@brandonStell
Copy link

+1

It would be great to be able to visualize the intensity of the images in the grid relative to each other.
e.g.

c-bar_range=[-200,1600]

image

@DanTurner-Evans
Copy link

Seconded. I'd love to be able to specify a fixed vmin and vmax for all images across the grid. Thanks!

@SarthakJariwala SarthakJariwala added this to the v0.5 milestone Aug 26, 2021
@SarthakJariwala
Copy link
Owner Author

Thanks, @brandonStell @DanTurner-Evans for the feedback.

I have added it to v0.5 milestone!

@SarthakJariwala
Copy link
Owner Author

This is now available in the main branch - You can specify vmin and vmax in ImageGrid and related functions
@brandonStell @DanTurner-Evans

g = isns.ImageGrid(IMG_3D, vmin=0, vmax=1)
g = isns.ImageGrid([img1, img2, img3], vmin=[10, 20, 30], vmax=[200, 210, 220])

It's taking me longer to wrap up all the things for a v0.5 release but you can use the vmin/vmax feature if you install from main branch -

pip install git+https://github.com/SarthakJariwala/seaborn-image

Latest docs should reflect the changes merged in the main branch.

@brandonStell
Copy link

Thanks for the update. Do you see where have I gone wrong here?

 pip install git+https://github.com/SarthakJariwala/seaborn-image
cells = isns.load_image("cells")
g = isns.ImageGrid(cells, slices=[10,20,30,40,50,55], vmin=0, vmax=1)

image

@brandonStell
Copy link

brandonStell commented Nov 9, 2021

oops, no, it's working great. Thanks a lot for this feature!

Fixed with:

pip uninstall seaborn_image 
pip install git+https://github.com/SarthakJariwala/seaborn-image

@SarthakJariwala
Copy link
Owner Author

v0.5.0 is finally out!

This colorbar feature is included in it along with other features.

You can update to the latest version with: pip install -U seaborn-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants