From 40188d9cc65fe5cd1af04af9d8b351e1290c7e24 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 24 Apr 2026 09:03:16 -0600 Subject: [PATCH] [glass] Plot: Fix weight and marker settings (#8805) Line weight needed to default to 1.0. Marker added an "auto" setting and now starts at -2. Fixes #8802. --- glass/src/lib/native/cpp/other/Plot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glass/src/lib/native/cpp/other/Plot.cpp b/glass/src/lib/native/cpp/other/Plot.cpp index 64de5c479d..262a809b0f 100644 --- a/glass/src/lib/native/cpp/other/Plot.cpp +++ b/glass/src/lib/native/cpp/other/Plot.cpp @@ -209,9 +209,9 @@ PlotSeries::PlotSeries(Storage& storage) m_color{storage.GetFloatArray("color", kDefaultColor)}, m_marker{storage.GetString("marker"), 0, - {"None", "Circle", "Square", "Diamond", "Up", "Down", "Left", - "Right", "Cross", "Plus", "Asterisk"}}, - m_weight{storage.GetFloat("weight", IMPLOT_AUTO)}, + {"None", "Auto", "Circle", "Square", "Diamond", "Up", "Down", + "Left", "Right", "Cross", "Plus", "Asterisk"}}, + m_weight{storage.GetFloat("weight", 1.0f)}, m_digital{ storage.GetString("digital"), kAuto, {"Auto", "Digital", "Analog"}}, m_digitalBitHeight{storage.GetInt("digitalBitHeight", 8)}, @@ -397,7 +397,7 @@ PlotSeries::Action PlotSeries::EmitPlot(PlotView& view, double now, size_t i, } else { ImPlot::SetAxis(ImAxis_Y1); } - spec.SetProp(ImPlotProp_Marker, m_marker.GetValue() - 1); + spec.SetProp(ImPlotProp_Marker, m_marker.GetValue() - 2); ImPlot::PlotLineG(label, getter, &getterData, size + 1, spec); }