From 531236183ac4d7b6fc36b4f5d0df84090d1876fc Mon Sep 17 00:00:00 2001 From: Ryan Chapple Date: Thu, 6 Jun 2024 11:50:45 -0700 Subject: [PATCH] Adjusting the inputs for call to Seaborn barplot, similar to the way lesson01\RollDieDynamic.py was updated. --- examples/lesson05/RollDie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lesson05/RollDie.py b/examples/lesson05/RollDie.py index e49ab9b..d6f07fe 100755 --- a/examples/lesson05/RollDie.py +++ b/examples/lesson05/RollDie.py @@ -14,7 +14,7 @@ title = f'Rolling a Six-Sided Die {len(rolls):,} Times' sns.set_style('whitegrid') # white backround with gray grid lines -axes = sns.barplot(values, frequencies, palette='bright') # create bars +axes = sns.barplot(x=values, y=frequencies, palette='bright') # create bars axes.set_title(title) # set graph title axes.set(xlabel='Die Value', ylabel='Frequency') # label the axes