From 122536c7a140921dac595d3bdbc126a227ccb3ae Mon Sep 17 00:00:00 2001 From: ta-vroom <11915275+ta-vroom@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:56:50 -0400 Subject: [PATCH] fix: missing stroke-width for rectangles --- plotters-svg/src/svg.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plotters-svg/src/svg.rs b/plotters-svg/src/svg.rs index e24623d7..55f1affd 100644 --- a/plotters-svg/src/svg.rs +++ b/plotters-svg/src/svg.rs @@ -388,6 +388,9 @@ impl<'a> DrawingBackend for SVGBackend<'a> { .write_value(style.color().alpha); attrwriter.write_key("fill").write_value(fill); attrwriter.write_key("stroke").write_value(stroke); + attrwriter + .write_key("stroke-width") + .write_value(style.stroke_width()); attrwriter.close(); Ok(()) }