fill_color="colors", radius="size", #size="size", fill_alpha=.75) plot.toolbar.autohide = True plot.add_glyph(CACHE.plot.nodes.source, nodes_glyph) nodes_info = Label(x=10, y=535, x_units="screen", y_units="screen", text="prout", render_mode="css", **STATIC.label) plot.add_layout(nodes_info) nodes_info.visible = False CACHE.plot.nodes_info = nodes_info CACHE.plot.p = plot Setter.nodes_metrics(True) # ---------- Set all callbacks and buttons ---------- # file_input = FileInput( accept=".csv" ) # https://docs.bokeh.org/en/latest/docs/reference/models/widgets.inputs.html#bokeh.models.widgets.inputs.FileInput file_input.on_change('value', FileInputHandler.callback) CACHE.widgets.file_input = file_input renderer_button = Button(button_type="warning",
source=soil_label_data) plot.add_layout(soil_labels) error_c = Label(x=150, y=300, x_units='screen', y_units='screen', render_mode='css', text="Set c = 0 or drop EWT below wall", text_font_style='bold', text_align='center', border_line_width=2, text_font_size='12pt', text_color='red') plot.add_layout(error_c) error_c.visible = False ############################################################################## ### STRESS PLOT ### ############################################################################## sigma_y_dry = np.arange(0.0001, layer_dry.Hl(), 0.1) sigma_x_dry = layer_dry.sigma_AEH(sigma_y_dry) sigma_y_wet = np.arange(0.0001, layer_wet.Hl(), 0.1) sigma_x_wet = (layer_wet.sigma_AEH(sigma_y_wet) + layer_dry.sigma_AEH(layer_dry.Hl())) x_sigma_all = sigma_x_dry.tolist() x_sigma_all.extend(sigma_x_wet.tolist()) x_sigma_all.extend([0, 0]) y_sigma_all = sigma_y_dry.tolist()