Skip to content

aspectRatio fails when there is a geo mark and no projection #1507

@Fil

Description

@Fil
values = d3.cross(d3.range(10), d3.range(10)).map(([i, j]) => i * j);
Plot.plot({
  aspectRatio: true,
  inset: 40,
  x: { ticks: 10 },
  marks: [
    Plot.dot(values, {
      x: (d, i) => i % 10 + 0.5,
      y: (d, i) => Math.floor(i / 10) + 0.5,
      fill: (d) => d
    }),
    Plot.geo([])
  ]
})

Note: in that case aspectRatio is not completely ignored, but defaults to the golden ratio.

Metadata

Metadata

Assignees

No one assigned

    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