passing colors as copy

This commit is contained in:
Jan Kuhlmann 2025-01-22 17:54:19 +01:00
parent cf7b07a881
commit 3e665661f3

View File

@ -899,7 +899,7 @@ namespace graphs
// plot from single data set, drawn on top of existing graph // plot from single data set, drawn on top of existing graph
template <typename T> template <typename T>
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"; cout << "Experimental plot\n";
// precalc spans // precalc spans
@ -963,7 +963,7 @@ namespace graphs
} }
// plot from single data set // plot from single data set
template <typename T> template <typename T>
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"; cout << "Experimental plot\n";
// precalc spans // precalc spans