Union, Tap, None ] = Either ( Null, Auto, Instance ( Tap ), default = "auto", help = """ Specify a tap/click tool to be active when the plot is displayed. ![]() Union, Scroll, None ] = Either ( Null, Auto, Instance ( Scroll ), default = "auto", help = """ Specify a scroll/pinch tool to be active when the plot is displayed. Sequence, None ] = \Įither ( Null, Auto, Instance ( InspectTool ), Seq ( Instance ( InspectTool )), default = "auto", help = """ Specify an inspection tool or sequence of inspection tools to be active when the plot is displayed. Union, Drag, None ] = Either ( Null, Auto, Instance ( Drag ), default = "auto", help = """ Specify a drag tool to be active when the plot is displayed. class Toolbar ( ToolbarBase ): ''' Collect tools to display for a single plot. renderers import DataRenderer, GlyphRenderer #- # Globals and constants #- _all_ = ( 'Action', 'ActionTool', 'Bo圎ditTool', 'BoxSelectTool', 'BoxZoomTool', 'CrosshairTool', 'CustomAction', 'CustomJSHover', 'Drag', 'EditTool', 'FreehandDrawTool', 'HelpTool', 'HoverTool', 'Inspection', 'InspectTool', 'Gesture', 'GestureTool', 'LassoSelectTool', 'LineEditTool', 'PanTool', 'PointDrawTool', 'PolyDrawTool', 'PolyEditTool', 'PolySelectTool', 'ProxyToolbar', 'RangeTool', 'RedoTool', 'ResetTool', 'SaveTool', 'Scroll', 'Tap', 'TapTool', 'Tool', 'Toolbar', 'ToolbarBase', 'ToolbarBox', 'UndoTool', 'WheelPanTool', 'WheelZoomTool', 'ZoomInTool', 'ZoomOutTool', ) #- # General API #. glyphs import ( Line, LineGlyph, MultiLine, Patches, Rect, XYGlyph, ) from. annotations import BoxAnnotation, PolyAnnotation from. import ( INCOMPATIBLE_BOX_EDIT_RENDERER, INCOMPATIBLE_LINE_EDIT_INTERSECTION_RENDERER, INCOMPATIBLE_LINE_EDIT_RENDERER, INCOMPATIBLE_POINT_DRAW_RENDERER, INCOMPATIBLE_POLY_DRAW_RENDERER, INCOMPATIBLE_POLY_EDIT_RENDERER, INCOMPATIBLE_POLY_EDIT_VERTEX_RENDERER, NO_RANGE_TOOL_RANGES, ) from. core.properties import ( Alpha, Auto, Bool, Color, Date, Datetime, Dict, Either, Enum, Float, Image, Instance, Int, List, NonNullable, Null, Nullable, Override, Percent, Seq, String, Tuple, ) from. core.enums import ( Anchor, Dimension, Dimensions, Location, SelectionMode, TooltipAttachment, TooltipFieldFormatter, ) from. ![]() getLogger ( _name_ ) #- # Imports #- # Standard library imports import difflib import typing as tp # External imports from typing_extensions import Literal # Bokeh imports from. ''' #- # Boilerplate #- from _future_ import annotations import logging # isort:skip log = logging. Inspectors are passive tools that merely report information or annotate the plot in some way, and may always be active regardless of what other tools are currently active. Actions are immediate or modal operations that are only activated when their button in the toolbar is pressed. The active tool is indicated on the toolbar by a highlight next to the tool. hlist:: :columns: 5 * Pan/Drag * Click/Tap * Scroll/Pinch * Actions * Inspectors For the first three comprise the category of gesture tools, and only one tool for each gesture can be active at any given time. ![]() There are five types of tool interactions. #- ''' Bokeh comes with a number of interactive tools. ![]() # The full license is in the file LICENSE.txt, distributed with this software. #- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |