http://bokeh.pydata.org/en/latest/docs/reference/models/tools.html Pan/Drag class Drag(**kwargs) Click/Tap class Tap(**kwargs) Scroll/Pinch class Scroll(**kwargs)[source] Actions class Action(**kwargs)[source] Inspectors class Inspection(**kwargs) 以上类都继承于bokeh.models.tools.Tool
Pan/Drag
class BoxSelectTool(**kwargs)
属性&方法
类型
描述
callback
Instance ( Callback )
在选取结束后回调函数
dimensions
Enum ( Dimensions )
选取的维度(height,width,both)
names
List ( String )
A list of names to query for. If set, only renderers that have a matching value for their name attribute will be used
overlay
Instance ( BoxAnnotation )
在选取区域里注释,选取过程的区域的样式设置
renderers
List ( Instance ( Renderer ) )
An explicit list of renderers to hit test again. If unset, defaults to all renderers on a plot.
select_every_mousemove
Bool
Whether a selection computation should happen on every mouse event, or only once, when the selection region is completed. Default: False
class BoxZoomTool(**kwargs)
属性&方法
类型
描述
dimensions
Enum ( Dimensions )
选取的维度(height,width,both)
match_aspect
Bool
Whether the box zoom region should be restricted to have the same aspect ratio as the plot region.
overlay
Instance ( BoxAnnotation )
A shaded annotation drawn to indicate the selection region.
class LassoSelectTool(**kwargs)
属性&方法
类型
描述
callback
Instance ( Callback )
names
List ( String )
overlay
Instance ( PolyAnnotation )
renderers
List ( Instance ( Renderer ) )
select_every_mousemove
Bool
class PanTool(**kwargs)
属性&方法
类型
描述
dimensions
Enum ( Dimensions )
class ResizeTool(**kwargs)
调整整个窗口的大小
Click/Tap
class Tap(**kwargs)
class PolySelectTool(**kwargs)
属性&方法
类型
描述
names
List ( String )
overlay
Instance ( PolyAnnotation )
renderers
List ( Instance ( Renderer ) )
class TapTool(**kwargs)
属性&方法
类型
描述
behavior
Enum ( Enumeration(select, inspect) )
callback
Instance ( Callback )
names
List ( String )
renderers
List ( Instance ( Renderer ) )
Scroll/Pinch
class WheelPanTool(**kwargs)
属性&方法
类型
描述
dimension
Enum ( Dimension )
class WheelZoomTool(**kwargs)
属性&方法
类型
描述
dimensions
Enum ( Dimensions )
Actions
class UndoTool(**kwargs)
class RedoTool(**kwargs)
class ResetTool(**kwargs)
属性&方法
类型
描述
reset_size
Bool
class HelpTool(**kwargs)[source]
属性&方法
类型
描述
help_tooltip
String
Tooltip displayed when hovering over the help icon.
When showing tooltips for lines, designates whether the tooltip position should be the “previous” or “next” points on the line, the “nearest” point to the current mouse position, or “interpolate” along the line to the current mouse position.