Bokeh 简明教程
Bokeh - Area Plots
面积图是两个共享公共索引的序列之间的填充区域。Bokeh 的图形类有以下两种方法:
Area plots are filled regions between two series that share a common index. Bokeh’s Figure class has two methods as follows −
varea()
varea() 方法的输出是一个垂直有向区域,它有一个 x 坐标数组和两个 y 坐标数组 (y1 和 y2),它们将在之间填写。
Output of the varea() method is a vertical directed area that has one x coordinate array, and two y coordinate arrays, y1 and y2, which will be filled between.
1 |
x |
The x-coordinates for the points of the area. |
2 |
y1 |
The y-coordinates for the points of one side of the area. |
3 |
y2 |
The y-coordinates for the points of the other side of the area. |
harea()
另一方面,harea() 方法需要 x1、x2 和 y 参数。
The harea() method on the other hand needs x1, x2 and y parameters.
1 |
x1 |
The x-coordinates for the points of one side of the area. |
2 |
x2 |
The x-coordinates for the points of the other side of the area. |
3 |
y |
The y-coordinates for the points of the area. |