HeatMap white in the zero values (Help)

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

Artiga wrote at 2013-08-14 13:18:

Hello guys!

I´m using a Heatmap in my application, but for me would me nice if i could let the points with of the Data[i,j] = 0, in the White color, or maybe transparent if possible ....

That is important, because i will put another kind of series above the heatmap, so it will be good for a better visualization ...

Thx for all =D

Artiga wrote at 2013-08-14 13:45:

Never mind, i found!

pcp16 wrote at 2013-12-10 14:59:

Could you post it here? I'm trying to do exactly that and have no clue! I'm new to Oxyplot!

pcp16 wrote at 2013-12-11 11:15:

Ok, solved, here's the solution (this is Objo's answer to another thread):

You can create your own palettes like so:
var palette = OxyPalette.Interpolate(NUM_COLORS, COLOR_FROM, COLOR_TO);
So in this case, we'd like to have:
var palette = OxyPalette.Interpolate(50, OxyColors.White, OxyColors.Black);
Pau.

Сервис поддержки клиентов работает на платформе UserEcho