Skip to content

Commit

Permalink
modify for backwards-compatibility with matplotlib 3.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Apr 22, 2023
1 parent 05cc1a4 commit 321b746
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aerosandbox/geometry/airfoil/airfoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,14 +682,17 @@ def plot_polars(self,
plt.legend(
title="Reynolds Number",
labels=[eng_string(Re) for Re in Res],
ncols=2,
ncol=2,
# Note: `ncol` is old syntax; preserves backwards-compatibility with matplotlib 3.5.x.
# New matplotlib versions use `ncols` instead.
fontsize=8,
loc='lower right'
)

if show:
p.show_plot(
f"Polar Functions for {self.name} Airfoil"
f"Polar Functions for {self.name} Airfoil",
legend=False,
)

def local_camber(self,
Expand Down

0 comments on commit 321b746

Please sign in to comment.