Skip to content

Commit 5312361

Browse files
committed
Adjusting the inputs for call to Seaborn barplot, similar to the way lesson01\RollDieDynamic.py was updated.
1 parent 31dc3bc commit 5312361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/lesson05/RollDie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
title = f'Rolling a Six-Sided Die {len(rolls):,} Times'
1616
sns.set_style('whitegrid') # white backround with gray grid lines
17-
axes = sns.barplot(values, frequencies, palette='bright') # create bars
17+
axes = sns.barplot(x=values, y=frequencies, palette='bright') # create bars
1818
axes.set_title(title) # set graph title
1919
axes.set(xlabel='Die Value', ylabel='Frequency') # label the axes
2020

0 commit comments

Comments
 (0)