How to display some elements in a matrix with distinct colors

asked 2024-03-07 10:20:46 +0200

Cyrille gravatar image

updated 2024-03-07 10:46:51 +0200

Given the matrix

 A=[[1,0,1],[0,0,1],[1,1,0]]
 show(A)

I would like that the $1$ in $A$ be in venetianred (#AE181E) and $0$ in cadet blue (#5F9EA0) or not displayed

edit retag flag offensive close merge delete

Comments

A possible approach is to display matrix as table: https://ask.sagemath.org/question/544...

Max Alekseyev gravatar imageMax Alekseyev ( 2024-03-07 18:10:59 +0200 )edit