Skip to content

Commit 2b42a7e

Browse files
committed
Improve example
1 parent 6345fbc commit 2b42a7e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/menu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ options = ["bench_get_wind = include(\"bench_get_wind.jl\")",
55
"plot_wind_vs_time_ = include(\"plot_wind_vs_time.jl\")",
66
"plot_windfield_ = include(\"plot_windfield.jl\")",
77
"new_windfields = include(\"new_windfields.jl\")",
8-
"show_grid = include(\"show_grid.jl\")",
8+
"show_grid_ = include(\"show_grid.jl\")",
99
"quit"]
1010

1111
function example_menu()

examples/show_grid.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
using Pkg
22
if ! ("ControlPlots" keys(Pkg.project().dependencies))
3-
using TestEnv; TestEnv.activate()
3+
Pkg.activate("examples")
44
end
55
using ControlPlots, AtmosphericModels
66

7-
function showGrid(x, y, z)
7+
function show_grid(x, y, z)
88
"""
99
x: downwind direction
1010
z: up
1111
y: orthogonal to x and z
1212
"""
13-
fig = plt.figure()
13+
fig = plt.figure("Show Grid")
1414
ax = fig.add_subplot(111, projection="3d")
1515
ax.scatter(x, y, z; s=2, c="blue", alpha=0.1)
1616
ax.set_xlabel("X Label")
@@ -21,4 +21,4 @@ end
2121

2222
grid = AtmosphericModels.create_grid()
2323
x, y, z = grid
24-
showGrid(x, y, z)
24+
show_grid(x, y, z)

0 commit comments

Comments
 (0)