I'm trying to use 2 color functions within one matrix plot in mathematica. Is this possible to do?(adsbygoogle = window.adsbygoogle || []).push({});

For example, using a very simple matrix:

test = Partition[Table[i, {i, 1, 9}], 3]

I would like to make the even numbers vary in color increasing from white to red; and the odd numbers vary in color from grey to black.

How could I do this? I know how to get the whole matrix to vary in color, but no more than this.

Thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Using 2 color functions in a mathematica matrix plot

Loading...

Similar Threads - Using color functions | Date |
---|---|

Using Maxima to plot error in Fourier series | Nov 5, 2017 |

Matlab Solving equation with integration using MATLAB | Aug 4, 2017 |

Matlab How to use a suitable color bar? | Mar 9, 2016 |

How to use colors in TeXnic | Sep 6, 2012 |

**Physics Forums - The Fusion of Science and Community**