Engee 文档

瀑布

该页面正在翻译中。

waterfall(x, y; kwargs...)

图a 瀑布图将单个正分量和负分量可视化,这些正分量和负分量加起来是一个条形图,堆叠的条形彼此相邻。

绘图类型

绘图类型别名 瀑布 功能是 瀑布.

例子:

</无翻译>

using CairoMakie
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]

waterfall(y)
7586cc6

在一些视觉支持下,条形的方向可能更容易解析。 </无翻译>

using CairoMakie
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]

waterfall(y, show_direction=true)
96ccd4b

您可以自定义指示条形方向的标记。 </无翻译>

using CairoMakie
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]

waterfall(y, show_direction=true, marker_pos=:cross, marker_neg=:hline, direction_color=:gold)
c4e48b0

如果 道奇 属性是提供的,酒吧是由堆叠 道奇. </无翻译>

using CairoMakie
colors = Makie.wong_colors()
x = repeat(1:2, inner=5)
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]
group = repeat(1:5, outer=2)

waterfall(x, y, dodge=group, color=colors[group])
5649a85

如果背景显示不同组的最终结果,则比较它们会更容易。 </无翻译>

using CairoMakie
colors = Makie.wong_colors()
x = repeat(1:2, inner=5)
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]
group = repeat(1:5, outer=2)

waterfall(x, y, dodge=group, color=colors[group], show_direction=true, show_final=true)
ad79e91

可以修改背景中最终条形的颜色。 </无翻译>

using CairoMakie
colors = Makie.wong_colors()
x = repeat(1:2, inner=5)
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]
group = repeat(1:5, outer=2)

waterfall(x, y, dodge=group, color=colors[group], show_final=true, final_color=(colors[6], 1//3))
ae97751

您还可以指定按以下方式堆叠分组瀑布图 x. </无翻译>

using CairoMakie
colors = Makie.wong_colors()
x = repeat(1:5, outer=2)
y = [6, 4, 2, -8, 3, 5, 1, -2, -3, 7]
group = repeat(1:2, inner=5)

waterfall(x, y, dodge=group, color=colors[group], show_direction=true, stack=:x)
cf0770d

属性

颜色

默认值为 @继承patchcolor

没有可用的文档。

周期

默认值为 [:颜色=>:补丁颜色]

没有可用的文档。

方向_颜色

默认值为 @继承backgroundcolor

没有可用的文档。

道奇

默认值为 自动的

没有可用的文档。

dodge_gap

默认值为 0.03

没有可用的文档。

最后颜色

默认值为 plot_color(:grey90,0.5)

没有可用的文档。

final_dodge_gap

默认值为 0

没有可用的文档。

最后,最后

默认值为 自动的

没有可用的文档。

差距

默认值为 0.2

没有可用的文档。

marker_neg

默认值为 :dtriangle

没有可用的文档。

marker_pos

默认值为 :utriangle

没有可用的文档。

n_dodge的

默认值为 自动的

没有可用的文档。

show_direction

默认值为 错误

没有可用的文档。

显示-最终

默认值为 错误

没有可用的文档。

堆叠

默认值为 自动的

没有可用的文档。

阔度

默认值为 自动的

没有可用的文档。