I’ve noticed that these 2 do not work together, e.g. trying to loop over the layout dimensions to eliminate axis
layout = layout.cols(len(2))
layout_shape = layout.rx.value.shape
for y_overlay in range(layout_shape[0]):
for x_overlay in range(layout_shape[1]):
# Eliminate yaxis except for left-most plot
if x_overlay > 0:
layout[y_overlay, x_overlay].opts(yaxis=None)
# Eliminate xaxis except for bottom-most plot
if y_overlay != layout_shape[0] - 1:
layout[y_overlay, x_overlay].opts(xaxis=None)
# Eliminate legends except for bottom-right plot
if y_overlay != layout_shape[0] - 1 or x_overlay != layout_shape[1] - 1:
layout[y_overlay, x_overlay].opts(show_legend=False,
legend_position="top_right")
This part worked outside of param.rx
or when using .rx.watch
+ param.bind