Skip to content

Per-channel scale override fails with Plot.raster #1317

@Fil

Description

@Fil

This should show the high-vapor-value pixels in red.

Plot.plot({
  color: {scheme: "blues", legend: true},
  x: {transform: (x) => x - 180},
  y: {transform: (y) => 90 - y},
  marks: [
    Plot.raster(await vapor(), {
      width: 360,
      height: 180
    }),
    Plot.raster(await vapor(), {
      width: 360,
      height: 180,
      fill: {value: (d) => (d > 4 ? "red" : null), scale: null}
    })
  ]
});

Metadata

Metadata

Assignees

Labels

bugSomething isn’t working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions