Skip to content

Plot with inset, axis marks and two bands has wrong auto height #2327

Open
@mootari

Description

@mootari

If a plot specifies an inset as well as axis marks, then the resulting height causes y labels to overlap if the data only produces two bands:

Plot.plot({
  inset: 20,
  marks: [
    Plot.axisX({anchor: "top"}),
    Plot.axisX({anchor: "bottom"}),
    Plot.dot("AB", {y: d => d, x: 0})
  ]
})

Screenshot:

Image

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