-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
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.
ScottPlot/src/ScottPlot/Plottable/Colorbar.cs
Line 261 in 2e60d96
| float padding = 10; |
System Details
- ScottPlot Version: 4.1.32
- Operating System: Windows 10
- Application Type: Console
- .NET Version: .NET 6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior
