Skip to content

Commit 4c1eecc

Browse files
committed
Rotate the figure 90 degrees
1 parent 858d6a0 commit 4c1eecc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

panel/simdec_app.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,20 @@ def figure_pn(res, res2, palette, n_bins, xlim, ylim, r_scatter, kind, output_na
245245
data, x="x", y="y", hue="c", palette=palette, ax=axs[1][0], legend=False
246246
)
247247

248-
_ = sd.visualization(
249-
bins=res2.bins,
248+
_ = sns.histplot(
249+
data,
250+
y="y",
251+
hue="c",
252+
multiple="stack",
253+
stat="probability",
250254
palette=palette,
251-
n_bins=n_bins,
252-
kind="histogram",
255+
common_bins=True,
256+
common_norm=True,
257+
bins=40,
258+
legend=False,
253259
ax=axs[1][1],
254260
)
255-
axs[1][1].set_xlim(ylim)
261+
axs[1][1].set_ylim(ylim)
256262

257263
return fig
258264

0 commit comments

Comments
 (0)