Skip to content

SP5 Label: Add support for multi-line strings #3087

@raburton

Description

@raburton

Bug Report

Issue: Ticks labels can't handle \n char

Reproducing: Include a \n char in a tick label. With v4 you got a two line label, in v5 you get tofu instead of the new line. Sorry if this doesn't count a as a bug, not sure what's supposed to work in v5 vs v4. If not a bug, please accept as enhancement request.

private string[] yLabels = new string[] { "Line1\nLine2" };
private double[] yLabelPos = new double[] { 0 };

signalPlot.LeftAxis.TickGenerator = new ScottPlot.TickGenerators.NumericManual(yLabelPos, yLabels);

System Details

  • ScottPlot Version: 5.0.10-beta
  • Operating System: Windows 10
  • Application Type: WinForms
  • .NET Version: .NET 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions