溪涧图
|
该页面正在翻译中。 |
#
<无翻译>*麦琪溪涧图*-Function
streamplot(f::function, xinterval, yinterval; color = norm, kwargs...)
f必须要么接受 f(::点) 或 f(x::数,y::数). f必须返回一个Point2。
例子::
v(x::Point2{T}) where T = Point2f(x[2], 4*x[1])
streamplot(v, -2..2, -2..2)
实施
查看函数 麦琪流线图_impl 供实施细节。
绘图类型
绘图类型别名 溪涧图 功能是 溪涧图.
例子:
using CairoMakie
struct FitzhughNagumo{T}
ϵ::T
s::T
γ::T
β::T
end
P = FitzhughNagumo(0.1, 0.0, 1.5, 0.8)
f(x, P::FitzhughNagumo) = Point2f(
(x[1]-x[2]-x[1]^3+P.s)/P.ϵ,
P.γ*x[1]-x[2] + P.β
)
f(x) = f(x, P)
fig, ax, pl = streamplot(f, -1.5..1.5, -1.5..1.5, colormap = :magma)
# you can also pass a function to `color`, to either return a number or color value
streamplot(fig[1,2], f, -1.5 .. 1.5, -1.5 .. 1.5, color=(p)-> RGBAf(p..., 0.0, 1))
fig
属性
夹式飞机
默认值为 自动的
剪辑平面提供了一种在3D空间中进行剪辑的方法。 您可以设置最多8个向量 平面3f 飞机在这里,后面的情节将被裁剪(即变得不可见)。 默认情况下,剪辑平面继承自父绘图或场景。 您可以删除父 夹片机 通过传递 平面3f[].
颜色
默认值为 规范
可以通过传递函数来选择线条的颜色 color_func(dx::Point) 致 颜色 属性。 这可以设置为任何功能或功能的组成。 该 dx 它传递给 颜色_func 是输出的 f 在被着色的地方。