@@ -103,27 +103,27 @@ function __plot_time!(
103103 return p
104104end
105105
106- """
107- $(TYPEDSIGNATURES)
108-
109- Plot the i-th component of a vectorial function of time `f(t) ∈ Rᵈ` where `f` is given by the symbol `s`.
110- - The argument `s` can be `:state`, `:control` or `:costate`.
111- - `time` can be `:default` or `:normalize`.
112- """
113- function __plot_time (
114- sol:: CTModels.Solution ,
115- model:: Union{CTModels.Model,Nothing} ,
116- s:: Symbol ,
117- i:: Int ,
118- time:: Symbol ;
119- t_label:: String ,
120- label:: String ,
121- kwargs... ,
122- )
123- return __plot_time! (
124- Plots. plot (), sol, model, s, i, time; t_label= t_label, label= label, kwargs...
125- )
126- end
106+ # """
107+ # $(TYPEDSIGNATURES)
108+
109+ # Plot the i-th component of a vectorial function of time `f(t) ∈ Rᵈ` where `f` is given by the symbol `s`.
110+ # - The argument `s` can be `:state`, `:control` or `:costate`.
111+ # - `time` can be `:default` or `:normalize`.
112+ # """
113+ # function __plot_time(
114+ # sol::CTModels.Solution,
115+ # model::Union{CTModels.Model,Nothing},
116+ # s::Symbol,
117+ # i::Int,
118+ # time::Symbol;
119+ # t_label::String,
120+ # label::String,
121+ # kwargs...,
122+ # )
123+ # return __plot_time!(
124+ # Plots.plot(), sol, model, s, i, time; t_label=t_label, label=label, kwargs...
125+ # )
126+ # end
127127
128128"""
129129$(TYPEDSIGNATURES)
@@ -153,36 +153,36 @@ function __plot_time!(
153153 return p
154154end
155155
156- """
157- $(TYPEDSIGNATURES)
158-
159- Plot a vectorial function of time `f(t) ∈ Rᵈ` where `f` is given by the symbol `s`.
160- The argument `s` can be `:state`, `:control` or `:costate`.
161- """
162- function __plot_time (
163- sol:: CTModels.Solution ,
164- model:: Union{CTModels.Model,Nothing} ,
165- d:: CTModels.Dimension ,
166- s:: Symbol ,
167- time:: Symbol ;
168- t_label:: String ,
169- labels:: Vector{String} ,
170- title:: String ,
171- kwargs... ,
172- )
173- return __plot_time! (
174- Plots. plot (),
175- sol,
176- model,
177- d,
178- s,
179- time;
180- t_label= t_label,
181- labels= labels,
182- title= title,
183- kwargs... ,
184- )
185- end
156+ # """
157+ # $(TYPEDSIGNATURES)
158+
159+ # Plot a vectorial function of time `f(t) ∈ Rᵈ` where `f` is given by the symbol `s`.
160+ # The argument `s` can be `:state`, `:control` or `:costate`.
161+ # """
162+ # function __plot_time(
163+ # sol::CTModels.Solution,
164+ # model::Union{CTModels.Model,Nothing},
165+ # d::CTModels.Dimension,
166+ # s::Symbol,
167+ # time::Symbol;
168+ # t_label::String,
169+ # labels::Vector{String},
170+ # title::String,
171+ # kwargs...,
172+ # )
173+ # return __plot_time!(
174+ # Plots.plot(),
175+ # sol,
176+ # model,
177+ # d,
178+ # s,
179+ # time;
180+ # t_label=t_label,
181+ # labels=labels,
182+ # title=title,
183+ # kwargs...,
184+ # )
185+ # end
186186
187187# --------------------------------------------------------------------------------------------------
188188#
@@ -406,15 +406,15 @@ function __plot!(
406406 time:: Symbol ,
407407 control:: Symbol ,
408408 layout:: Symbol ,
409- time_style:: Tuple ,
410- state_style:: Tuple ,
411- state_bounds_style:: Tuple ,
412- control_style:: Tuple ,
413- control_bounds_style:: Tuple ,
414- costate_style:: Tuple ,
415- path_style:: Tuple ,
416- path_bounds_style:: Tuple ,
417- dual_path_style:: Tuple ,
409+ time_style:: NamedTuple ,
410+ state_style:: NamedTuple ,
411+ state_bounds_style:: NamedTuple ,
412+ control_style:: NamedTuple ,
413+ control_bounds_style:: NamedTuple ,
414+ costate_style:: NamedTuple ,
415+ path_style:: NamedTuple ,
416+ path_bounds_style:: NamedTuple ,
417+ dual_path_style:: NamedTuple ,
418418 kwargs... ,
419419)
420420 if solution_label != " "
@@ -816,15 +816,15 @@ function __plot(
816816 time:: Symbol ,
817817 control:: Symbol ,
818818 layout:: Symbol ,
819- time_style:: Tuple ,
820- state_style:: Tuple ,
821- state_bounds_style:: Tuple ,
822- control_style:: Tuple ,
823- control_bounds_style:: Tuple ,
824- costate_style:: Tuple ,
825- path_style:: Tuple ,
826- path_bounds_style:: Tuple ,
827- dual_path_style:: Tuple ,
819+ time_style:: NamedTuple ,
820+ state_style:: NamedTuple ,
821+ state_bounds_style:: NamedTuple ,
822+ control_style:: NamedTuple ,
823+ control_bounds_style:: NamedTuple ,
824+ costate_style:: NamedTuple ,
825+ path_style:: NamedTuple ,
826+ path_bounds_style:: NamedTuple ,
827+ dual_path_style:: NamedTuple ,
828828 size= __size_plot (sol, model, control, layout),
829829 kwargs... ,
830830)
@@ -890,12 +890,12 @@ function Plots.plot!(
890890 control_style= control_style,
891891 costate_style= costate_style,
892892 model= nothing ,
893- state_bounds_style= (),
894- control_bounds_style= (),
895- time_style= (),
896- path_style= (),
897- path_bounds_style= (),
898- dual_path_style= (),
893+ state_bounds_style= __plot_style (),
894+ control_bounds_style= __plot_style (),
895+ time_style= __plot_style (),
896+ path_style= __plot_style (),
897+ path_bounds_style= __plot_style (),
898+ dual_path_style= __plot_style (),
899899 kwargs... ,
900900 )
901901end
@@ -932,12 +932,12 @@ function Plots.plot(
932932 control_style= control_style,
933933 costate_style= costate_style,
934934 model= nothing ,
935- state_bounds_style= (),
936- control_bounds_style= (),
937- time_style= (),
938- path_style= (),
939- path_bounds_style= (),
940- dual_path_style= (),
935+ state_bounds_style= __plot_style (),
936+ control_bounds_style= __plot_style (),
937+ time_style= __plot_style (),
938+ path_style= __plot_style (),
939+ path_bounds_style= __plot_style (),
940+ dual_path_style= __plot_style (),
941941 size= size,
942942 kwargs... ,
943943 )
@@ -966,15 +966,15 @@ function Plots.plot!(
966966 control:: Symbol = __control_layout (),
967967 time:: Symbol = __time_normalization (),
968968 solution_label:: String = __plot_label_suffix (),
969- state_style:: Tuple = __plot_style (),
970- state_bounds_style:: Tuple = __plot_style (),
971- control_style:: Tuple = __plot_style (),
972- control_bounds_style:: Tuple = __plot_style (),
973- costate_style:: Tuple = __plot_style (),
974- time_style:: Tuple = __plot_style (),
975- path_style:: Tuple = __plot_style (),
976- path_bounds_style:: Tuple = __plot_style (),
977- dual_path_style:: Tuple = __plot_style (),
969+ state_style:: NamedTuple = __plot_style (),
970+ state_bounds_style:: NamedTuple = __plot_style (),
971+ control_style:: NamedTuple = __plot_style (),
972+ control_bounds_style:: NamedTuple = __plot_style (),
973+ costate_style:: NamedTuple = __plot_style (),
974+ time_style:: NamedTuple = __plot_style (),
975+ path_style:: NamedTuple = __plot_style (),
976+ path_bounds_style:: NamedTuple = __plot_style (),
977+ dual_path_style:: NamedTuple = __plot_style (),
978978 kwargs... ,
979979)
980980
@@ -1018,15 +1018,15 @@ function Plots.plot(
10181018 control:: Symbol = __control_layout (),
10191019 time:: Symbol = __time_normalization (),
10201020 solution_label:: String = __plot_label_suffix (),
1021- state_style:: Tuple = __plot_style (),
1022- state_bounds_style:: Tuple = __plot_style (),
1023- control_style:: Tuple = __plot_style (),
1024- control_bounds_style:: Tuple = __plot_style (),
1025- costate_style:: Tuple = __plot_style (),
1026- time_style:: Tuple = __plot_style (),
1027- path_style:: Tuple = __plot_style (),
1028- path_bounds_style:: Tuple = __plot_style (),
1029- dual_path_style:: Tuple = __plot_style (),
1021+ state_style:: NamedTuple = __plot_style (),
1022+ state_bounds_style:: NamedTuple = __plot_style (),
1023+ control_style:: NamedTuple = __plot_style (),
1024+ control_bounds_style:: NamedTuple = __plot_style (),
1025+ costate_style:: NamedTuple = __plot_style (),
1026+ time_style:: NamedTuple = __plot_style (),
1027+ path_style:: NamedTuple = __plot_style (),
1028+ path_bounds_style:: NamedTuple = __plot_style (),
1029+ dual_path_style:: NamedTuple = __plot_style (),
10301030 size= __size_plot (sol, model, control, layout),
10311031 kwargs... ,
10321032)
0 commit comments