We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08842c0 commit da28df6Copy full SHA for da28df6
2 files changed
panel/simdec.py
@@ -202,7 +202,8 @@ def display_n_bins(kind):
202
203
@pn.cache
204
def xlim_auto(res):
205
- return (np.min(res.bin_edges), np.max(res.bin_edges))
+ bins = np.concatenate(res.bin_edges)
206
+ return (np.min(bins), np.max(bins))
207
208
209
src/simdec/decomposition.py
@@ -168,6 +168,8 @@ def statistic_(inputs):
168
splits = np.array_split(sorted_inputs[:, i], states_)
169
bin_edges_ = [splits_[0] for splits_ in splits]
170
bin_edges_.append(splits[-1][-1]) # last point to close the edges
171
+ # bin_edges_ = np.unique(bin_edges_) # remove duplicate points, sorted
172
+ bin_edges_ += 1e-10 * np.linspace(0, 1, len(bin_edges_))
173
bin_edges.append(bin_edges_)
174
175
res = stats.binned_statistic_dd(
0 commit comments