How to change properties on particular image through update_layout_images

The description on that issue is kind of fussy without actual example as Layout.images in Python ( the name and templateitemname), what I am trying to do is I have two image in the tuple, I need to set one “visible” to false, but need the change to be made based on the “name” tag matching, anybody could show a example of how to match the “name” inside the images tuple and change only in that image?

Thanks

Hello @jzhong,

Welcome to the community!

This is still really vague, is there a chance that you could provide an MRE:

Once we have an idea of what you are trying to do exactly, we should be able to point you in the right direction.


It sounds like you may be able to use a callback to adjust the figure’s layout, just not sure how to trigger it or what parameters determine which image should show up.