Skip to content

Commit dfa519b

Browse files
committed
add test_plotting
1 parent 3ffa1dd commit dfa519b

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/VortexStepMethod.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export calculate_results, solve_circulation_distribution
1818
export add_section!, set_va!
1919
export calculate_span, calculate_projected_area
2020
export plot_wing, plot_circulation_distribution, plot_geometry, plot_distribution, plot_polars
21+
export show_plot
2122

2223
"""
2324
const MVec3 = MVector{3, Float64}

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ println("Running tests...")
88
include("test_semi_infinite_filament.jl")
99
include("test_wing_aerodynamics.jl")
1010
include("test_wing_geometry.jl")
11+
include("test_plotting.jl")
1112
end

test/test_plotting.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using VortexStepMethod
2+
using ControlPlots
3+
using Test
4+
5+
plt.ioff()
6+
@testset "Plotting" begin
7+
fig = plt.plot([1,2,3])
8+
@test fig isa Vector{plt.PyObject}
9+
show_plot(fig)
10+
end
11+
plt.ion()

0 commit comments

Comments
 (0)