1
正如你所见,here,我在同一行有两个图。我需要根据屏幕大小缩放整行,但要保持绘图长度比。根据屏幕缩放散景
我尝试了参数:sizing_mode = 'scale width'
,但它不起作用,因为它会改变图的高度。
p1 = figure(plot_width=NewRanges_Row1[0], plot_height=height, tools=[hover1, TOOLS], title="CHROMOSOME_1",
toolbar_location="above", responsive = True)
p1.circle('x1', 'y1', fill_color=chromosome1_colors, line_color=chromosome1_colors,
fill_alpha=chromosome1_transparency, size=7, source=source1)
p2 = figure(plot_width=NewRanges_Row1[1], plot_height=height, tools=[hover22, TOOLS], title="CHROMOSOME_22")
p2.circle('x22', 'y22', fill_color=chromosome22_colors, line_color=chromosome22_colors,
fill_alpha=chromosome22_transparency, size=7, source=source22)
凡P1是排第一的情节,和P2是排第二的情节。
有没有办法根据屏幕尺寸自动缩放散景图,同时保持同一行的宽度比例?