On 01/06/2012 05:48 PM, Harald Geyer wrote:
> Hi!
>
>> I would like to ask,
>> if someone thinks it is possible to colorize some matrix elements.
>>
>> I have set
>>
>> display2d : true
>>
>> and would like to colorize the zeros of some binary matrices.
> not directly unless you hack the display code.
>
> But assuming you are on an ANSI capable terminal, you could replace
> the matrix elements by strings, that represent colorized expressions.
>
> Perhaps you can expand on the following idea:
> bold(expr) := apply(concat, [ascii(27), "[01m", string(expr), ascii(27), "[m"]);
> bold(x+y);
> bold(0.0);
>
Thanks, I'm going to try the ANSI code, when I have some time.
At the moment I use the 'strings'
" " for 0 and "X" for 1
Regards
Andre
> HTH,
> Harald
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>