We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ea23f commit 80e977cCopy full SHA for 80e977c
1 file changed
panel/simdec.py
@@ -201,9 +201,8 @@ def display_n_bins(kind):
201
202
203
@pn.cache
204
-def xlim_auto(res):
205
- bins = np.concatenate(res.bin_edges)
206
- return (np.min(bins), np.max(bins))
+def xlim_auto(output):
+ return (np.nanmin(output) * 0.95, np.nanmax(output) * 1.05)
207
208
209
@@ -354,7 +353,7 @@ def csv_data(
354
353
visible=show_n_bins,
355
)
356
357
-interactive_xlim = pn.rx(xlim_auto)(interactive_decomposition)
+interactive_xlim = pn.rx(xlim_auto)(interactive_output)
358
selector_xlim = pn.widgets.EditableRangeSlider(
359
name="X-lim",
360
start=interactive_xlim.rx()[0],
0 commit comments