Skip to content

Commit d18efc8

Browse files
committed
set_plot_style works now
1 parent 1ae0107 commit d18efc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/color_palette.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Set the default style for plots using LaTeX.
7171
"""
7272
function set_plot_style()
7373
# plt.style.use('seaborn-whitegrid')
74-
plt.style.use("seaborn-v0_8-whitegrid")
74+
# plt.style.use("seaborn-v0_8-whitegrid")
7575
rcParams = plt.PyDict(plt.matplotlib."rcParams")
7676
rcParams["text.usetex"] = true
7777
rcParams["font.family"] = "serif"

src/plotting.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ end
107107
Create a 3D plot of wing geometry including panels and filaments.
108108
"""
109109
function create_geometry_plot(wing_aero, title, view_elevation, view_azimuth)
110+
set_plot_style()
111+
110112
panels = wing_aero.panels
111113
va = isa(wing_aero.va, Tuple) ? wing_aero.va[1] : wing_aero.va
112114

@@ -171,7 +173,7 @@ function create_geometry_plot(wing_aero, title, view_elevation, view_azimuth)
171173
ax.set_ylabel("y")
172174
ax.set_zlabel("z")
173175
set_axes_equal!(ax)
174-
176+
175177
# Set the initial view
176178
ax.view_init(elev=view_elevation, azim=view_azimuth)
177179

0 commit comments

Comments
 (0)