
Hi,
I currently have a layout like this:
grid = gridplot([
[ plot1, plot3, plot5, plot7 ],
[ plot2, plot4, plot6, plot8 ] ],
plot_width=PLOT_WIDTH, plot_height=PLOT_HEIGHT, toolbar_location=None, sizing_mode='scale_width')
which works fine on resolutions where width is greater than height (horizontal)
For vertical resolutions I would like this layout to be:
grid = gridplot([
[ plot1, plot3, ],
[ plot5, plot7 ],
[ plot2, plot4, ],
[ plot6, plot8 ] ],
plot_width=PLOT_WIDTH, plot_height=PLOT_HEIGHT, toolbar_location=None, sizing_mode='scale_width')
Is it possible to have the layout conditional to the screen orientation?
Note that in this case scaling is not enough, as scaling horizontal content on a vertical device makes it unreadable. Ideally I would like to lay things out vertically if the resolution is vertical or becomes vertical due to a rotation.



