From 3e665661f31d049d7a96371299885e7e4398cf9c Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:54:19 +0100 Subject: [PATCH] passing colors as copy --- graphs.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphs.hpp b/graphs.hpp index 9dc060c..2257c21 100644 --- a/graphs.hpp +++ b/graphs.hpp @@ -899,7 +899,7 @@ namespace graphs // plot from single data set, drawn on top of existing graph template - void plot_experimental(const T &data, Intermediate &intermediate, const Color &color = {color_red}) { + void plot_experimental(const T &data, Intermediate &intermediate, Color color = {color_red}) { cout << "Experimental plot\n"; // precalc spans @@ -963,7 +963,7 @@ namespace graphs } // plot from single data set template - auto plot_experimental(const T &data, const Options &options = {}, const Color &color = {color_red}) -> Intermediate { + auto plot_experimental(const T &data, const Options &options = {}, Color color = {color_red}) -> Intermediate { cout << "Experimental plot\n"; // precalc spans