Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Potential Bug with ImPlot.PlotLine #36

Description

@wangqinru

I'm currently using ImPlot.PlotLine to draw graphs in my project. However, I'm encountering an issue where the numbers on the X and Y axes aren't being displayed. Do you have any idea what might be causing this?

I'm running this on Unity 2022.2.1f1.

Any help would be greatly appreciated.

Thank you.

image

double xmin = 0, xmax = 1, ymin = 0, ymax = 1;
float[] data = new float[10]{0,1,2,3,4,5,6,7,8,9};

ImPlot.LinkNextPlotLimits(ref xmin, ref xmax, ref ymin, ref ymax);
if (ImPlot.BeginPlot("Plot A", "Time (s)", "Memory (MB)", new Vector2(400, 200))) { 
    ImPlot.PlotLine("Line", ref data[0], 10);
    ImPlot.EndPlot(); 
}

ImPlot.LinkNextPlotLimits(ref xmin, ref xmax, ref ymin, ref ymax);
if (ImPlot.BeginPlot("Plot B", "Time (s)", "Memory (MB)", new Vector2(400, 200))) { 
    ImPlot.PlotLine("Line", ref data[0], 10);
    ImPlot.EndPlot(); 
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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