TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
35 stars 13 forks source link

Map: values outside [min;max] #402

Open pedro-andrade-inpe opened 9 years ago

pedro-andrade-inpe commented 9 years ago

Implement a strategy to allow the user to define how to paint the values that do not belong to the interval [min;max] defined when building a Map. For example, the user might define a color to be used in this case.

pedro-andrade-inpe commented 9 years ago

Maybe this could be called background.

pedro-andrade-inpe commented 9 years ago

If there is no background then attributes that do not fit [min; max] will not be drawn. This strategy can also be extended for uniquevalues.

pedro-andrade-inpe commented 8 years ago
cs = CellularSpace{
    xdim = 10
}

forEachCell(cs, function(cell)
    cell.value = cell.x
end)

Map{
    target = cs,
    select =  "value",
    color = "Blues",
    min  = 0,
    max = 7,
    slices = 4
}
pedro-andrade-inpe commented 8 years ago

See what happens with the values higher than 7.

pedro-andrade-inpe commented 8 years ago

They are painted white.