Skip to content

Commit

Permalink
make plot extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ocots committed Jun 20, 2024
1 parent 7d7ce56 commit 768f804
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 504 deletions.
7 changes: 6 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MLStyle = "d8e11817-5142-5d16-987a-aa16d5891078"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
ReplMaker = "b873ce64-0db9-51f5-a568-4457d8e49576"
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[weakdeps]
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

[extensions]
CTBasePlots = "Plots"

[compat]
DataStructures = "0.18"
DifferentiationInterface = "0.5"
Expand Down
3 changes: 0 additions & 3 deletions src/CTBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import ForwardDiff
using Interpolations: linear_interpolation, Line, Interpolations # for default interpolation
using MLStyle # pattern matching
using Parameters # @with_kw: to have default values in struct
using Plots
using Printf # to print an Opt imalControlModel
using DataStructures # OrderedDict for aliases
using Unicode # unicode primitives
Expand Down Expand Up @@ -205,7 +204,6 @@ include("utils.jl")
include("checking.jl")
#
include("print.jl")
include("plot.jl")
#
include("functions.jl")
include("model.jl")
Expand Down Expand Up @@ -254,7 +252,6 @@ export nlp_constraints, constraints_labels

# solution
export OptimalControlSolution
export plot, plot!

# initialization
export OCPInit
Expand Down
Loading

0 comments on commit 768f804

Please sign in to comment.