bokeh.plotting API

http://bokeh.pydata.org/en/latest/docs/reference/plotting.html

figure(**kwargs)

返回一个画板对象(Figure)

参数类型描述
active_dragEither ( Auto , String , Instance ( Drag ) )默认激活某个drag工具
active_inspectEither ( Auto , String , Instance ( Inspection ), Seq ( Instance ( Inspection ) ) )默认激活inspect工具
active_scrollEither ( Auto , String , Instance ( Scroll ) )默认激活scroll工具
active_tapEither ( Auto , String , Instance ( Tap ) )默认激活某个tap工具
toolsEither ( String , Seq ( Either ( String , Instance ( Tool ) ) ) )选择工具
(y)x_axis_labelStringY,X轴标签
(y)x_axis_locationEnum ( VerticalLocation )Y,X轴位置
(y)x_axis_typeEither ( Auto , Enum ( Enumeration(linear, log, datetime) ) )Y,X轴数据类型
(y)x_minor_ticksEither ( Auto , Int )Number of minor ticks between adjacent x-axis major ticks.
(y)x_rangeEither ( Tuple ( Float , Float ), Seq ( String ), Instance ( Range ) )Y,X轴坐标范围

class Figure(*arg, **kw)

属性可以由figure方法设置,也可以由对象设置
一下方法全部返回一个GlyphRenderer对象
继承了class Plot(**kwargs)
1. annular_wedge(x, y, inner_radius, outer_radius, start_angle, end_angle, direction=’anticlock’, **kwargs)
2. annulus(x, y, inner_radius, outer_radius, **kwargs)
3. arc(x, y, radius, start_angle, end_angle, direction=’anticlock’, **kwargs)
4. asterisk(x, y, size=4, angle=0.0, **kwargs)
5. bezier(x0, y0, x1, y1, cx0, cy0, cx1, cy1, **kwargs)
6. circle(x, y, **kwargs)
7. circle_cross(x, y, size=4, angle=0.0, **kwargs)
8. circle_x(x, y, size=4, angle=0.0, **kwargs)
9. cross(x, y, size=4, angle=0.0, **kwargs)
10. diamond(x, y, size=4, angle=0.0, **kwargs)
11. diamond_cross(x, y, size=4, angle=0.0, **kwargs)
12. ellipse(x, y, width, height, angle=0.0, **kwargs)
13. hbar(y, height, right, left=0, **kwargs)
14. image(image, x, y, dw, dh, dilate=False, **kwargs)
15. image_rgba(image, x, y, dw, dh, dilate=False, **kwargs)
16. image_url(url, x, y, w, h, angle=0, global_alpha=1.0, dilate=False, **kwargs)
17. inverted_triangle(x, y, size=4, angle=0.0, **kwargs)
18. line(x, y, **kwargs)
19. multi_line(xs, ys, **kwargs)
20. oval(x, y, width, height, angle=0.0, **kwargs)
21. patch(x, y, **kwargs)
22. patches(xs, ys, **kwargs)
23. quad(left, right, top, bottom, **kwargs)
24. quadratic(x0, y0, x1, y1, cx, cy, **kwargs)
25. ray(x, y, length, angle, **kwargs)
26. rect(x, y, width, height, angle=0.0, dilate=False, **kwargs)
27. scatter(*args, **kwargs)
28. segment(x0, y0, x1, y1, **kwargs)
29. square(x, y, size=4, angle=0.0, **kwargs)
30. square_cross(x, y, size=4, angle=0.0, **kwargs)
31. square_x(x, y, size=4, angle=0.0, **kwargs)
32. text(x, y, text=’text’, angle=0, x_offset=0, y_offset=0, **kwargs)
33. triangle(x, y, size=4, angle=0.0, **kwargs)
34. vbar(x, width, top, bottom=0, **kwargs)
35. wedge(x, y, radius, start_angle, end_angle, direction=’anticlock’, **kwargs)
36. x(x, y, size=4, angle=0.0, **kwargs)

class Plot(**kwargs)

参数类型描述
aboveList ( Instance ( Renderer ) )A list of renderers to occupy the area above of the plot.
background_fill_alphaNumberSpecThe fill alpha for the plot background style.
background_fill_colorColorSpecThe fill color for the plot background style.
belowList ( Instance ( Renderer ) )A list of renderers to occupy the area below of the plot.
border_fill_alphaNumberSpecThe fill alpha for the plot border style.
border_fill_colorColorSpecThe fill color for the plot border style.
extra_(y)x_rangesDict ( String , Instance ( Range ) )Additional named ranges to make available for mapping x-coordinates.
h_symmetryBoolWhether the total horizontal padding on both sides of the plot will be made equal
hidpiBoolWhether to use HiDPI mode when available
inner_heightIntThis is the exact height of the plotting canvas, i.e. the height of the actual plot, without toolbars etc.
inner_widthIntThis is the exact width of the plotting canvas, i.e. the width of the actual plot, without toolbars etc.
layout_heightIntThis is the exact height of the layout, i.e. the height of the actual plot, with toolbars etc.
layout_widthIntThis is the exact width of the layout, i.e. the height of the actual plot, with toolbars etc.
leftList ( Instance ( Renderer ) )A list of renderers to occupy the area to the left of the plot.
lod_factorIntDecimation factor to use when applying level-of-detail decimation.
lod_intervalIntInterval (in ms) during which an interactive tool event will enable level-of-detail downsampling.
lod_thresholdIntA number of data points, above which level-of-detail downsampling may be performed by glyph renderers.
lod_timeoutIntTimeout (in ms) for checking whether interactive tool events are still occurring.
min_borderIntA convenience property to set all all the min_border_X properties to the same value.
min_border_bottomIntMinimum size in pixels of the padding region below the bottom of the central plot region.
min_border_leftIntMinimum size in pixels of the padding region to the left of the central plot region.
min_border_rightIntMinimum size in pixels of the padding region to the right of the central plot region.
min_border_topIntMinimum size in pixels of the padding region above the top of the central plot region.
outline_line_alphaNumberSpecThe line alpha for the plot border outline.
outline_line_capEnum ( LineCap )The line cap for the plot border outline.
outline_line_colorColorSpecThe line color for the plot border outline.
outline_line_dashDashPattern
outline_line_dash_offsetInt
outline_line_joinEnum ( LineJoin )
outline_line_widthNumberSpec
output_backendEnum ( OutputBackend )
plot_heightInt
plot_widthInt
renderersList ( Instance ( Renderer ) )
rightList ( Instance ( Renderer ) )
titleInstance ( Title )
title_locationEnum ( Location )
tool_eventsInstance ( ToolEvents )
toolbarInstance ( Toolbar )
toolbar_locationEnum ( Location )
toolbar_stickyBool
v_symmetryBool
(y)x_rangeInstance ( Range )
(y)x_scaleInstance ( Scale )
add_dynamic_image(image_source, **kw)
add_glyph(source_or_glyph, glyph=None, **kw)
add_layout(obj, place=’center’)
add_tile(tile_source, **kw)
add_tools(*tools)
column(col, gridplot)
row(row, gridplot)[source]
select(*args, **kwargs)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值