Skip to content

Colorbar overlays YAxis2 #1637

@ccopsey

Description

@ccopsey

Bug Report

Issue: When displaying both a colorbar and a YAxis2 the colorbar overlays the YAxis2

Reproducing: I don't think you need to do anything beyond adding both a colorbar and YAxis2 to your plot

In order to make space for the colorbar we need to add an minimum (constant) size to the YAxis2, but looking at the following it appears the colorbar is positioned using a hardcoded padding (10px) to the data area. Ideally the colorbar would act like an extra axis and take part in the "measure" routine, both to assess its own width and the position of the YAxis2.

float padding = 10;

image

System Details

  • ScottPlot Version: 4.1.32
  • Operating System: Windows 10
  • Application Type: Console
  • .NET Version: .NET 6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions