![]() The undo tool restores the previous state of the plot. They are typically modal or immediate-acting. Actions ¶Īctions are operations that are activated only when their button in the toolbar Min and max values and ranges, preventing panning beyond these values. The wheel pan tool translates the plot window along a specifiedĭimension without changing the window’s aspect ratio. 'xwheel_zoom' and 'ywheel_zoom', respectively. The x-axis or the y-axis by setting the dimensions property toĪ list containing width or height. You can configure the wheel zoom tool to act only on either It will respect any min and max values and ranges, preventing You can use the wheel zoom tool to zoom the plot in and out, centering on the current Name: 'wheel_zoom', 'xwheel_zoom', 'ywheel_zoom' Only one scroll/pinch tool may be active at a time. Use these tools by pinching (on touch devices) or scrolling (on To make a multiple selection, press the SHIFT key. Running the code and changing the toolbar_location value. The code below positions the toolbar below the plot. If you would like to hide the toolbar entirely, pass None. You can specify the toolbar location by passing the toolbar_location Positioning the toolbar ¶īy default, Bokeh plots come with a toolbar above the plot. This chapter contains information about all the individual tools and describes how Since they may respond to several gestures at once, anĮdit tool when activated will potentially deactivate multiple single-gesture tools. These are sophisticated multi-gesture tools that can add, delete, or modify ![]() ![]() Way, such as the HoverTool or CrosshairTool. These are passive tools that report information or annotate plots in some These are immediate or modal operations that are only activated when theirīutton in the toolbar is pressed, such as the ResetTool. The active tool is highlighted on the toolbar next to the These tools respond to single gestures, such as a pan movement.įor each type of gesture, only one tool can be active at any given time. Information, to change plot parameters such as zoom level or range extents, ![]() Lod_timeout ms.Bokeh comes with a number of interactive tools that you can use to report Once level-of-detail mode is enabled, a check is made every Timeout (in ms) for checking whether interactive tool events are still lod_threshold ¶Ī number of data points, above which level-of-detail downsampling mayīe performed by glyph renderers. Interval (in ms) during which an interactive tool event will enable There are four properties on Plot objects that controlĭecimation factor to use when applying level-of-detail decimation. General sense of the interaction to be preserved mid-flight, while maintaining The plot only draws some small fraction of data points. The basic idea is that during interactive operations (e.g., panning or zooming), Running a Bokeh Server for more information. Such an approach is unavoidable past a certain data size. circle ( 'x', 'y', size = 20, source = source ) show ( p )Īnother option, when dealing with very large data volumes, is to use theīokeh Server to perform downsampling on data before it is sent to theīrowser. From otting import figure, output_file, show, ColumnDataSource from bokeh.models import HoverTool output_file ( "toolbar.html" ) source = ColumnDataSource ( data = dict ( x =, y =, desc =, imgs = ) ) hover = HoverTool ( tooltips = """ Location ($x, $y) """ ) p = figure ( plot_width = 400, plot_height = 400, tools =, title = "Mouse over the dots" ) p.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |