diff --git a/module/move/optimization_tools/Cargo.toml b/module/move/optimization_tools/Cargo.toml index c84a55a45d..f6fb38794c 100644 --- a/module/move/optimization_tools/Cargo.toml +++ b/module/move/optimization_tools/Cargo.toml @@ -32,8 +32,8 @@ full = [ ] enabled = [] # rapidity_6 = [] # to enable slow tests -# static_plot = [] -plotting = [ "dep:plotters-backend", "dep:piston_window" ] +static_plot = [] +dynamic_plot = [ "static_plot", "dep:plotters-backend", "dep:piston_window" ] lp_parse = [ "dep:exmex" ] [dependencies] diff --git a/module/move/optimization_tools/src/hybrid_optimizer/mod.rs b/module/move/optimization_tools/src/hybrid_optimizer/mod.rs index 7e83a789e2..90f381f6b6 100644 --- a/module/move/optimization_tools/src/hybrid_optimizer/mod.rs +++ b/module/move/optimization_tools/src/hybrid_optimizer/mod.rs @@ -2,7 +2,7 @@ //! use crate::*; -#[ cfg( feature="plotting" ) ] +#[ cfg( feature="static_plot" ) ] use crate::plot::{ PlotDescription, PlotOptions, plot }; use iter_tools::Itertools; use std::ops::RangeInclusive; diff --git a/module/move/optimization_tools/src/lib.rs b/module/move/optimization_tools/src/lib.rs index fd65c6c2ef..134318a76f 100644 --- a/module/move/optimization_tools/src/lib.rs +++ b/module/move/optimization_tools/src/lib.rs @@ -8,7 +8,7 @@ pub mod problems; pub mod hybrid_optimizer; pub mod simplex; pub mod optimal_params_search; -#[ cfg( feature="plotting" ) ] +#[ cfg( feature="static_plot" ) ] pub mod plot; -#[ cfg( feature="plotting" ) ] +#[ cfg( feature="dynamic_plot" ) ] pub mod plot_dynamic;