matplotlib - changing rect colours on the fly

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-04-05T21:49:31Z Indexed on 2010/04/05 21:53 UTC
Read the original article Hit count: 208

Filed under:

I am playing with matplotlib - I have a bar chart, and I want to highlight the bar which user clicks. I have a callback that goes through a rect collection (the one I got from self.axis.bar(...)) and finds out which one was clicked (looking at the coordinates). At this point I want to call something to change the colour of the current bar. Is it possible? How do I do that?

© Stack Overflow or respective owner

Related posts about matplotlib