Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2af4445

Browse files
committed
Fix default value of the named parameter in
1 parent c2347d1 commit 2af4445

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/style_sheets/style_sheets_reference.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,9 @@ def plot_histograms(ax, prng, nb_samples=10000):
9898
return ax
9999

100100

101-
def plot_figure(style_label=None):
101+
def plot_figure(style_label=""):
102102
"""Setup and plot the demonstration figure with a given style.
103-
104-
If `style_label` is None, fall back to the `default` style.
105103
"""
106-
if style_label is None:
107-
style_label = 'default'
108-
109104
# Use a dedicated RandomState instance to draw the same "random" values
110105
# across the different figures.
111106
prng = np.random.RandomState(96917002)

0 commit comments

Comments
 (0)