Skip to content

Commit f7a8b0e

Browse files
committed
replace Plots with ControlPlots step one
1 parent ecf38de commit f7a8b0e

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ version = "0.1.0"
66
[deps]
77
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
88
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
9+
ControlPlots = "23c2ee80-7a9e-4350-b264-8e670f12517c"
910
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1011
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
1112
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1213
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1314
Measures = "442fdcdd-2543-5da2-b0f3-8c86c306513e"
14-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1515
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1616
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1717
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
18+
19+
[compat]
20+
ControlPlots = "0.2.5"

src/VortexStepMethod.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using Logging
66
using Statistics
77
using Colors
88
using DelimitedFiles
9-
using Plots
9+
using ControlPlots
1010
using Measures
1111
using LaTeXStrings
1212

src/color_palette.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ function set_plot_style()
9595
end
9696
end
9797

98-
"""
99-
apply_palette!(p::Plots.Plot, colors::Vector{String})
98+
# """
99+
# apply_palette!(p::Plots.Plot, colors::Vector{String})
100100

101-
Apply the color palette to a plot.
102-
"""
103-
function apply_palette!(p::Plots.Plot, colors::Vector{String})
104-
for (i, series) in enumerate(p.series_list)
105-
color_name = colors[mod1(i, length(colors))]
106-
series.plotattributes[:linecolor] = get_color(color_name)
107-
end
108-
return p
109-
end
101+
# Apply the color palette to a plot.
102+
# """
103+
# function apply_palette!(p::Plots.Plot, colors::Vector{String})
104+
# for (i, series) in enumerate(p.series_list)
105+
# color_name = colors[mod1(i, length(colors))]
106+
# series.plotattributes[:linecolor] = get_color(color_name)
107+
# end
108+
# return p
109+
# end

0 commit comments

Comments
 (0)