Skip to content

Commit c20dd50

Browse files
committed
Conditionally display bin selector
1 parent 8834393 commit c20dd50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ def n_bins_auto(res):
137137
return len(np.histogram_bin_edges(res.bins, bins="auto", range=(min_, max_))) - 1
138138

139139

140+
def display_n_bins(kind):
141+
if kind != "Stacked histogram":
142+
return
143+
144+
return selector_n_bins
145+
146+
140147
def figure(res, palette, n_bins, kind, output_name):
141148
kind = "histogram" if kind == "Stacked histogram" else "boxplot"
142149
plt.close("all")

0 commit comments

Comments
 (0)