3

I am plotting some matrices / arrays via MatrixPlot and ArrayPlot, and I would like to highlight several of the cells via outlining. Perhaps something like this (but less dramatic)

Mathematica graphics

I've been playing around a little bit with settings for Mesh but it's a little unruly because it doesn't seem designed to allow specification at this level.

My evil desires would be to have a sort of HighlightFunction option that would make a decision to highlight the cell or allow a Highlight specification in ArrayPlot or MatrixPlot.

I know I can hand-roll this, of course, but was wondering if anyone had a solution 'out of the box' before I start.

The ToolTip inspired version linked below is a start at this but not a straight-forward solution for doing multiple, simultaneous highlights.

flip
  • 1,800
  • 11
  • 20
  • 1
    Also related: http://mathematica.stackexchange.com/q/2512/12 – Szabolcs Feb 18 '16 at 17:04
  • 1
    @Szabolcs et al., I think I'm asking a different sort of question re: simultaneously highlighting several cells w/o the manual intervention / tooltip method in the above. That is, it's not clear to me how to do this via that proposed mechanism. – flip Feb 18 '16 at 18:58
  • 2
    Check the link at the top of the post where it says "This question already has an answer here:"! The tooltip thing is just an additional post I linked to which may or may not be of interest to you. – Szabolcs Feb 18 '16 at 19:19
  • Ah hah- right. Sorry. Didnna see that on first shot. I must have just done a really bad search to not find that. Thank you. – flip Feb 18 '16 at 20:45
  • Well, even when I remember that there was a duplicate, often I just cannot find it. – Szabolcs Feb 18 '16 at 21:42

0 Answers0