![]() ![]() add_tools ( zoom_in_red, zoom_out_red ) select = Select ( title = "Zoom together:", options =, value = wheel_zoom. add_tools ( zoom_in_blue, zoom_out_blue ) zoom_in_red = ZoomInTool ( renderers =, description = "Zoom in red circles" ) zoom_out_red = ZoomOutTool ( renderers =, description = "Zoom out red circles" ) p. This function creates a Figure model that includes methods for adding different kinds of glyphs to a plot. active_scroll = wheel_zoom zoom_in_blue = ZoomInTool ( renderers =, description = "Zoom in blue circles" ) zoom_out_blue = ZoomOutTool ( renderers =, description = "Zoom out blue circles" ) p. The figure function is at the core of the otting interface. add_layout ( ax3, 'below' ) wheel_zoom = WheelZoomTool () p. It stars Maika Monroe and Matt O'Leary as two American tourists in Iceland who find everyone else on the island has mysteriously vanished. add_layout ( ax2, 'left' ) ax3 = LinearAxis ( axis_label = "red circles", x_range_name = "foo", y_range_name = "foo", ) ax3. Bokeh is a 2017 science fiction drama film written and directed by Geoffrey Orthwein and Andrew Sullivan. scatter ( x, y2, color = red, size = 8, x_range_name = "foo", y_range_name = "foo", ) ax2 = LinearAxis ( axis_label = "red circles", x_range_name = "foo", y_range_name = "foo", ) ax2. ![]() extra_y_ranges = Range1d ( 0, 100 ) red_circles = p. extra_x_ranges = Range1d ( - 2 * pi, 2 * pi ) p. scatter ( x, y, line_color = "black", fill_color = blue, size = 12 ) p. background_fill_color = "#fafafa" blue_circles = p. From numpy import arange, linspace, pi, sin from bokeh.layouts import column from bokeh.models import ( CustomJS, LinearAxis, Range1d, Select, WheelZoomTool, ZoomInTool, ZoomOutTool ) from bokeh.palettes import Sunset6 from otting import figure, show x = arange ( - 2 * pi, 2 * pi, 0.2 ) y = sin ( x ) y2 = linspace ( 0, 100, len ( x )) blue, red = Sunset6, Sunset6 p = figure ( x_range = ( - 2 * pi, 2 * pi ), y_range = ( - 1, 1 ), tools = "pan,box_zoom,save,reset" ) p. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |