需要在 Mathematica 的数组图中突出显示某个元素
Need to highlight a certain element in array plot in mathematica
数组图是使用列表构建的。我想用红色指针标记最大强度元素。可能吗?
这是你要找的吗
m = {{1, 0, 0, 0.3}, {2, 7, 0, 0.3}, {1, 0, 1, 0.7}};
ArrayPlot[m /. Last[Sort[Flatten[m]]] -> Red]
数组图是使用列表构建的。我想用红色指针标记最大强度元素。可能吗?
这是你要找的吗
m = {{1, 0, 0, 0.3}, {2, 7, 0, 0.3}, {1, 0, 1, 0.7}};
ArrayPlot[m /. Last[Sort[Flatten[m]]] -> Red]