Skip to content

[Feature] ImPlot3DSpec #166

Closed
Closed

Description

@brenocq

Feature description
As discussed in epezent/implot#519 and epezent/implot#330, ImPlot will soon migrate to a new styling method called ImPlotSpec, this style is a quality of life improvement to allow the user to more easily define the plot style (color, weight, etc).

Previously, ImPlot3D relied on the Push/Pop style and SetNext style

ImVec4 green(0, 1, 0, 1);

// Push/Pop style
ImPlot3D::PushStyleColor(ImPlotCol_Line, green);
ImPlot3D::PlotLine("Green Line", x, y, z, size);
ImPlot3D::PopStyleColor();

// SetNext style
ImPlot3D::SetNextLineStyle(green);
ImPlot3D::PlotLine("Green Line", x, y, z, size);

The new Spec style will look like the following:

ImPlot3DSpec spec;
spec.LineColor = green;
ImPlot3D::PlotLine("Green Line", x, y, z, size, spec);

// Or
ImPlot3D::PlotLine("Green Line", x, y, z, size, {
    ImPlot3DProp_LineColor, green,
});

Tasks

  • Define ImPlot3DProps
  • Create ImPlot3DSpec struct
  • Migrate examples to spec styling

Activity

  1. added this to the v0.4 milestone on Feb 2, 2026
  2. self-assigned this
    on Feb 2, 2026
  3. linked a pull request that will close this issueFeat: ImPlot3DSpec #169on Feb 12, 2026
  4. added and removed
    status:doingWork is currently in progress
    on Feb 12, 2026
  5. added
    status:doneTask completed successfully
    and removed on Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio:highHigh prioritystatus:doneTask completed successfullytype:featNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions