Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Heatmap: Assign colors to discrete values

$
0
0

Hi,

I want to plot a 2D array with heatmap. The array consists of 1s, 2s and 3s. Now I want to assign each value a color, e.g. 1: black, 2: green, 3: blue.

I just can’t figure out how I can do that. :confused:

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles