Skip to content

How to hide the left axis if my charts don't use it? #4608

@jwwq

Description

@jwwq

I want to create a single graph linked to the right axis.

If I create the chart in on_load event, everything looks ok:

image

but if I create the chart later, the left axis remains visible.

image

This is a weird difference in behavior, what can I do to hide it? Setting Axis.IsVisible = false is not an option, because it hides even vertical line:

image

            double[] values = Generate.RandomNormal(50, stdDev: 0.2);
            var sig = formsPlot1.Plot.Add.Signal(values);
            sig.Axes.YAxis = formsPlot1.Plot.Axes.Right;
            // formsPlot1.Plot.Axes.Left.IsVisible = false;

            formsPlot1.Plot.Axes.AutoScale();
            formsPlot1.Refresh();

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