Bokeh 风格属性设置
来源:互联网 发布:淘宝店类目怎么改 编辑:程序博客网 时间:2024/06/06 20:45
http://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#
使用Palettes
Palettes储存了一系列RGBA值来设置颜色地图。
>>> from bokeh.palettes import Spectral6>>> Spectral6['#3288bd', '#99d594', '#e6f598', '#fee08b', '#fc8d59', '#d53e4f']
可视化调色板
- line properties line color, width, etc.
- fill properties fill color, alpha, etc.
- text properties font styles, colors, etc.
Line Properties
- line_color
- line_width
- line_alpha
- line_join
- line_cap
- line_dash
- line_dash_offset
Fill Properties
- fill_color
- fill_alpha
Text Properties
- text_font
- text_font_size
- text_font_style
- text_color
- text_alpha
- text_align
- text_baseline
Visible Property
Specifying Colors
Styling Arrow Annotations
Selecting Plot Objects(选择做图对象)
Plots
Plot objects themselves have many visual characteristics that can be styled: the dimensions of the plot, backgrounds, borders, outlines, etc.
Dimensions
Responsive Dimensions
Title
from bokeh.plotting import figure, output_file, showoutput_file("title.html")p = figure(plot_width=400, plot_height=400, title="Some Title")p.title.text_color = "olive"p.title.text_font = "times"p.title.text_font_style = "italic"p.circle([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)show(p)
Background
from bokeh.plotting import figure, output_file, showoutput_file("background.html")p = figure(plot_width=400, plot_height=400)p.background_fill_color = "beige"p.background_fill_alpha = 0.5p.circle([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)show(p)
Border
Outline
Glyphs
Selected and Unselected Glyphs
Hover Inspections
Tool Overlays
Axes
Labels
Bounds
Tick Locations
Tick Lines
Tick Label Formats
Tick Label Orientation
Grids
Lines
Minor Lines
Bands
Bounds
Legends
Location
Orientation
Label Text
Border
Background
Dimensions
阅读全文
0 0
- Bokeh 风格属性设置
- bokeh 设置做图工具
- bokeh
- OWC学习笔记-电子表格(Spreadsheet)风格属性设置
- Ubuntu设置Redhat风格的SHELL提示符PS1属性
- Ubuntu设置Redhat风格的SHELL提示符PS1属性
- 在C++中用C#风格设置类的属性值
- Bokeh库
- Bokeh 命令
- ApachePOI导出exce,设置单元格风格的属性和设置字体风格的属性的两个工具类,POI宽度和excel 像素转换
- Yii 属性编码风格
- Eclipse设置编程风格
- 对话框 设置XP风格
- 设置ListCtrl的风格
- 设置窗口风格
- Eclipse设置编程风格
- php设置编码风格
- Qt主题风格设置
- [LeetCode] 605. Can Place Flowers
- Java使用RSA加密解密签名及校验
- 杨大帅开在CSDN开博了!欢迎大咖大牛们关注!
- 在Windows2008 R2系统中无法看见Microsoft Excel Application的问题解决方案
- winform打开报错 说oracle有问题 无法解决 有大神支招么
- Bokeh 风格属性设置
- Linux gdb调试常用命令
- 《悟透javascript》-摘抄2.0
- JDBC连接池的简单实现
- Java正则表达式获得字符串中数字
- 断线重连总结
- 清除浮动影响的方法
- 448. Find All Numbers Disappeared in an Array
- 离歌且莫翻新阕