Skip to content

ScottPlot/Style.cs Style not working correctly #866

@oszymczak

Description

@oszymczak

/src/ScottPlot/Style.cs

chart.plt.Style(Style.Seaborn);

when you change To Style.Seaborn
the following gets set
existingPlot.Frame(false);
existingPlot.XAxis.MinorLogScale(true);
existingPlot.YAxis.MinorLogScale(true);

changing to another Style does not change what has been set in Style.Seaborn.

case (Style.Control):
existingPlot.Style(
figureBackground: SystemColors.Control,
dataBackground: Color.White,
grid: ColorTranslator.FromHtml("#efefef"),
tick: Color.Black,
axisLabel: Color.Black,
titleLabel: Color.Black
);
break;

case (Style.Seaborn):
existingPlot.Style(
figureBackground: Color.White,
dataBackground: ColorTranslator.FromHtml("#eaeaf2"),
grid: Color.White,
tick: ColorTranslator.FromHtml("#AAAAAA"),
axisLabel: Color.Black,
titleLabel: Color.Black
);
existingPlot.Frame(false);
existingPlot.XAxis.MinorLogScale(true);
existingPlot.YAxis.MinorLogScale(true);

break;

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