Skip to content

Commit 2b29d10

Browse files
committed
Set labels
1 parent 25c088b commit 2b29d10

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

panel/simdec_app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ def xlim_auto(output):
212212

213213

214214
@pn.cache
215-
def figure_pn(res, res2, palette, n_bins, xlim, ylim, r_scatter, kind, output_name):
215+
def figure_pn(
216+
res, res2, palette, n_bins, xlim, ylim, r_scatter, kind, output_name, output_2_name
217+
):
216218
plt.close("all")
217219

218220
if kind != "2 outputs":
@@ -244,6 +246,8 @@ def figure_pn(res, res2, palette, n_bins, xlim, ylim, r_scatter, kind, output_na
244246
_ = sns.scatterplot(
245247
data, x="x", y="y", hue="c", palette=palette, ax=axs[1][0], legend=False
246248
)
249+
axs[1][0].set(xlabel=output_name)
250+
axs[1][0].set(ylabel=output_2_name)
247251

248252
_ = sns.histplot(
249253
data,
@@ -511,6 +515,7 @@ def callback_ylim(start, end):
511515
selector_r_scatter,
512516
switch_type_visualization,
513517
selector_output,
518+
selector_2_output,
514519
)
515520

516521
interactive_tableau = pn.bind(

0 commit comments

Comments
 (0)